MCPcopy Create free account
hub / github.com/upper/db / Open

Method Open

adapter/mongo/database.go:126–129  ·  view source on GitHub ↗

Open attempts to connect to the database.

(connURL db.ConnectionURL)

Source from the content-addressed store, hash-verified

124
125// Open attempts to connect to the database.
126func (s *Source) Open(connURL db.ConnectionURL) error {
127 s.connURL = connURL
128 return s.open()
129}
130
131// Clone returns a cloned db.Session session.
132func (s *Source) Clone() (db.Session, error) {

Callers 1

OpenFunction · 0.95

Calls 1

openMethod · 0.95

Tested by

no test coverage detected