Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork145
go-gorm/postgres
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
import ("gorm.io/driver/postgres""gorm.io/gorm")// https://github.com/jackc/pgxdsn:="host=localhost user=gorm password=gorm dbname=gorm port=9920 sslmode=disable TimeZone=Asia/Shanghai"db,err:=gorm.Open(postgres.Open(dsn),&gorm.Config{})
import ("gorm.io/driver/postgres""gorm.io/gorm")db,err:=gorm.Open(postgres.New(postgres.Config{DSN:"host=localhost user=gorm password=gorm dbname=gorm port=9920 sslmode=disable TimeZone=Asia/Shanghai",// data source name, refer https://github.com/jackc/pgxPreferSimpleProtocol:true,// disables implicit prepared statement usage. By default pgx automatically uses the extended protocol}),&gorm.Config{})
Checkouthttps://gorm.io for details.
About
GORM PostgreSQL driver
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.