MCPcopy Index your code
hub / github.com/upper/db / Open

Function Open

adapter/sqlite/sqlite.go:40–42  ·  view source on GitHub ↗

Open establishes a connection to the database server and returns a db.Session instance (which is compatible with db.Session).

(connURL db.ConnectionURL)

Source from the content-addressed store, hash-verified

38// Open establishes a connection to the database server and returns a
39// db.Session instance (which is compatible with db.Session).
40func Open(connURL db.ConnectionURL) (db.Session, error) {
41 return registeredAdapter.OpenDSN(connURL)
42}
43
44// NewTx creates a sqlbuilder.Tx instance by wrapping a *sql.Tx value.
45func NewTx(sqlTx *sql.Tx) (sqlbuilder.Tx, error) {

Callers 2

SetUpMethod · 0.70

Calls 1

OpenDSNMethod · 0.65

Tested by 2

SetUpMethod · 0.56