package
0.4.8
Repository: https://github.com/stratumn/go.git
Documentation: pkg.go.dev

# Functions

Initialize a postgres store adapter.
InitializeWithFlags should be called after RegisterFlags and flag.Parse to initialize a postgres adapter using flag values.
New creates an instance of a Store.
NewBatch creates a new instance of a Postgres Batch.
NewSingletonTxFactory creates a transaction factory using the underlying transaction.
NewStandardTxFactory creates a transaction factory using the underlying DB.
RegisterFlags registers the flags used by InitializeWithFlags.

# Constants

DefaultURL is the default URL of the database.
Description is the description set in the store's information.
Name is the name set in the store's information.
Plain SQL statements.
Plain SQL statements.
Plain SQL statements.
Plain SQL statements.
Plain SQL statements.
Plain SQL statements.
Plain SQL statements.
Plain SQL statements.
Plain SQL statements.
Plain SQL statements.
Plain SQL statements.
Plain SQL statements.
Plain SQL statements.

# Structs

Batch is the type that implements github.com/stratumn/go-core/store.Batch.
Config contains configuration options for the store.
Info is the info returned by GetInfo.
SingletonTxFactory uses a single transaction under the hood.
StandardTxFactory is just a wrapper around SQL transactions.
Store is the type that implements github.com/stratumn/go-core/store.Adapter.

# Interfaces

SQLPreparer prepares statements.
SQLPreparerQuerier prepares statements and executes queries.
SQLQuerier executes queries.
TxFactory creates and manages transactions.