Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoRows = sql.ErrNoRows
ErrNoRows is returned by Scan when QueryRow doesn't return a row. In such a case, QueryRow returns a placeholder *Row value that defers this error until a Scan.
Functions ¶
This section is empty.
Types ¶
type DB ¶
DB encapsulates a standard sql.DB with a schema
func OpenWithSchema ¶
OpenWithSchema opens a kurbisio postgres database with a schema. The schema gets created if it does not exist yet. The returned database also has the uuid-ossp extension loaded.
func (*DB) ClearSchema ¶
func (db *DB) ClearSchema()
ClearSchema clears all the data contained in the database's schema Technically this is done by dropping the schema and then recreating it
Click to show internal directories.
Click to hide internal directories.