mirror of
https://github.com/status-im/status-go.git
synced 2026-08-31 00:51:12 +00:00
* chore: move databases to internal/db * chore: move internal/db/sqlite * chore: internal/abi-spec * chore: move internal/connection * chore: internal/circuitbreaker * chore: internal/transactions * fix: rebase issues
15 lines
374 B
Go
15 lines
374 B
Go
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)
|
|
}
|