postgres

package
v0.0.0-...-efbdb50 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SystemTables = []string{"poi2$", "cursor"}

Functions

func CreateIndexes

func CreateIndexes(ctx context.Context, db *sqlx.DB, subgraph *subgraph.Definition, schema string, onlyTables []string, logger *zap.Logger) error

func CreateTables

func CreateTables(ctx context.Context, db *sqlx.DB, subgraph *subgraph.Definition, schema string, logger *zap.Logger) error

func DropIndexes

func DropIndexes(ctx context.Context, db *sqlx.DB, subgraph *subgraph.Definition, schema string, onlyTables []string, logger *zap.Logger) error

func InitiateSchema

func InitiateSchema(ctx context.Context, db *sqlx.DB, subgraph *subgraph.Definition, schema string, logger *zap.Logger) error

func New

func New(
	logger *zap.Logger,
	metrics *metrics.BlockMetrics,
	db *sqlx.DB,
	subgraphSchema string,
	subgraphDeploymentID string,
	subgraph *subgraph.Definition,
	entitiesNeverReadFromDB map[string]bool,
	withTransaction bool,
) (*store, error)

Types

type DSN

type DSN struct {
	// contains filtered or unexported fields
}

func ParseDSN

func ParseDSN(dsn string) (*DSN, error)

func (*DSN) DSN

func (c *DSN) DSN() string

func (*DSN) String

func (c *DSN) String() string

Jump to

Keyboard shortcuts

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