pgqb

package
v2.5.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 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) IgnoreConflictSQL

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

IgnoreConflictSQL implements qb.Driver

func (Driver) LimitOffset

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

LimitOffset implements qb.Driver

func (Driver) Override

func (d Driver) Override() qb.OverrideMap

Override implements qb.Driver

func (Driver) Returning

func (d Driver) Returning(b qb.SQLBuilder, 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