Documentation ¶
Index ¶
- Variables
- func ColumnExists(db *sql.DB, tableName string, columnName string) (bool, error)
- func SetupTestMemorySQLDB(dbInit dbsetup.DatabaseInitializer) (*sql.DB, error)
- func SetupTestSQLDB(dbInit dbsetup.DatabaseInitializer, prefix string) (*sql.DB, func() error, error)
- func WaitForPeerAsync(p *p2p.Server, u string, e p2p.PeerEventType, t time.Duration) <-chan error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoRunningNode node is not running. ErrNoRunningNode = errors.New("there is no running node") // ErrEmptyPeerURL provided peer URL is empty ErrEmptyPeerURL = errors.New("empty peer url") )
Functions ¶
func ColumnExists ¶ added in v0.163.14
func SetupTestMemorySQLDB ¶ added in v0.163.14
func SetupTestMemorySQLDB(dbInit dbsetup.DatabaseInitializer) (*sql.DB, error)
func SetupTestSQLDB ¶ added in v0.163.14
func SetupTestSQLDB(dbInit dbsetup.DatabaseInitializer, prefix string) (*sql.DB, func() error, error)
SetupTestSQLDB creates a temporary sqlite database file, initialises and then returns with a teardown func
func WaitForPeerAsync ¶
WaitForPeerAsync waits for a peer to be added asynchronously
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.