Skip to content

Commit 1fe9ee6

Browse files
author
Hasan Demir
committed
Revert "Change connection name"
This reverts commit 79af2f6.
1 parent 79af2f6 commit 1fe9ee6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.env.example

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
APP_ENV=local
22
APP_PORT=3000
3-
DB_CONNECTION=memory
3+
DB_CONNECTION=sqlite3
44
DB_HOST=127.0.0.1
55
DB_PORT=3306
66
DB_DATABASE=database

.env.testing

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
APP_ENV=local
22
APP_PORT=3000
3-
DB_CONNECTION=memory
3+
DB_CONNECTION=sqlite3
44
DB_HOST=127.0.0.1
55
DB_PORT=3306
66
DB_DATABASE=database

pkg/connection/connection.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func (c *DBClient) Client() *ent.Client {
5454

5555
// createConnectionString creates the connection string
5656
func createConnectionString(config *config.Config) string {
57-
if(config.Database.Connection == "memory") {
57+
if(config.Database.Connection == "sqlite3") {
5858
return "file:ent?mode=memory&cache=shared&_fk=1"
5959
}
6060

0 commit comments

Comments
 (0)