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 Connect ¶
Connect creates a connection to the PostgreSQL instance and applies any unapplied database migrations. A non-nil error is returned to indicate failure.
func NewChannelRepository ¶
func NewChannelRepository(db *sqlx.DB) things.ChannelRepository
NewChannelRepository instantiates a PostgreSQL implementation of channel repository.
func NewThingRepository ¶
func NewThingRepository(db *sqlx.DB) things.ThingRepository
NewThingRepository instantiates a PostgreSQL implementation of thing repository.
Types ¶
Click to show internal directories.
Click to hide internal directories.