Versions in this module Expand all Collapse all v0 v0.1.1 Oct 11, 2021 Changes in this version type Datastore + func (d *Datastore) PgxPool() *pgxpool.Pool v0.1.0 May 5, 2020 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() (ds.Batch, error) + func (d *Datastore) Close() error + func (d *Datastore) Delete(key ds.Key) error + func (d *Datastore) DeleteContext(ctx context.Context, key ds.Key) error + func (d *Datastore) Get(key ds.Key) (value []byte, err error) + func (d *Datastore) GetContext(ctx context.Context, key ds.Key) (value []byte, err error) + func (d *Datastore) GetSize(key ds.Key) (int, error) + func (d *Datastore) GetSizeContext(ctx context.Context, key ds.Key) (int, error) + func (d *Datastore) Has(key ds.Key) (bool, error) + func (d *Datastore) HasContext(ctx context.Context, key ds.Key) (bool, error) + func (d *Datastore) Put(key ds.Key, value []byte) error + func (d *Datastore) PutContext(ctx context.Context, key ds.Key, value []byte) error + func (d *Datastore) Query(q dsq.Query) (dsq.Results, error) + func (d *Datastore) QueryContext(ctx context.Context, q dsq.Query) (dsq.Results, error) + func (d *Datastore) Sync(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