Documentation ¶
Overview ¶
Package postgres contains repository implementations using PostgreSQL as the underlying database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Migration ¶
func Migration() *migrate.MemoryMigrationSource
func New ¶
func New(db Database) notifiers.SubscriptionsRepository
New instantiates a PostgreSQL implementation of Subscriptions repository.
Types ¶
type Database ¶
type Database interface { NamedExecContext(context.Context, string, interface{}) (sql.Result, error) QueryRowxContext(context.Context, string, ...interface{}) *sqlx.Row NamedQueryContext(context.Context, string, interface{}) (*sqlx.Rows, error) GetContext(context.Context, interface{}, string, ...interface{}) error }
Database provides a database interface.
Click to show internal directories.
Click to hide internal directories.