Documentation
¶
Overview ¶
Package postgres registers the "postgres" driver for dbx.
Import this package once in your main function to enable postgres:
import _ "github.com/aisphereio/kernel/dbx/postgres"
Then use `dbx.Config{Driver: "postgres", DSN: "postgres://..."}` with dbx.New.
The driver uses gorm.io/driver/postgres, which wraps pgx/stdlib. It supports all GORM features including OnConflict, soft-delete, and autoCreate/UpdateTime.
Click to show internal directories.
Click to hide internal directories.