Golang ORM with focus on PostgreSQL features and performance
Golang ORM with focus on PostgreSQL features and performance
go-pg is in a maintenance mode and only critical issues are addressed. New development happens in Bun repo which offers similar functionality but works with PostgreSQL, MySQL, MariaDB, and SQLite.
url.Values into structs.NULL. pg:",notnull" is used to add SQL NOT NULL
constraint and pg:",use_zero" to allow Go zero values.LISTEN and NOTIFY.COPY FROM and COPY TO.EXPLAIN to get
estimated number of matching rows.go-pg supports 2 last Go versions and requires a Go version with modules support. So make sure to initialize a Go module:
go mod init github.com/my/repoAnd then install go-pg (note v10 in the import; omitting it is a popular mistake):
go get github.com/go-pg/pg/v10…No open issues yet, or sync has not completed.