Documentation
¶
Overview ¶
Package store abstracts the database layer behind store.Store methods.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithDefaults ¶
func WithMigrations ¶
Types ¶
type NamedDB ¶
NamedDB is a wrapper around sqlx.DB that adds NamedGetContext method. https://github.com/jmoiron/sqlx/issues/154#issuecomment-148216948
func (NamedDB) NamedGetContext ¶
func (n NamedDB) NamedGetContext(ctx context.Context, dest interface{}, query string, arg interface{}) error
NamedGetContext executes a named query with the given context and arguments. It prepares the statement, executes it, and scans the result into the destination. This is commonly used for INSERT ... RETURNING query.
Click to show internal directories.
Click to hide internal directories.