MCPcopy Create free account
hub / github.com/Shopify/ghostferry / Open

Function Open

sqlwrapper/ghostferry_db.go:19–22  ·  view source on GitHub ↗
(driverName, dataSourceName, marginalia string)

Source from the content-addressed store, hash-verified

17}
18
19func Open(driverName, dataSourceName, marginalia string) (*DB, error) {
20 sqlDB, err := sqlorig.Open(driverName, dataSourceName)
21 return &DB{sqlDB, marginalia}, err
22}
23
24func (db DB) PrepareContext(ctx context.Context, query string) (*sqlorig.Stmt, error) {
25 return db.DB.PrepareContext(ctx, AnnotateStmt(query, db.Marginalia))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected