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 ¶ added in v0.0.2
func WithMigrations ¶ added in v0.0.2
Types ¶
type NamedDB ¶ added in v0.1.0
NamedDB is a wrapper around sqlx.DB that adds NamedGetContext method. https://github.com/jmoiron/sqlx/issues/154#issuecomment-148216948
func (NamedDB) NamedGetContext ¶ added in v0.1.0
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.