pgdialect

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: BSD-2-Clause Imports: 18 Imported by: 309

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArrayValue

type ArrayValue struct {
	// contains filtered or unexported fields
}

func Array

func Array(vi interface{}) *ArrayValue

Array accepts a slice and returns a wrapper for working with PostgreSQL array data type.

For struct fields you can use array tag:

Emails  []string `bun:",array"`

func (*ArrayValue) AppendQuery

func (a *ArrayValue) AppendQuery(fmter schema.Formatter, b []byte) ([]byte, error)

func (*ArrayValue) Scan

func (a *ArrayValue) Scan(src interface{}) error

func (*ArrayValue) Value

func (a *ArrayValue) Value() interface{}

type Dialect

type Dialect struct {
	// contains filtered or unexported fields
}

func New

func New() *Dialect

func (*Dialect) Append

func (d *Dialect) Append(fmter schema.Formatter, b []byte, v interface{}) []byte

func (*Dialect) Appender

func (d *Dialect) Appender(typ reflect.Type) schema.AppenderFunc

func (*Dialect) Features

func (d *Dialect) Features() feature.Feature

func (*Dialect) FieldAppender added in v0.3.5

func (d *Dialect) FieldAppender(field *schema.Field) schema.AppenderFunc

func (*Dialect) IdentQuote

func (d *Dialect) IdentQuote() byte

func (*Dialect) Init added in v0.2.14

func (d *Dialect) Init(*sql.DB)

func (*Dialect) Name

func (d *Dialect) Name() dialect.Name

func (*Dialect) OnTable

func (d *Dialect) OnTable(table *schema.Table)

func (*Dialect) Scanner added in v0.1.2

func (d *Dialect) Scanner(typ reflect.Type) schema.ScannerFunc

func (*Dialect) Tables

func (d *Dialect) Tables() *schema.Tables

Jump to

Keyboard shortcuts

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