test

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Province string `json:"province"`
}

type AliasBool

type AliasBool bool

type AliasFloat64

type AliasFloat64 float64

type AliasInt

type AliasInt int

type AliasInt64

type AliasInt64 int64

type AliasPBool

type AliasPBool *bool

type AliasPFloat64

type AliasPFloat64 *float64

type AliasPInt

type AliasPInt *int

type AliasPInt64

type AliasPInt64 *int64

type AliasPString

type AliasPString *string

type AliasPTime

type AliasPTime *time.Time

type AliasString

type AliasString string

type AliasTime

type AliasTime time.Time

type ComplexInfo

type ComplexInfo struct {
	ID string

	Address  Address
	PAddress *Address
	Metadata map[string]string

	Ints    []int
	Int64s  []int64
	Strings []string
	Times   []time.Time
	TimesP  []*time.Time

	AliasString  AliasString
	AliasInt64   AliasInt64
	AliasInt     AliasInt
	AliasBool    AliasBool
	AliasFloat64 AliasFloat64

	AliasPString  AliasPString
	AliasPInt64   AliasPInt64
	AliasPInt     AliasPInt
	AliasPBool    AliasPBool
	AliasPFloat64 AliasPFloat64
}

func (*ComplexInfo) SQLArgs

func (m *ComplexInfo) SQLArgs(opts core.Opts, create bool) []interface{}

func (*ComplexInfo) SQLInsert

func (m *ComplexInfo) SQLInsert(w SQLWriter) error

func (*ComplexInfo) SQLScan

func (m *ComplexInfo) SQLScan(opts core.Opts, row *sql.Row) error

func (*ComplexInfo) SQLScanArgs

func (m *ComplexInfo) SQLScanArgs(opts core.Opts) []interface{}

func (*ComplexInfo) SQLSelect

func (_ *ComplexInfo) SQLSelect(w SQLWriter) error

func (*ComplexInfo) SQLTableName

func (m *ComplexInfo) SQLTableName() string

func (*ComplexInfo) SQLUpdate

func (m *ComplexInfo) SQLUpdate(w SQLWriter) error

func (*ComplexInfo) SQLUpdateAll

func (m *ComplexInfo) SQLUpdateAll(w SQLWriter) error

type ComplexInfoes

type ComplexInfoes []*ComplexInfo

func (ComplexInfoes) SQLInsert

func (ms ComplexInfoes) SQLInsert(w SQLWriter) error

func (*ComplexInfoes) SQLScan

func (ms *ComplexInfoes) SQLScan(opts core.Opts, rows *sql.Rows) error

func (ComplexInfoes) SQLSelect

func (_ ComplexInfoes) SQLSelect(w SQLWriter) error

func (ComplexInfoes) SQLTableName

func (m ComplexInfoes) SQLTableName() string

type SQLWriter

type SQLWriter = core.SQLWriter

type User

type User struct {
	ID        string
	Name      string
	CreatedAt time.Time
	UpdatedAt *time.Time

	Bool    bool
	Float64 float64
	Int     int
	Int64   int64
	String  string

	PBool    *bool
	PFloat64 *float64
	PInt     *int
	PInt64   *int64
	PString  *string
}

func (*User) SQLArgs

func (m *User) SQLArgs(opts core.Opts, create bool) []interface{}

func (*User) SQLInsert

func (m *User) SQLInsert(w SQLWriter) error

func (*User) SQLScan

func (m *User) SQLScan(opts core.Opts, row *sql.Row) error

func (*User) SQLScanArgs

func (m *User) SQLScanArgs(opts core.Opts) []interface{}

func (*User) SQLSelect

func (_ *User) SQLSelect(w SQLWriter) error

func (*User) SQLTableName

func (m *User) SQLTableName() string

func (*User) SQLUpdate

func (m *User) SQLUpdate(w SQLWriter) error

func (*User) SQLUpdateAll

func (m *User) SQLUpdateAll(w SQLWriter) error

type UserInfo

type UserInfo struct {
	UserID   string
	Metadata string

	Bool    bool
	Float64 float64
	Int     int
	Int64   int64
	String  string

	PBool    *bool
	PFloat64 *float64
	PInt     *int
	PInt64   *int64
	PString  *string
}

func (*UserInfo) SQLArgs

func (m *UserInfo) SQLArgs(opts core.Opts, create bool) []interface{}

func (*UserInfo) SQLInsert

func (m *UserInfo) SQLInsert(w SQLWriter) error

func (*UserInfo) SQLScan

func (m *UserInfo) SQLScan(opts core.Opts, row *sql.Row) error

func (*UserInfo) SQLScanArgs

func (m *UserInfo) SQLScanArgs(opts core.Opts) []interface{}

func (*UserInfo) SQLSelect

func (_ *UserInfo) SQLSelect(w SQLWriter) error

func (*UserInfo) SQLTableName

func (m *UserInfo) SQLTableName() string

func (*UserInfo) SQLUpdate

func (m *UserInfo) SQLUpdate(w SQLWriter) error

func (*UserInfo) SQLUpdateAll

func (m *UserInfo) SQLUpdateAll(w SQLWriter) error

type UserInfoes

type UserInfoes []*UserInfo

func (UserInfoes) SQLInsert

func (ms UserInfoes) SQLInsert(w SQLWriter) error

func (*UserInfoes) SQLScan

func (ms *UserInfoes) SQLScan(opts core.Opts, rows *sql.Rows) error

func (UserInfoes) SQLSelect

func (_ UserInfoes) SQLSelect(w SQLWriter) error

func (UserInfoes) SQLTableName

func (m UserInfoes) SQLTableName() string

type UserInline

type UserInline struct {
	Inline    Address  `sq:"inline"`
	PtrInline *Address `sq:"inline"`
}

func (*UserInline) SQLArgs

func (m *UserInline) SQLArgs(opts core.Opts, create bool) []interface{}

func (*UserInline) SQLInsert

func (m *UserInline) SQLInsert(w SQLWriter) error

func (*UserInline) SQLScan

func (m *UserInline) SQLScan(opts core.Opts, row *sql.Row) error

func (*UserInline) SQLScanArgs

func (m *UserInline) SQLScanArgs(opts core.Opts) []interface{}

func (*UserInline) SQLSelect

func (_ *UserInline) SQLSelect(w SQLWriter) error

func (*UserInline) SQLTableName

func (m *UserInline) SQLTableName() string

func (*UserInline) SQLUpdate

func (m *UserInline) SQLUpdate(w SQLWriter) error

func (*UserInline) SQLUpdateAll

func (m *UserInline) SQLUpdateAll(w SQLWriter) error

type UserInlines

type UserInlines []*UserInline

func (UserInlines) SQLInsert

func (ms UserInlines) SQLInsert(w SQLWriter) error

func (*UserInlines) SQLScan

func (ms *UserInlines) SQLScan(opts core.Opts, rows *sql.Rows) error

func (UserInlines) SQLSelect

func (_ UserInlines) SQLSelect(w SQLWriter) error

func (UserInlines) SQLTableName

func (m UserInlines) SQLTableName() string

type UserSubset

type UserSubset struct {
	ID string

	Bool    bool
	Float64 float64
	Int     int
	Int64   int64
	String  string

	PBool    *bool
	PFloat64 *float64
	PInt     *int
	PInt64   *int64
	PString  *string
}

func (*UserSubset) SQLArgs

func (m *UserSubset) SQLArgs(opts core.Opts, create bool) []interface{}

func (*UserSubset) SQLInsert

func (m *UserSubset) SQLInsert(w SQLWriter) error

func (*UserSubset) SQLScan

func (m *UserSubset) SQLScan(opts core.Opts, row *sql.Row) error

func (*UserSubset) SQLScanArgs

func (m *UserSubset) SQLScanArgs(opts core.Opts) []interface{}

func (*UserSubset) SQLSelect

func (_ *UserSubset) SQLSelect(w SQLWriter) error

func (*UserSubset) SQLTableName

func (m *UserSubset) SQLTableName() string

func (*UserSubset) SQLUpdate

func (m *UserSubset) SQLUpdate(w SQLWriter) error

func (*UserSubset) SQLUpdateAll

func (m *UserSubset) SQLUpdateAll(w SQLWriter) error

type UserSubsets

type UserSubsets []*UserSubset

func (UserSubsets) SQLInsert

func (ms UserSubsets) SQLInsert(w SQLWriter) error

func (*UserSubsets) SQLScan

func (ms *UserSubsets) SQLScan(opts core.Opts, rows *sql.Rows) error

func (UserSubsets) SQLSelect

func (_ UserSubsets) SQLSelect(w SQLWriter) error

func (UserSubsets) SQLTableName

func (m UserSubsets) SQLTableName() string

type UserTag

type UserTag struct {
	Skip   string  `sq:"-" json:"skip"`
	Inline Address `sq:"inline" json:"address"`
	Rename string  `sq:"'new_name'" json:"json_name"`
}

func (*UserTag) SQLArgs

func (m *UserTag) SQLArgs(opts core.Opts, create bool) []interface{}

func (*UserTag) SQLInsert

func (m *UserTag) SQLInsert(w SQLWriter) error

func (*UserTag) SQLScan

func (m *UserTag) SQLScan(opts core.Opts, row *sql.Row) error

func (*UserTag) SQLScanArgs

func (m *UserTag) SQLScanArgs(opts core.Opts) []interface{}

func (*UserTag) SQLSelect

func (_ *UserTag) SQLSelect(w SQLWriter) error

func (*UserTag) SQLTableName

func (m *UserTag) SQLTableName() string

func (*UserTag) SQLUpdate

func (m *UserTag) SQLUpdate(w SQLWriter) error

func (*UserTag) SQLUpdateAll

func (m *UserTag) SQLUpdateAll(w SQLWriter) error

type UserTags

type UserTags []*UserTag

func (UserTags) SQLInsert

func (ms UserTags) SQLInsert(w SQLWriter) error

func (*UserTags) SQLScan

func (ms *UserTags) SQLScan(opts core.Opts, rows *sql.Rows) error

func (UserTags) SQLSelect

func (_ UserTags) SQLSelect(w SQLWriter) error

func (UserTags) SQLTableName

func (m UserTags) SQLTableName() string

type UserUnion

type UserUnion struct {
	User     *User
	UserInfo *UserInfo
}

func (*UserUnion) SQLJoin

func (m *UserUnion) SQLJoin(w SQLWriter, types []sq.JOIN_TYPE) error

func (*UserUnion) SQLScan

func (m *UserUnion) SQLScan(opts core.Opts, row *sql.Row) error

func (*UserUnion) SQLScanArgs

func (m *UserUnion) SQLScanArgs(opts core.Opts) []interface{}

func (*UserUnion) SQLSelect

func (m *UserUnion) SQLSelect(w SQLWriter) error

func (*UserUnion) SQLTableName

func (m *UserUnion) SQLTableName() string

type UserUnionMore

type UserUnionMore struct {
	User       *User
	UserInfo   *UserInfo
	UserSubset *UserSubset
}

func (*UserUnionMore) SQLJoin

func (m *UserUnionMore) SQLJoin(w SQLWriter, types []sq.JOIN_TYPE) error

func (*UserUnionMore) SQLScan

func (m *UserUnionMore) SQLScan(opts core.Opts, row *sql.Row) error

func (*UserUnionMore) SQLScanArgs

func (m *UserUnionMore) SQLScanArgs(opts core.Opts) []interface{}

func (*UserUnionMore) SQLSelect

func (m *UserUnionMore) SQLSelect(w SQLWriter) error

func (*UserUnionMore) SQLTableName

func (m *UserUnionMore) SQLTableName() string

type UserUnionMores

type UserUnionMores []*UserUnionMore

func (UserUnionMores) SQLJoin

func (m UserUnionMores) SQLJoin(w SQLWriter, types []sq.JOIN_TYPE) error

func (*UserUnionMores) SQLScan

func (ms *UserUnionMores) SQLScan(opts core.Opts, rows *sql.Rows) error

func (UserUnionMores) SQLSelect

func (m UserUnionMores) SQLSelect(w SQLWriter) error

func (UserUnionMores) SQLTableName

func (m UserUnionMores) SQLTableName() string

type UserUnions

type UserUnions []*UserUnion

func (UserUnions) SQLJoin

func (m UserUnions) SQLJoin(w SQLWriter, types []sq.JOIN_TYPE) error

func (*UserUnions) SQLScan

func (ms *UserUnions) SQLScan(opts core.Opts, rows *sql.Rows) error

func (UserUnions) SQLSelect

func (m UserUnions) SQLSelect(w SQLWriter) error

func (UserUnions) SQLTableName

func (m UserUnions) SQLTableName() string

type Users

type Users []*User

func (Users) SQLInsert

func (ms Users) SQLInsert(w SQLWriter) error

func (*Users) SQLScan

func (ms *Users) SQLScan(opts core.Opts, rows *sql.Rows) error

func (Users) SQLSelect

func (_ Users) SQLSelect(w SQLWriter) error

func (Users) SQLTableName

func (m Users) SQLTableName() string

Jump to

Keyboard shortcuts

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