Documentation ¶
Index ¶
- type DB
- func (d DB) Close() error
- func (d DB) GetAllConfigs() (map[string]configs.View, error)
- func (d DB) GetConfig(userID string) (configs.View, error)
- func (d DB) GetConfigs(since configs.ID) (map[string]configs.View, error)
- func (d DB) SetConfig(userID string, cfg configs.Config) error
- func (d DB) Transaction(f func(DB) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct { squirrel.StatementBuilderType // contains filtered or unexported fields }
DB is a postgres db, for dev and production
func (DB) GetAllConfigs ¶
GetAllConfigs gets all of the configs.
func (DB) GetConfigs ¶
GetConfigs gets all of the configs that have changed recently.
Click to show internal directories.
Click to hide internal directories.