Documentation ¶
Index ¶
- Constants
- Variables
- func BaseTestAll(engine *xorm.Engine, t *testing.T)
- func BaseTestAll2(engine *xorm.Engine, t *testing.T)
- func BaseTestAll3(engine *xorm.Engine, t *testing.T)
- func BaseTestAllSameMapper(engine *xorm.Engine, t *testing.T)
- func BaseTestAllSnakeMapper(engine *xorm.Engine, t *testing.T)
- func DoBenchDriver(newdriver func() (*sql.DB, error), createTableSql, dropTableSql string, ...)
- func DoBenchDriverFind(db *sql.DB, b *testing.B)
- func DoBenchDriverInsert(db *sql.DB, b *testing.B)
- func DoBenchFind(engine *xorm.Engine, b *testing.B)
- func DoBenchFindPtr(engine *xorm.Engine, b *testing.B)
- func DoBenchInsert(engine *xorm.Engine, b *testing.B)
- func NewCacher() core.Cacher
- type Article
- type BigInsert
- type BigStruct
- type CompositeKey
- type Condi
- type CreatedUpdated
- type CustomTableName
- type IndexOrUnique
- type Int32Id
- type IntId
- type Lowercase
- type MyFloat
- type MyInt
- type MyString
- type MyStruct
- type MyUInt
- type NoIdUser
- type NullData
- type NullData2
- type NullData3
- type Picture
- type ProcessorsStruct
- type StrangeName
- type StringPK
- type TTime
- type Uint32Id
- type Uint64Id
- type UintId
- type User
- type UserCU
- type Userdetail
- type Userinfo
- type VersionS
Constants ¶
View Source
const ( CreateTableMySql = "" /* 226-byte string literal not displayed */ DropTableMySql = "DROP TABLE IF EXISTS `big_struct`;" )
Variables ¶
View Source
var ShowTestSql bool = true
Functions ¶
func BaseTestAll3 ¶
!nash! the 3rd set of the test is intended for non-cache enabled engine
func DoBenchDriver ¶
Types ¶
type CompositeKey ¶
type CreatedUpdated ¶
type CustomTableName ¶
func (*CustomTableName) TableName ¶
func (c *CustomTableName) TableName() string
type IndexOrUnique ¶
type NullData ¶
type NullData struct { Id int64 StringPtr *string StringPtr2 *string `xorm:"text"` BoolPtr *bool BytePtr *byte UintPtr *uint Uint8Ptr *uint8 Uint16Ptr *uint16 Uint32Ptr *uint32 Uint64Ptr *uint64 IntPtr *int Int8Ptr *int8 Int16Ptr *int16 Int32Ptr *int32 Int64Ptr *int64 RunePtr *rune Float32Ptr *float32 Float64Ptr *float64 // Complex64Ptr *complex64 // !nashtsai! XORM yet support complex128: 'json: unsupported type: complex128' // Complex128Ptr *complex128 // !nashtsai! XORM yet support complex128: 'json: unsupported type: complex128' TimePtr *time.Time }
type NullData2 ¶
type NullData2 struct { Id int64 StringPtr string StringPtr2 string `xorm:"text"` BoolPtr bool BytePtr byte UintPtr uint Uint8Ptr uint8 Uint16Ptr uint16 Uint32Ptr uint32 Uint64Ptr uint64 IntPtr int Int8Ptr int8 Int16Ptr int16 Int32Ptr int32 Int64Ptr int64 RunePtr rune Float32Ptr float32 Float64Ptr float64 // Complex64Ptr complex64 // !nashtsai! XORM yet support complex128: 'json: unsupported type: complex128' // Complex128Ptr complex128 // !nashtsai! XORM yet support complex128: 'json: unsupported type: complex128' TimePtr time.Time }
type ProcessorsStruct ¶
type ProcessorsStruct struct { Id int64 B4InsertFlag int AfterInsertedFlag int B4UpdateFlag int AfterUpdatedFlag int B4DeleteFlag int `xorm:"-"` AfterDeletedFlag int `xorm:"-"` B4InsertViaExt int AfterInsertedViaExt int B4UpdateViaExt int AfterUpdatedViaExt int B4DeleteViaExt int `xorm:"-"` AfterDeletedViaExt int `xorm:"-"` }
func (*ProcessorsStruct) AfterDelete ¶
func (p *ProcessorsStruct) AfterDelete()
func (*ProcessorsStruct) AfterInsert ¶
func (p *ProcessorsStruct) AfterInsert()
func (*ProcessorsStruct) AfterUpdate ¶
func (p *ProcessorsStruct) AfterUpdate()
func (*ProcessorsStruct) BeforeDelete ¶
func (p *ProcessorsStruct) BeforeDelete()
func (*ProcessorsStruct) BeforeInsert ¶
func (p *ProcessorsStruct) BeforeInsert()
func (*ProcessorsStruct) BeforeUpdate ¶
func (p *ProcessorsStruct) BeforeUpdate()
type StrangeName ¶
type Userdetail ¶
Click to show internal directories.
Click to hide internal directories.