postgres

package
v0.0.0-...-2873e01 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// base for our schemas
	SCHEMA = "postgres"
)

Variables

This section is empty.

Functions

func Connect

func Connect(ctx context.Context, dsn string) (_ store.Storer, err error)

func DataDefiner

func DataDefiner(dbName string, conn *sqlx.DB) *dataDefiner

func DeepIdentJSON

func DeepIdentJSON(asJSON bool, jsonDoc exp.Expression, pp ...any) exp.LiteralExpression

DeepIdentJSON constructs expression with chain of JSON operators that point value inside JSON document

https://www.postgresql.org/docs/9.3/functions-json.html

func Dialect

func Dialect() *postgresDialect

func InformationSchema

func InformationSchema(conn *sqlx.DB) *informationSchema

func NewConfig

func NewConfig(dsn string) (c *rdbms.ConnConfig, err error)

NewConfig validates given DSN and ensures params are present and correct

Types

type TypeTime

type TypeTime struct{ *dal.TypeTime }

func (*TypeTime) Decode

func (t *TypeTime) Decode(raw any) (any, bool, error)

func (*TypeTime) Encode

func (t *TypeTime) Encode(val any) (driver.Value, error)

func (*TypeTime) MakeScanBuffer

func (*TypeTime) MakeScanBuffer() any

Jump to

Keyboard shortcuts

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