Documentation
¶
Overview ¶
Package kbsql provides database utilities for Katabole
At this time it's for migrations and tests.
For a canonical place these are used see https://github.com/katabole/kbexample
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AtlasSetupDB ¶
AtlasSetupDB runs atlas to ensure the database (usually dev/test) is up to date.
func PostgresCleanDB ¶
PostgresCleanDB resets sequences and wipes all tables in the provided postgres database.
func PostgresCreateDBIfNotExistsByURL ¶ added in v0.3.0
PostgresCreateDBIfNotExistsByURL ensures the given database exists, creating it if it doesn't. Generally for dev/test databases. It takes a URL connection string like `postgres://joe:secret@kb.example.com:5432/testdb`
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.