Documentation
¶
Overview ¶
Package postgres links the Postgres driver (pgx, through database/sql) for the ORM: blank-import it to Connect to "postgres". It also teaches the ORM the driver's connection errors and how to put orm.Credentials into a DSN.
import _ "github.com/vuka-lang/orm/v2/postgres"
db, err := orm.Connect("postgres", "postgres://user:pass@localhost:5432/shop?sslmode=disable")
Click to show internal directories.
Click to hide internal directories.