MCPcopy Index your code
hub / github.com/coder/coder / Open

Method Open

coderd/database/dbtestutil/driver.go:68–75  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

66}
67
68func (d *Driver) Open(name string) (driver.Conn, error) {
69 c, err := d.Connector(name)
70 if err != nil {
71 return nil, err
72 }
73
74 return c.Connect(context.Background())
75}
76
77func (d *Driver) Close() {
78 close(d.Connections)

Callers 15

testSQLDBFunction · 0.45
mainFunction · 0.45
initMethod · 0.45
initMethod · 0.45
createCoderTestingDBFunction · 0.45
NewDBFunction · 0.45
setDBTimezoneFunction · 0.45
ConnectMethod · 0.45
initDefaultConnectionFunction · 0.45
createAndInitDatabaseFunction · 0.45
OpenContainerizedFunction · 0.45
TestOpenFunction · 0.45

Calls 2

ConnectorMethod · 0.95
ConnectMethod · 0.65

Tested by 9

testSQLDBFunction · 0.36
TestOpenFunction · 0.36
TestOpen_ValidDBFromFunction · 0.36
TestPGPubsub_MetricsFunction · 0.36
TestPGPubsubDriverFunction · 0.36
TestPubsubFunction · 0.36
TestPubsub_orderingFunction · 0.36
TestPubsub_DisconnectFunction · 0.36
TestMeasureLatencyFunction · 0.36