Documentation ¶
Index ¶
- func Array_Scan(src interface{}, dest interface{}) error
- func Array_Value(v interface{}) (driver.Value, error)
- func CreateSchema(db *sql.DB, schema string) error
- func InitializeHSTORE(db *sql.DB, schema ...string) error
- func InitializeUUID(db *sql.DB, schema ...string) error
- func JsonbScan(dest interface{}, src interface{}) error
- func JsonbValue(obj interface{}) (driver.Value, error)
- type BigIntegerArray
- type BoolArray
- type DoubleArray
- type Elemented
- type HSTORE
- type IntegerArray
- type JSON
- type JSONB
- type PostgresDialect
- func (pb PostgresDialect) Create(t *xql.Table, options ...interface{}) (s string, args []interface{}, err error)
- func (pb PostgresDialect) Delete(t *xql.Table, filters []xql.QueryFilter) (s string, args []interface{}, err error)
- func (pb PostgresDialect) Drop(t *xql.Table, force bool) (stm string, args []interface{}, err error)
- func (pb PostgresDialect) Insert(t *xql.Table, obj interface{}, col ...string) (s string, args []interface{}, err error)
- func (pb PostgresDialect) InsertWithInsertedId(t *xql.Table, obj interface{}, insertedId string, col ...string) (s string, args []interface{}, err error)
- func (pb PostgresDialect) Select(t *xql.Table, cols []xql.QueryColumn, filters []xql.QueryFilter, ...) (s string, args []interface{}, err error)
- func (pb PostgresDialect) Update(t *xql.Table, filters []xql.QueryFilter, cols ...xql.UpdateColumn) (s string, args []interface{}, err error)
- type RealArray
- type SmallIntegerArray
- type StringArray
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Array_Scan ¶ added in v0.2.2
func Array_Scan(src interface{}, dest interface{}) error
func Array_Value ¶ added in v0.2.2
func JsonbValue ¶ added in v0.5.1
Types ¶
type BigIntegerArray ¶ added in v0.2.2
type BigIntegerArray []int64
func (BigIntegerArray) Declare ¶ added in v0.2.2
func (h BigIntegerArray) Declare(props xql.PropertySet) string
func (*BigIntegerArray) Scan ¶ added in v0.2.2
func (p *BigIntegerArray) Scan(src interface{}) error
type DoubleArray ¶ added in v0.2.2
type DoubleArray []float64
func (DoubleArray) Declare ¶ added in v0.2.2
func (h DoubleArray) Declare(props xql.PropertySet) string
func (*DoubleArray) Scan ¶ added in v0.2.2
func (p *DoubleArray) Scan(src interface{}) error
type HSTORE ¶
type HSTORE map[string]interface{}
type IntegerArray ¶
type IntegerArray []int
func (IntegerArray) Declare ¶ added in v0.2.2
func (h IntegerArray) Declare(props xql.PropertySet) string
func (*IntegerArray) Scan ¶ added in v0.2.2
func (p *IntegerArray) Scan(src interface{}) error
type PostgresDialect ¶
type PostgresDialect struct { }
func (PostgresDialect) Create ¶
func (pb PostgresDialect) Create(t *xql.Table, options ...interface{}) (s string, args []interface{}, err error)
Create Implement the IDialect interface for creating table.
func (PostgresDialect) Delete ¶
func (pb PostgresDialect) Delete(t *xql.Table, filters []xql.QueryFilter) (s string, args []interface{}, err error)
Delete Implement the IDialect interface to generate DELETE statement
func (PostgresDialect) Drop ¶ added in v0.2.1
func (pb PostgresDialect) Drop(t *xql.Table, force bool) (stm string, args []interface{}, err error)
Drop Implement the IDialect interface for generate DROP statement
func (PostgresDialect) Insert ¶
func (pb PostgresDialect) Insert(t *xql.Table, obj interface{}, col ...string) (s string, args []interface{}, err error)
Insert Implement the IDialect interface to generate insert statement
func (PostgresDialect) InsertWithInsertedId ¶ added in v0.2.11
func (pb PostgresDialect) InsertWithInsertedId(t *xql.Table, obj interface{}, insertedId string, col ...string) (s string, args []interface{}, err error)
Insert Implement the IDialect interface to generate insert statement
func (PostgresDialect) Select ¶
func (pb PostgresDialect) Select(t *xql.Table, cols []xql.QueryColumn, filters []xql.QueryFilter, orders []xql.QueryOrder, lockFor string, offset int64, limit int64) (s string, args []interface{}, err error)
Select Implement the IDialect interface for select values.
func (PostgresDialect) Update ¶
func (pb PostgresDialect) Update(t *xql.Table, filters []xql.QueryFilter, cols ...xql.UpdateColumn) (s string, args []interface{}, err error)
Update Implement the IDialect interface to generate UPDATE statement
type SmallIntegerArray ¶
type SmallIntegerArray []int16
func (SmallIntegerArray) Declare ¶ added in v0.2.2
func (h SmallIntegerArray) Declare(props xql.PropertySet) string
func (*SmallIntegerArray) Scan ¶ added in v0.2.2
func (p *SmallIntegerArray) Scan(src interface{}) error
type StringArray ¶
type StringArray []string
func (StringArray) Declare ¶ added in v0.2.2
func (h StringArray) Declare(props xql.PropertySet) string
func (*StringArray) Scan ¶
func (p *StringArray) Scan(src interface{}) error
Click to show internal directories.
Click to hide internal directories.