MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / getConn

Method getConn

sqlchain/adapter/storage/covenantsql.go:118–126  ·  view source on GitHub ↗
(dbID string)

Source from the content-addressed store, hash-verified

116}
117
118func (s *CovenantSQLStorage) getConn(dbID string) (db *sql.DB, err error) {
119 cfg := client.NewConfig()
120 cfg.DatabaseID = dbID
121 if s.mirrorServerAddr != "" {
122 cfg.Mirror = s.mirrorServerAddr
123 }
124
125 return sql.Open("covenantsql", cfg.FormatDSN())
126}

Callers 2

QueryMethod · 0.95
ExecMethod · 0.95

Calls 3

FormatDSNMethod · 0.95
NewConfigFunction · 0.92
OpenMethod · 0.45

Tested by

no test coverage detected