Documentation
¶
Overview ¶
Package postgres implements the persistence.Provider interface using PostgreSQL as the storage backend.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider is a persistence.Provider backed by PostgreSQL.
func NewProvider ¶
NewProvider returns a Provider configured from a postgres:// or postgresql:// URL. It returns an error if u.Scheme is not "postgres" or "postgresql".
Pool settings can be configured via URL parameters, for example: pool_max_conns, pool_min_conns, pool_max_conn_lifetime, etc.
See pgxpool.ParseConfig for the full list of supported parameters.
func (*Provider) JournalStore ¶
JournalStore returns a journal store backed by PostgreSQL.
Click to show internal directories.
Click to hide internal directories.