status-go/sqlite/driver.go
Andrey Bocharnikov e9abf1662d
chore(config)_: rpc providers configuration (#6151)
* 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
2025-01-11 02:02:09 +04:00

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)
}