Documentation ¶
Index ¶
- type Postgres
- func (p *Postgres) Check(ctx context.Context) error
- func (p *Postgres) Close()
- func (p *Postgres) CreateAddress(ctx context.Context, address *storage.Address) error
- func (p *Postgres) ExecTx(ctx context.Context, fn func(tx pgx.Tx) error, op errors.Op) error
- func (p *Postgres) GetAddress(ctx context.Context, cep string) (*storage.Address, error)
- func (p *Postgres) ListAddresses(ctx context.Context, params storage.ListParams) ([]*storage.Address, error)
- func (p *Postgres) UpdateAddress(ctx context.Context, cep string, updater storage.Updater) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Postgres ¶
type Postgres struct {
// contains filtered or unexported fields
}
func Connect ¶
Connect parses a database URL into options that can be used to connect to PostgreSQL.
func (*Postgres) CreateAddress ¶
func (*Postgres) GetAddress ¶
func (*Postgres) ListAddresses ¶
Click to show internal directories.
Click to hide internal directories.