initial import
This commit is contained in:
13
core/stores/postgres/postgresql.go
Normal file
13
core/stores/postgres/postgresql.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package postgres
|
||||
|
||||
import (
|
||||
"zero/core/stores/sqlx"
|
||||
|
||||
_ "github.com/lib/pq"
|
||||
)
|
||||
|
||||
const postgreDriverName = "postgres"
|
||||
|
||||
func NewPostgre(datasource string, opts ...sqlx.SqlOption) sqlx.SqlConn {
|
||||
return sqlx.NewSqlConn(postgreDriverName, datasource, opts...)
|
||||
}
|
||||
Reference in New Issue
Block a user