datastore

package
v0.7.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2022 License: Apache-2.0, MIT, Apache-2.0, + 1 more Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const TableName = "records"

Variables

This section is empty.

Functions

func NewPostgreSQLDatastore

func NewPostgreSQLDatastore(ctx context.Context, connstr string, createDB bool) (*pgds.Datastore, error)

NewPostgreSQLDatastore creates a new pgds.Datastore that talks to a PostgreSQL database

Types

type BatchingWithPgxPool

type BatchingWithPgxPool struct {
	Pool WithPgxPool
	datastore.Batching
}

func (BatchingWithPgxPool) PgxPool

func (x BatchingWithPgxPool) PgxPool() *pgxpool.Pool

type WithPgxPool

type WithPgxPool interface {
	PgxPool() *pgxpool.Pool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL