Registry / database / xo-dburl

xo-dburl

JSON →
library0.24.2gogounverified

Package dburl provides a standard, net/url.URL style mechanism for parsing and opening SQL database connection strings for Go.

go get github.com/xo/dburl
INSTALL
IMPORT
SIG · XO-DBURL
X
xo-dburl
databasegov0.24.2
harness data pending
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.

dburl
github.com/xo/dburl

Open a database connection using a URL string.

package main import ( "database/sql" "fmt" "github.com/xo/dburl" ) func main() { db, err := dburl.Open("postgres://user:pass@localhost/dbname") if err != nil { panic(err) } defer db.Close() fmt.Println("connected") }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.24.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
29 hits · last 30 days
node
26
Meta
1
OpenAI (training)
1
Resources
xo-dburl — go get xo-dburl · libregistry