Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
db
✓ github.com/upper/db/v4
Open a PostgreSQL connection using upper/db.
package main
import (
"github.com/upper/db/v4"
"github.com/upper/db/v4/adapter/postgresql"
)
func main() {
settings := postgresql.ConnectionURL{
Database: "test",
Host: "localhost",
}
sess, err := postgresql.Open(settings)
if err != nil {
panic(err)
}
defer sess.Close()
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
4.10.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.