bench

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: MIT Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBeego

func CreateBeego() helper.ORMInterface

func CreateBun

func CreateBun() helper.ORMInterface

func CreateDbr

func CreateDbr() helper.ORMInterface

func CreateEnt

func CreateEnt() helper.ORMInterface

func CreateGodb

func CreateGodb() helper.ORMInterface

func CreateGorm

func CreateGorm() helper.ORMInterface

func CreateGormPrep

func CreateGormPrep() helper.ORMInterface

func CreateGorp

func CreateGorp() helper.ORMInterface

func CreatePg

func CreatePg() helper.ORMInterface

func CreatePgx

func CreatePgx() helper.ORMInterface

func CreatePgxPool

func CreatePgxPool() helper.ORMInterface

func CreatePop

func CreatePop() helper.ORMInterface

func CreateRaw

func CreateRaw() helper.ORMInterface

func CreateReform

func CreateReform() helper.ORMInterface

func CreateRel

func CreateRel() helper.ORMInterface

func CreateSqlboiler

func CreateSqlboiler() helper.ORMInterface

func CreateSqlc

func CreateSqlc() helper.ORMInterface

func CreateSqlx

func CreateSqlx() helper.ORMInterface

func CreateUpper

func CreateUpper() helper.ORMInterface

func CreateXorm

func CreateXorm() helper.ORMInterface

func CreateZorm

func CreateZorm() helper.ORMInterface

func NewModel6

func NewModel6() *models.Model

Model for Sqlboiler

func NewReformModel

func NewReformModel() *r.ReformModels

Types

type Beego

type Beego struct {
	helper.ORMInterface
	// contains filtered or unexported fields
}

func (*Beego) Close

func (beego *Beego) Close() error

func (*Beego) Init

func (beego *Beego) Init() error

func (*Beego) Insert

func (beego *Beego) Insert(b *testing.B)

func (*Beego) InsertMulti

func (beego *Beego) InsertMulti(b *testing.B)

func (*Beego) Name

func (beego *Beego) Name() string

func (*Beego) Read

func (beego *Beego) Read(b *testing.B)

func (*Beego) ReadSlice

func (beego *Beego) ReadSlice(b *testing.B)

func (*Beego) Update

func (beego *Beego) Update(b *testing.B)

type Bun

type Bun struct {
	helper.ORMInterface
	// contains filtered or unexported fields
}

func (*Bun) Close

func (bun *Bun) Close() error

func (*Bun) Init

func (bun *Bun) Init() error

func (*Bun) Insert

func (bun *Bun) Insert(b *testing.B)

func (*Bun) InsertMulti

func (bun *Bun) InsertMulti(b *testing.B)

func (*Bun) Name

func (bun *Bun) Name() string

func (*Bun) Read

func (bun *Bun) Read(b *testing.B)

func (*Bun) ReadSlice

func (bun *Bun) ReadSlice(b *testing.B)

func (*Bun) Update

func (bun *Bun) Update(b *testing.B)

type Dbr

type Dbr struct {
	helper.ORMInterface
	// contains filtered or unexported fields
}

func (*Dbr) Close

func (dbr *Dbr) Close() error

func (*Dbr) Init

func (dbr *Dbr) Init() error

func (*Dbr) Insert

func (dbr *Dbr) Insert(b *testing.B)

func (*Dbr) InsertMulti

func (dbr *Dbr) InsertMulti(b *testing.B)

func (*Dbr) Name

func (dbr *Dbr) Name() string

func (*Dbr) Read

func (dbr *Dbr) Read(b *testing.B)

func (*Dbr) ReadSlice

func (dbr *Dbr) ReadSlice(b *testing.B)

func (*Dbr) Update

func (dbr *Dbr) Update(b *testing.B)

type Ent

type Ent struct {
	helper.ORMInterface
	// contains filtered or unexported fields
}

func (*Ent) Close

func (ent *Ent) Close() error

func (*Ent) Init

func (ent *Ent) Init() error

func (*Ent) Insert

func (ent *Ent) Insert(b *testing.B)

func (*Ent) InsertMulti

func (ent *Ent) InsertMulti(b *testing.B)

func (*Ent) Name

func (ent *Ent) Name() string

func (*Ent) Read

func (ent *Ent) Read(b *testing.B)

func (*Ent) ReadSlice

func (ent *Ent) ReadSlice(b *testing.B)

func (*Ent) Update

func (ent *Ent) Update(b *testing.B)

type Godb

type Godb struct {
	helper.ORMInterface
	// contains filtered or unexported fields
}

func (*Godb) Close

func (godb *Godb) Close() error

func (*Godb) Init

func (godb *Godb) Init() error

func (*Godb) Insert

func (godb *Godb) Insert(b *testing.B)

func (*Godb) InsertMulti

func (godb *Godb) InsertMulti(b *testing.B)

func (*Godb) Name

func (godb *Godb) Name() string

func (*Godb) Read

func (godb *Godb) Read(b *testing.B)

func (*Godb) ReadSlice

func (godb *Godb) ReadSlice(b *testing.B)

func (*Godb) Update

func (godb *Godb) Update(b *testing.B)

type Gorm

type Gorm struct {
	helper.ORMInterface
	// contains filtered or unexported fields
}

func (*Gorm) Close

func (gorm *Gorm) Close() error

func (*Gorm) Init

func (gorm *Gorm) Init() error

func (*Gorm) Insert

func (gorm *Gorm) Insert(b *testing.B)

func (*Gorm) InsertMulti

func (gorm *Gorm) InsertMulti(b *testing.B)

func (*Gorm) Name

func (gorm *Gorm) Name() string

func (*Gorm) Read

func (gorm *Gorm) Read(b *testing.B)

func (*Gorm) ReadSlice

func (gorm *Gorm) ReadSlice(b *testing.B)

func (*Gorm) Update

func (gorm *Gorm) Update(b *testing.B)

type GormPrep

type GormPrep struct {
	helper.ORMInterface
	// contains filtered or unexported fields
}

func (*GormPrep) Close

func (gorm *GormPrep) Close() error

func (*GormPrep) Init

func (gorm *GormPrep) Init() error

func (*GormPrep) Insert

func (gorm *GormPrep) Insert(b *testing.B)

func (*GormPrep) InsertMulti

func (gorm *GormPrep) InsertMulti(b *testing.B)

func (*GormPrep) Name

func (gorm *GormPrep) Name() string

func (*GormPrep) Read

func (gorm *GormPrep) Read(b *testing.B)

func (*GormPrep) ReadSlice

func (gorm *GormPrep) ReadSlice(b *testing.B)

func (*GormPrep) Update

func (gorm *GormPrep) Update(b *testing.B)

type Gorp

type Gorp struct {
	helper.ORMInterface
	// contains filtered or unexported fields
}

func (*Gorp) Close

func (gorp *Gorp) Close() error

func (*Gorp) Init

func (gorp *Gorp) Init() error

func (*Gorp) Insert

func (gorp *Gorp) Insert(b *testing.B)

func (*Gorp) InsertMulti

func (gorp *Gorp) InsertMulti(b *testing.B)

func (*Gorp) Name

func (gorp *Gorp) Name() string

func (*Gorp) Read

func (gorp *Gorp) Read(b *testing.B)

func (*Gorp) ReadSlice

func (gorp *Gorp) ReadSlice(b *testing.B)

func (*Gorp) Update

func (gorp *Gorp) Update(b *testing.B)

type Model

type Model struct {
	Id      int `orm:"auto" gorm:"primary_key" db:"id" bun:",pk,autoincrement"`
	Name    string
	Title   string
	Fax     string
	Web     string
	Age     int
	Right   bool
	Counter int64
}

Model for GORM, GORP, Beego, Bun, Pg, Raw, Sqlc, Ent

func NewModel

func NewModel() *Model

func NewModelAlt

func NewModelAlt() Model

func (*Model) Table

func (m *Model) Table() string

func (*Model) TableName

func (m *Model) TableName() string

type Model2

type Model2 struct {
	ID      int    `db:"id,key,auto"`
	Name    string `db:"name"`
	Title   string `db:"title"`
	Fax     string `db:"fax"`
	Web     string `db:"web"`
	Age     int    `db:"age"`
	Right   bool   `db:"right"`
	Counter int64  `db:"counter"`
}

Model for Godb, Dbr

func NewModel2

func NewModel2() *Model2

func (*Model2) TableName

func (*Model2) TableName() string

type Model3

type Model3 struct {
	ID      int    `db:"id"`
	Name    string `db:"name"`
	Title   string `db:"title"`
	Fax     string `db:"fax"`
	Web     string `db:"web"`
	Age     int    `db:"age"`
	Right   bool   `db:"right"`
	Counter int64  `db:"counter"`
}

Model for Pop, Rel

func NewModel3

func NewModel3() *Model3

func (Model3) Table

func (Model3) Table() string

func (Model3) TableName

func (Model3) TableName() string

type Model4

type Model4 struct {
	ID      int    `db:"id,omitempty"`
	Name    string `db:"name"`
	Title   string `db:"title"`
	Fax     string `db:"fax"`
	Web     string `db:"web"`
	Age     int    `db:"age"`
	Right   bool   `db:"right"`
	Counter int64  `db:"counter"`
}

Model for Upper

func NewModel4

func NewModel4() *Model4

type Model5

type Model5 struct {
	ID      int `xorm:"pk autoincr 'id'"`
	Name    string
	Title   string
	Fax     string
	Web     string
	Age     int
	Right   bool
	Counter int64
}

Model for XORM

func NewModel5

func NewModel5() *Model5

type Model7

type Model7 struct {
	zorm.EntityStruct
	ID      int    `column:"id"`
	Name    string `column:"name"`
	Title   string `column:"title"`
	Fax     string `column:"fax"`
	Web     string `column:"web"`
	Age     int    `column:"age"`
	Right   bool   `column:"\"right\""`
	Counter int64  `column:"counter"`
}

Model for zorm

func NewModel7

func NewModel7() *Model7

func (*Model7) GetPKColumnName

func (entity *Model7) GetPKColumnName() string

func (*Model7) GetTableName

func (entity *Model7) GetTableName() string

type Pg

type Pg struct {
	helper.ORMInterface
	// contains filtered or unexported fields
}

func (*Pg) Close

func (pg *Pg) Close() error

func (*Pg) Init

func (pg *Pg) Init() error

func (*Pg) Insert

func (pg *Pg) Insert(b *testing.B)

func (*Pg) InsertMulti

func (pg *Pg) InsertMulti(b *testing.B)

func (*Pg) Name

func (pg *Pg) Name() string

func (*Pg) Read

func (pg *Pg) Read(b *testing.B)

func (*Pg) ReadSlice

func (pg *Pg) ReadSlice(b *testing.B)

func (*Pg) Update

func (pg *Pg) Update(b *testing.B)

type Pgx

type Pgx struct {
	helper.ORMInterface
	// contains filtered or unexported fields
}

func (*Pgx) Close

func (pgx *Pgx) Close() error

func (*Pgx) Init

func (pgx *Pgx) Init() error

func (*Pgx) Insert

func (pgx *Pgx) Insert(b *testing.B)

func (*Pgx) InsertMulti

func (pgx *Pgx) InsertMulti(b *testing.B)

func (*Pgx) Name

func (pgx *Pgx) Name() string

func (*Pgx) Read

func (pgx *Pgx) Read(b *testing.B)

func (*Pgx) ReadSlice

func (pgx *Pgx) ReadSlice(b *testing.B)

func (*Pgx) Update

func (pgx *Pgx) Update(b *testing.B)

type PgxPool

type PgxPool struct {
	helper.ORMInterface
	// contains filtered or unexported fields
}

func (*PgxPool) Close

func (pgx *PgxPool) Close() error

func (*PgxPool) Init

func (pgx *PgxPool) Init() error

func (*PgxPool) Insert

func (pgx *PgxPool) Insert(b *testing.B)

func (*PgxPool) InsertMulti

func (pgx *PgxPool) InsertMulti(b *testing.B)

func (*PgxPool) Name

func (pgx *PgxPool) Name() string

func (*PgxPool) Read

func (pgx *PgxPool) Read(b *testing.B)

func (*PgxPool) ReadSlice

func (pgx *PgxPool) ReadSlice(b *testing.B)

func (*PgxPool) Update

func (pgx *PgxPool) Update(b *testing.B)

type Pop

type Pop struct {
	helper.ORMInterface
	// contains filtered or unexported fields
}

func (*Pop) Close

func (pop *Pop) Close() error

func (*Pop) Init

func (pop *Pop) Init() error

func (*Pop) Insert

func (pop *Pop) Insert(b *testing.B)

func (*Pop) InsertMulti

func (pop *Pop) InsertMulti(b *testing.B)

func (*Pop) Name

func (pop *Pop) Name() string

func (*Pop) Read

func (pop *Pop) Read(b *testing.B)

func (*Pop) ReadSlice

func (pop *Pop) ReadSlice(b *testing.B)

func (*Pop) Update

func (pop *Pop) Update(b *testing.B)

type Raw

type Raw struct {
	helper.ORMInterface
	// contains filtered or unexported fields
}

func (*Raw) Close

func (raw *Raw) Close() error

func (*Raw) Init

func (raw *Raw) Init() error

func (*Raw) Insert

func (raw *Raw) Insert(b *testing.B)

func (*Raw) InsertMulti

func (raw *Raw) InsertMulti(b *testing.B)

func (*Raw) Name

func (raw *Raw) Name() string

func (*Raw) Read

func (raw *Raw) Read(b *testing.B)

func (*Raw) ReadSlice

func (raw *Raw) ReadSlice(b *testing.B)

func (*Raw) Update

func (raw *Raw) Update(b *testing.B)

type Reform

type Reform struct {
	helper.ORMInterface
	// contains filtered or unexported fields
}

func (*Reform) Close

func (reform *Reform) Close() error

func (*Reform) Init

func (reform *Reform) Init() error

func (*Reform) Insert

func (reform *Reform) Insert(b *testing.B)

func (*Reform) InsertMulti

func (reform *Reform) InsertMulti(b *testing.B)

func (*Reform) Name

func (reform *Reform) Name() string

func (*Reform) Read

func (reform *Reform) Read(b *testing.B)

func (*Reform) ReadSlice

func (reform *Reform) ReadSlice(b *testing.B)

func (*Reform) Update

func (reform *Reform) Update(b *testing.B)

type Rel

type Rel struct {
	helper.ORMInterface
	// contains filtered or unexported fields
}

func (*Rel) Close

func (rel *Rel) Close() error

func (*Rel) Init

func (rel *Rel) Init() error

func (*Rel) Insert

func (rel *Rel) Insert(b *testing.B)

func (*Rel) InsertMulti

func (rel *Rel) InsertMulti(b *testing.B)

func (*Rel) Name

func (rel *Rel) Name() string

func (*Rel) Read

func (rel *Rel) Read(b *testing.B)

func (*Rel) ReadSlice

func (rel *Rel) ReadSlice(b *testing.B)

func (*Rel) Update

func (rel *Rel) Update(b *testing.B)

type Sqlboiler

type Sqlboiler struct {
	helper.ORMInterface
	// contains filtered or unexported fields
}

func (*Sqlboiler) Close

func (sqlboiler *Sqlboiler) Close() error

func (*Sqlboiler) Init

func (sqlboiler *Sqlboiler) Init() error

func (*Sqlboiler) Insert

func (sqlboiler *Sqlboiler) Insert(b *testing.B)

func (*Sqlboiler) InsertMulti

func (sqlboiler *Sqlboiler) InsertMulti(b *testing.B)

func (*Sqlboiler) Name

func (sqlboiler *Sqlboiler) Name() string

func (*Sqlboiler) Read

func (sqlboiler *Sqlboiler) Read(b *testing.B)

func (*Sqlboiler) ReadSlice

func (sqlboiler *Sqlboiler) ReadSlice(b *testing.B)

func (*Sqlboiler) Update

func (sqlboiler *Sqlboiler) Update(b *testing.B)

type Sqlc

type Sqlc struct {
	helper.ORMInterface
	// contains filtered or unexported fields
}

func (*Sqlc) Close

func (sqlc *Sqlc) Close() error

func (*Sqlc) Init

func (sqlc *Sqlc) Init() error

func (*Sqlc) Insert

func (sqlc *Sqlc) Insert(b *testing.B)

func (*Sqlc) InsertMulti

func (sqlc *Sqlc) InsertMulti(b *testing.B)

func (*Sqlc) Name

func (sqlc *Sqlc) Name() string

func (*Sqlc) Read

func (sqlc *Sqlc) Read(b *testing.B)

func (*Sqlc) ReadSlice

func (sqlc *Sqlc) ReadSlice(b *testing.B)

func (*Sqlc) Update

func (sqlc *Sqlc) Update(b *testing.B)

type Sqlx

type Sqlx struct {
	helper.ORMInterface
	// contains filtered or unexported fields
}

func (*Sqlx) Close

func (sqlx *Sqlx) Close() error

func (*Sqlx) Init

func (sqlx *Sqlx) Init() error

func (*Sqlx) Insert

func (sqlx *Sqlx) Insert(b *testing.B)

func (*Sqlx) InsertMulti

func (sqlx *Sqlx) InsertMulti(b *testing.B)

func (*Sqlx) Name

func (sqlx *Sqlx) Name() string

func (*Sqlx) Read

func (sqlx *Sqlx) Read(b *testing.B)

func (*Sqlx) ReadSlice

func (sqlx *Sqlx) ReadSlice(b *testing.B)

func (*Sqlx) Update

func (sqlx *Sqlx) Update(b *testing.B)

type Upper

type Upper struct {
	helper.ORMInterface
	// contains filtered or unexported fields
}

func (*Upper) Close

func (upper *Upper) Close() error

func (*Upper) Init

func (upper *Upper) Init() error

func (*Upper) Insert

func (upper *Upper) Insert(b *testing.B)

func (*Upper) InsertMulti

func (upper *Upper) InsertMulti(b *testing.B)

func (*Upper) Name

func (upper *Upper) Name() string

func (*Upper) Read

func (upper *Upper) Read(b *testing.B)

func (*Upper) ReadSlice

func (upper *Upper) ReadSlice(b *testing.B)

func (*Upper) Update

func (upper *Upper) Update(b *testing.B)

type Xorm

type Xorm struct {
	helper.ORMInterface
	// contains filtered or unexported fields
}

func (*Xorm) Close

func (xorm *Xorm) Close() error

func (*Xorm) Init

func (xorm *Xorm) Init() error

func (*Xorm) Insert

func (xorm *Xorm) Insert(b *testing.B)

func (*Xorm) InsertMulti

func (xorm *Xorm) InsertMulti(b *testing.B)

func (*Xorm) Name

func (xorm *Xorm) Name() string

func (*Xorm) Read

func (xorm *Xorm) Read(b *testing.B)

func (*Xorm) ReadSlice

func (xorm *Xorm) ReadSlice(b *testing.B)

func (*Xorm) Update

func (xorm *Xorm) Update(b *testing.B)

type Zorm

type Zorm struct {
	helper.ORMInterface
}

func (*Zorm) Close

func (zorm *Zorm) Close() error

func (*Zorm) Init

func (zorm *Zorm) Init() error

func (*Zorm) Insert

func (zorm *Zorm) Insert(b *testing.B)

func (*Zorm) InsertMulti

func (zorm *Zorm) InsertMulti(b *testing.B)

func (*Zorm) Name

func (zorm *Zorm) Name() string

func (*Zorm) Read

func (zorm *Zorm) Read(b *testing.B)

func (*Zorm) ReadSlice

func (zorm *Zorm) ReadSlice(b *testing.B)

func (*Zorm) Update

func (zorm *Zorm) Update(b *testing.B)

Directories

Path Synopsis
ent
sqlc
db

Jump to

Keyboard shortcuts

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