Documentation ¶
Overview ¶
Package embedded provides a test-only embedded Postgres database for testing queries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CancelFunc ¶
type CancelFunc func()
CancelFunc is a function that can be called to clean up resources. Pass this to t.Cleanup.
func GetFakeStore ¶
func GetFakeStore() (db.Store, CancelFunc, error)
GetFakeStore returns a new embedded Postgres database and a cancel function to clean up the database.
Click to show internal directories.
Click to hide internal directories.