pgqb

package
v2.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(db *sql.DB) *qbdb.DB

New returns the driver

Types

type Driver

type Driver struct{}

Driver implements PostgreSQL-specific features

func (Driver) BoolString

func (d Driver) BoolString(v bool) string

BoolString formats a boolean in a format supported by PostgreSQL

func (Driver) Limit

func (d Driver) Limit(sql qb.SQL, limit int)

Limit implements qb.Driver

func (Driver) Override

func (d Driver) Override() qb.OverrideMap

Override implements qb.Driver

func (Driver) Returning

func (d Driver) Returning(q qb.Query, f []qb.Field) (string, []interface{})

Returning implements qb.Driver

func (Driver) TypeName

func (d Driver) TypeName(t qb.DataType) string

TypeName implements qb.Driver

func (Driver) UpsertSQL

func (d Driver) UpsertSQL(t *qb.Table, conflict []qb.Field, q qb.Query) (string, []interface{})

UpsertSQL implements qb.Driver

func (Driver) ValueString

func (d Driver) ValueString(c int) string

ValueString returns a the SQL for a parameter value

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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