Documentation
¶
Index ¶
- func CreateTable(db *sql.DB, tableName string) error
- func Migrations(db *sql.DB) error
- func NewDB(dburl string, logger *zap.Logger) (*sql.DB, error)
- func NewMockPgDB() *sql.DB
- func NewQueries(tbl string, db *sql.DB) (*persistence.Queries, error)
- func ResetDefaultTestPostgresDB(dropDBUrl string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTable ¶
CreateTable creates the table that will persist the peers
func Migrations ¶ added in v0.8.0
Migrations is the function used for DB migration with postgres driver
func NewMockPgDB ¶ added in v0.9.0
func NewQueries ¶
NewQueries creates a new SQL set of queries for the passed table
func ResetDefaultTestPostgresDB ¶ added in v0.9.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.