MCPcopy
hub / github.com/dnote/dnote / SQLCommon

Interface SQLCommon

pkg/cli/database/sql.go:27–32  ·  view source on GitHub ↗

SQLCommon is the minimal interface required by a db connection

Source from the content-addressed store, hash-verified

25
26// SQLCommon is the minimal interface required by a db connection
27type SQLCommon interface {
28 Exec(query string, args ...interface{}) (sql.Result, error)
29 Prepare(query string) (*sql.Stmt, error)
30 Query(query string, args ...interface{}) (*sql.Rows, error)
31 QueryRow(query string, args ...interface{}) *sql.Row
32}
33
34// sqlDb is an interface implemented by *sql.DB
35type sqlDb interface {

Callers 25

InitDBFunction · 0.65
initSystemKVFunction · 0.65
migrateToV8Function · 0.65
migrations.goFile · 0.65
initSchemaFunction · 0.65
executeFunction · 0.65
ExecMethod · 0.65
InsertMethod · 0.65
PrepareMethod · 0.65
TestLocalMigration14Function · 0.65
migrations.goFile · 0.65
QueryMethod · 0.65

Implementers 1

DBpkg/cli/database/sql.go

Calls

no outgoing calls

Tested by

no test coverage detected