We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79af2f6 commit 1fe9ee6Copy full SHA for 1fe9ee6
.env.example
@@ -1,6 +1,6 @@
1
APP_ENV=local
2
APP_PORT=3000
3
-DB_CONNECTION=memory
+DB_CONNECTION=sqlite3
4
DB_HOST=127.0.0.1
5
DB_PORT=3306
6
DB_DATABASE=database
.env.testing
pkg/connection/connection.go
@@ -54,7 +54,7 @@ func (c *DBClient) Client() *ent.Client {
54
55
// createConnectionString creates the connection string
56
func createConnectionString(config *config.Config) string {
57
- if(config.Database.Connection == "memory") {
+ if(config.Database.Connection == "sqlite3") {
58
return "file:ent?mode=memory&cache=shared&_fk=1"
59
}
60
0 commit comments