package
3.4.0+incompatible
Repository: https://github.com/leeychee/db.git
Documentation: pkg.go.dev

# README

PostgreSQL adapter for upper.io/db

Please read the full docs, acknowledgements and examples at https://upper.io/db.v3/postgresql

# Functions

Array returns a sqlbuilder.ScannerValuer for any given slice.
DecodeJSONB is deprecated and going to be removed.
EncodeJSONB is deprecated and going to be removed.
JSONBValue takes an interface and provides a driver.Value that can be stored as a JSONB column.
New wraps a regular *sql.DB session and creates a new upper-db session backed by it.
NewTx wraps a regular *sql.Tx transaction and returns a new upper-db transaction backed by it.
Open opens a new connection with the PostgreSQL server.
ParseURL parses the given DSN into a ConnectionURL struct.
ScanJSONB decodes a JSON byte stream into the passed dst value.

# Constants

Adapter is the unique name that you can use to refer to this adapter.

# Structs

ConnectionURL represents a parsed PostgreSQL connection URL.
JSONB represents a PostgreSQL's JSONB value: https://www.postgresql.org/docs/9.6/static/datatype-json.html.
JSONBConverter provides a helper method WrapValue that satisfies sqlbuilder.ValueWrapper, can be used to encode Go structs into JSONB PostgreSQL types and vice versa.

# Type aliases

BoolArray represents a one-dimensional array of int64s (`[]bool{}`) that is compatible with PostgreSQL's boolean type (`boolean[]`).
Float64Array represents a one-dimensional array of float64s (`[]float64{}`) that is compatible with PostgreSQL's double precision array (`double precision[]`).
GenericArray represents a one-dimensional array of any type (`[]interface{}`) that is compatible with PostgreSQL's array type.
Int64Array represents a one-dimensional array of int64s (`[]int64{}`) that is compatible with PostgreSQL's integer array (`integer[]`).
JSONBArray represents an array of any type (`[]interface{}`) that is compatible with PostgreSQL's JSONB type.
JSONBMap represents a map of interfaces with string keys (`map[string]interface{}`) that is compatible with PostgreSQL's JSONB type.
StringArray represents a one-dimensional array of strings (`[]string{}`) that is compatible with PostgreSQL's text array (`text[]`).