Documentation ¶
Index ¶
- type ArrayValue
- type Dialect
- func (d *Dialect) Append(fmter schema.Formatter, b []byte, v interface{}) []byte
- func (d *Dialect) Appender(typ reflect.Type) schema.AppenderFunc
- func (d *Dialect) Features() feature.Feature
- func (d *Dialect) FieldAppender(field *schema.Field) schema.AppenderFunc
- func (d *Dialect) IdentQuote() byte
- func (d *Dialect) Init(*sql.DB)
- func (d *Dialect) Name() dialect.Name
- func (d *Dialect) OnTable(table *schema.Table)
- func (d *Dialect) Scanner(typ reflect.Type) schema.ScannerFunc
- func (d *Dialect) Tables() *schema.Tables
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 (*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 (*Dialect) FieldAppender ¶ added in v0.3.5
func (d *Dialect) FieldAppender(field *schema.Field) schema.AppenderFunc
func (*Dialect) IdentQuote ¶
Click to show internal directories.
Click to hide internal directories.