status-go/sqlite/driver.go

15 lines
374 B
Go
Raw Normal View History

package sqlite
import "database/sql"
// statementCreator allows to pass transaction or database to use in consumer.
type StatementCreator interface {
Prepare(query string) (*sql.Stmt, error)
}
type StatementExecutor interface {
StatementCreator
Exec(query string, args ...interface{}) (sql.Result, error)
Query(query string, args ...interface{}) (*sql.Rows, error)
}