Explorar o código

:fire: remove db.go

Jeremy Zheng %!s(int64=5) %!d(string=hai) anos
pai
achega
13ce3b4c5e
Modificáronse 1 ficheiros con 0 adicións e 11 borrados
  1. 0 11
      api/mint/db.go

+ 0 - 11
api/mint/db.go

@@ -1,11 +0,0 @@
-package mint
-
-import (
-	"gorm.io/driver/postgres"
-	"gorm.io/gorm"
-)
-
-func OpenDb() (*gorm.DB, error) {
-	dsn := "host=127.0.0.1 user=postgres password=gorm dbname=mint port=5432 sslmode=disable TimeZone=Asia/Shanghai"
-	return gorm.Open(postgres.Open(dsn), &gorm.Config{})
-}