Documentation ¶
Overview ¶
Package data contains a Database interface with multiple implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPostgres ¶
func NewPostgres(config settings.PostgresDatabase, logger log.LeveledLogger) ( db *psql.Database, err error)
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package errors contains database errors common to all implementations.
|
Package errors contains database errors common to all implementations. |
Package json implements a data store using a single JSON file and the memory package.
|
Package json implements a data store using a single JSON file and the memory package. |
Package memory implements a data store in memory only.
|
Package memory implements a data store in memory only. |
Package psql implements a data store using a client to a Postgres database.
|
Package psql implements a data store using a client to a Postgres database. |
Click to show internal directories.
Click to hide internal directories.