mirror of
https://github.com/status-im/status-go.git
synced 2025-01-18 02:31:47 +00:00
e9abf1662d
* chore(config)_: extract rpc_provider_persistence + tests * Add rpc_providers table, migration * add RpcProvider type * deprecate old rpc fields in networks, add RpcProviders list * add persistence packages for rpc_providers, networks * Tests
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)
|
|
}
|