Documentation ¶
Index ¶
- func MustSetupDB(dsn string, maxOpenConns, maxIdleConns int, enableMigration bool, ...) *sql.DB
- type Config
- type PG
- func (p PG) Check(ctx context.Context) error
- func (p PG) Close() error
- func (p PG) Create(ctx context.Context, a *model.Announcement) error
- func (p PG) Delete(ctx context.Context, id string) error
- func (p PG) GetAll(ctx context.Context, filter model.Filter) ([]*model.Announcement, error)
- func (p PG) InTx(ctx context.Context, action func(s storage.AnnouncementStorage) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.