Documentation ¶
Overview ¶
Package postgres provides an implementation of sorted.KeyValue on top of PostgreSQL.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKeyValue ¶
NewKeyValue returns a sorted.KeyValue implementation of the described PostgreSQL database.
func SQLCreateTables ¶
func SQLCreateTables() []string
func SQLDefineReplace ¶
func SQLDefineReplace() []string
func SchemaVersion ¶
func SchemaVersion() int
Types ¶
type Config ¶
type Config struct { Host string // Optional. Defaults to "localhost" in ConfigFromJSON. Database string // Required. User string // Required. Password string // Optional. SSLMode string // Optional. Defaults to "require" in ConfigFromJSON. }
Config holds the parameters used to connect to the PostgreSQL db.
func ConfigFromJSON ¶
func ConfigFromJSON(config jsonconfig.Obj) (Config, error)
ConfigFromJSON populates Config from config, and validates config. It returns an error if config fails to validate.
Click to show internal directories.
Click to hide internal directories.