Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDoesNotExist ¶
IsDoesNotExist returns true if the supplied error indicates a database does not exist.
Types ¶
type DB ¶
type DB interface { Exec(ctx context.Context, q Query) error Scan(ctx context.Context, q Query, dest ...interface{}) error }
A DB client.
func NewPostgresDB ¶
NewPostgresDB returns a new PostgreSQL database client.
type PostgresDB ¶
type PostgresDB struct {
// contains filtered or unexported fields
}
A PostgresDB client.
Click to show internal directories.
Click to hide internal directories.