Versions in this module Expand all Collapse all v0 v0.2.0 Feb 10, 2022 Changes in this version + var OptionDefaults = func(o *Options) error + type Datastore struct + func NewDatastore(ctx context.Context, connString string, options ...Option) (*Datastore, error) + func (d *Datastore) Batch(_ context.Context) (ds.Batch, error) + func (d *Datastore) Close() error + func (d *Datastore) Delete(ctx context.Context, key ds.Key) error + func (d *Datastore) Get(ctx context.Context, key ds.Key) (value []byte, err error) + func (d *Datastore) GetSize(ctx context.Context, key ds.Key) (int, error) + func (d *Datastore) Has(ctx context.Context, key ds.Key) (bool, error) + func (d *Datastore) PgxPool() *pgxpool.Pool + func (d *Datastore) Put(ctx context.Context, key ds.Key, value []byte) error + func (d *Datastore) Query(ctx context.Context, q dsq.Query) (dsq.Results, error) + func (d *Datastore) Sync(ctx context.Context, key ds.Key) error + type Option func(*Options) error + func Table(t string) Option + type Options struct + Table string + func (o *Options) Apply(opts ...Option) error