mirror of
https://github.com/ordinary-dev/phoenix
synced 2024-09-19 19:30:28 +05:00
Format code with go fmt
This commit is contained in:
parent
691ad33279
commit
e1c99a6092
|
@ -3,14 +3,14 @@ package backend
|
|||
import (
|
||||
"gorm.io/driver/sqlite"
|
||||
"gorm.io/gorm"
|
||||
"os"
|
||||
"os"
|
||||
)
|
||||
|
||||
func GetDatabaseConnection() (*gorm.DB, error) {
|
||||
dbPath := os.Getenv("PHOENIX_DB_PATH")
|
||||
if dbPath == "" {
|
||||
dbPath = "db.sqlite3"
|
||||
}
|
||||
dbPath := os.Getenv("PHOENIX_DB_PATH")
|
||||
if dbPath == "" {
|
||||
dbPath = "db.sqlite3"
|
||||
}
|
||||
|
||||
db, err := gorm.Open(sqlite.Open(dbPath), &gorm.Config{})
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue