db_user

package
v0.0.0-...-5fb5118 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Code generated by wpb. DO NOT EDIT.

Code generated by wpb. DO NOT EDIT.

Code generated by wpb. DO NOT EDIT.

Code generated by wpb. DO NOT EDIT.

Code generated by wpb. DO NOT EDIT.

Index

Constants

View Source
const (
	UserFriendSQL_Insert        = "insert user_friend(`uid`,`fid`,`state`) values(?,?,?)"
	UserFriendSQL_InsertValues  = ",(?,?,?)"
	UserFriendSQL_InsertValues2 = ",(?,?,?)"
	UserFriendSQL_Where1        = " where (`uid`=? and `fid`=?)"
	UserFriendSQL_Where2        = " or (`uid`=? and `fid`=?)"
	UserFriendSQL_Upsert        = "insert user_friend(`uid`,`fid`,`state`) values(?,?,?)"
	UserFriendSQL_UpsertUpdate  = " on duplicate key update `uid`=values(`uid`),`fid`=values(`fid`),`state`=values(`state`)"
	UserFriendSQL_Update        = "update user_friend set `state`=? where `uid`=? and `fid`=?"
	UserFriendSQL_Delete        = "delete from user_friend"
	UserFriendSQL_Find          = "select `uid`,`fid`,`state` from user_friend"
	UserFriendSQL_FindRow       = "select `uid`,`fid`,`state`,`modify_stamp`,`create_stamp` from user_friend"
	UserFriendSQL_Count         = "select count(*) from user_friend"
	UserFriendSQL_Create        = "create table user_friend (" +
		"`uid` bigint not null default 0" +
		",`fid` bigint not null default 0" +
		",`state` tinyint not null default 0" +
		",`modify_stamp` timestamp default current_timestamp on update current_timestamp" +
		",`create_stamp` timestamp default current_timestamp" +
		",PRIMARY KEY ( `uid`,`fid`)" +
		") ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;"
)
View Source
const (
	UserInfoSQL_Insert        = "insert user_info(`name`,`email`) values(?,?)"
	UserInfoSQL_Insert2       = "insert user_info(`uid`,`name`,`email`) values(?,?,?)"
	UserInfoSQL_InsertValues  = ",(?,?)"
	UserInfoSQL_InsertValues2 = ",(?,?,?)"
	UserInfoSQL_Where1        = " where (`uid`=?)"
	UserInfoSQL_Where2        = " or (`uid`=?)"
	UserInfoSQL_Upsert        = "insert user_info(`uid`,`name`,`email`) values(?,?,?)"
	UserInfoSQL_UpsertUpdate  = " on duplicate key update `name`=values(`name`),`email`=values(`email`)"
	UserInfoSQL_Update        = "update user_info set `name`=?,`email`=? where `uid`=?"
	UserInfoSQL_Delete        = "delete from user_info"
	UserInfoSQL_Find          = "select `uid`,`name`,`email` from user_info"
	UserInfoSQL_FindRow       = "select `uid`,`name`,`email`,`modify_stamp`,`create_stamp` from user_info"
	UserInfoSQL_Count         = "select count(*) from user_info"
	UserInfoSQL_Create        = "create table user_info (" +
		"`uid` bigint not null auto_increment" +
		",`name` varchar(128) not null default ''" +
		",`email` varchar(64) not null default ''" +
		",`modify_stamp` timestamp default current_timestamp on update current_timestamp" +
		",`create_stamp` timestamp default current_timestamp" +
		",PRIMARY KEY ( `uid`)" +
		") ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;"
)
View Source
const (
	UserTestSQL_Insert        = "insert user_test(`uid`,`xxx`,`state`) values(?,?,?)"
	UserTestSQL_InsertValues  = ",(?,?,?)"
	UserTestSQL_InsertValues2 = ",(?,?,?)"
	UserTestSQL_Delete        = "delete from user_test"
	UserTestSQL_Find          = "select `uid`,`xxx`,`state` from user_test"
	UserTestSQL_FindRow       = "select `uid`,`xxx`,`state`,`modify_stamp`,`create_stamp` from user_test"
	UserTestSQL_Count         = "select count(*) from user_test"
	UserTestSQL_Create        = "create table user_test (" +
		"`uid` bigint not null default 0" +
		",`xxx` bigint not null default 0" +
		",`state` tinyint not null default 0" +
		",`modify_stamp` timestamp default current_timestamp on update current_timestamp" +
		",`create_stamp` timestamp default current_timestamp" +
		") ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;"
)
View Source
const (
	UserTest2SQL_Insert        = "insert user_test_2(`uid`,`xxx`,`state`,`custom_val`) values(?,?,?,?)"
	UserTest2SQL_InsertValues  = ",(?,?,?,?)"
	UserTest2SQL_InsertValues2 = ",(?,?,?,?)"
	UserTest2SQL_Where1        = " where (`uid`=?)"
	UserTest2SQL_Where2        = " or (`uid`=?)"
	UserTest2SQL_Upsert        = "insert user_test_2(`uid`,`xxx`,`state`,`custom_val`) values(?,?,?,?)"
	UserTest2SQL_UpsertUpdate  = " on duplicate key update `uid`=values(`uid`),`xxx`=values(`xxx`),`state`=values(`state`),`custom_val`=values(`custom_val`)"
	UserTest2SQL_Update        = "update user_test_2 set `xxx`=?,`state`=?,`custom_val`=? where `uid`=?"
	UserTest2SQL_Delete        = "delete from user_test_2"
	UserTest2SQL_Find          = "select `uid`,`xxx`,`state`,`custom_val` from user_test_2"
	UserTest2SQL_FindRow       = "select `uid`,`xxx`,`state`,`custom_val`,`modify_stamp`,`create_stamp` from user_test_2"
	UserTest2SQL_Count         = "select count(*) from user_test_2"
	UserTest2SQL_Create        = "create table user_test_2 (" +
		"`uid` bigint not null default 0" +
		",`xxx` bigint not null default 0" +
		",`state` tinyint not null default 0" +
		",`custom_val` varchar(64) not null default ''" +
		",`modify_stamp` timestamp default current_timestamp on update current_timestamp" +
		",`create_stamp` timestamp default current_timestamp" +
		",PRIMARY KEY ( `uid`)" +
		") ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;"
)
View Source
const (
	UserXxLogSQL_Insert        = "insert user_xx_log(`uid`,`xx`,`x2`,`create_stamp`) values(?,?,?,?)"
	UserXxLogSQL_Insert2       = "insert user_xx_log(`id`,`uid`,`xx`,`x2`,`create_stamp`) values(?,?,?,?,?)"
	UserXxLogSQL_InsertValues  = ",(?,?,?,?)"
	UserXxLogSQL_InsertValues2 = ",(?,?,?,?,?)"
	UserXxLogSQL_Where1        = " where (`id`=?)"
	UserXxLogSQL_Where2        = " or (`id`=?)"
	UserXxLogSQL_Upsert        = "insert user_xx_log(`id`,`uid`,`xx`,`x2`,`create_stamp`) values(?,?,?,?,?)"
	UserXxLogSQL_UpsertUpdate  = " on duplicate key update `uid`=values(`uid`),`xx`=values(`xx`),`x2`=values(`x2`),`create_stamp`=values(`create_stamp`)"
	UserXxLogSQL_Update        = "update user_xx_log set `uid`=?,`xx`=?,`x2`=?,`create_stamp`=? where `id`=?"
	UserXxLogSQL_Delete        = "delete from user_xx_log"
	UserXxLogSQL_Find          = "select `id`,`uid`,`xx`,`x2`,`create_stamp` from user_xx_log"
	UserXxLogSQL_Count         = "select count(*) from user_xx_log"
	UserXxLogSQL_Create        = "create table user_xx_log (" +
		"`id` bigint not null auto_increment" +
		",`uid` bigint not null default 0" +
		",`xx` bigint not null default 0" +
		",`x2` varchar(64) not null default ''" +
		",`create_stamp` timestamp default current_timestamp" +
		",PRIMARY KEY ( `id`)" +
		") ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;"
)

Variables

View Source
var (
	UserFriendUidUnamrshal   = svc_db.RawToInt64
	UserFriendFidUnamrshal   = svc_db.RawToInt64
	UserFriendStateUnamrshal = svc_db.RawToInt8
)
View Source
var (
	UserFriendSQL_TableColumns = map[string]string{
		"uid":   "alter table user_friend add `uid` bigint not null default 0;",
		"fid":   "alter table user_friend add `fid` bigint not null default 0;",
		"state": "alter table user_friend add `state` tinyint not null default 0;",
	}
	UserFriendSQL_TableIndex = map[string]string{
		"user_friend_uid": "create index user_friend_uid on user_friend(`uid`)",
	}
)
View Source
var (
	UserInfoUidUnamrshal   = svc_db.RawToInt64
	UserInfoNameUnamrshal  = svc_db.RawToString
	UserInfoEmailUnamrshal = svc_db.RawToString
)
View Source
var (
	UserInfoSQL_TableColumns = map[string]string{
		"uid":   "alter table user_info add `uid` bigint not null auto_increment;",
		"name":  "alter table user_info add `name` varchar(128) not null default '';",
		"email": "alter table user_info add `email` varchar(64) not null default '';",
	}
	UserInfoSQL_TableIndex = map[string]string{
		"user_info_email": "create index user_info_email on user_info(`email`)",
		"user_info_name":  "create unique index user_info_name on user_info(`name`)",
	}
)
View Source
var (
	UserTestUidUnamrshal   = svc_db.RawToInt64
	UserTestXxxUnamrshal   = svc_db.RawToInt64
	UserTestStateUnamrshal = svc_db.RawToInt8
)
View Source
var (
	UserTestSQL_TableColumns = map[string]string{
		"uid":   "alter table user_test add `uid` bigint not null default 0;",
		"xxx":   "alter table user_test add `xxx` bigint not null default 0;",
		"state": "alter table user_test add `state` tinyint not null default 0;",
	}
	UserTestSQL_TableIndex = map[string]string{
		"user_test_uid": "create unique index user_test_uid on user_test(`uid`)",
		"user_test_xxx": "create index user_test_xxx on user_test(`uid`,`xxx`)",
	}
)
View Source
var (
	UserTest2UidUnamrshal       = svc_db.RawToInt64
	UserTest2XxxUnamrshal       = svc_db.RawToInt64
	UserTest2StateUnamrshal     = svc_db.RawToInt8
	UserTest2CustomValUnamrshal = svc_db.RawToString

	UserTest2UidMarshal       = svc_db.AnyFromAny[int64]
	UserTest2CustomValMarshal = svc_db.AnyFromAny[string]
)
View Source
var (
	UserTest2SQL_TableColumns = map[string]string{
		"uid":        "alter table user_test_2 add `uid` bigint not null default 0;",
		"xxx":        "alter table user_test_2 add `xxx` bigint not null default 0;",
		"state":      "alter table user_test_2 add `state` tinyint not null default 0;",
		"custom_val": "alter table user_test_2 add `custom_val` varchar(64) not null default '';",
	}
	UserTest2SQL_TableIndex = map[string]string{
		"user_test_2_unique_test": "create unique index user_test_2_unique_test on user_test_2(`uid`,`xxx`)",
		"user_test_2_xxx":         "create index user_test_2_xxx on user_test_2(`uid`)",
	}
)
View Source
var (
	UserXxLogIdUnamrshal          = svc_db.RawToInt64
	UserXxLogUidUnamrshal         = svc_db.RawToInt64
	UserXxLogXxUnamrshal          = svc_db.RawToInt64
	UserXxLogX2Unamrshal          = svc_db.RawToString
	UserXxLogCreateStampUnamrshal = svc_db.RawToStampInt64

	UserXxLogCreateStampMarshal = svc_db.AnyFromStampInt64
)
View Source
var UserFriendOP = func() UserFriendOperation {
	return globalUserFriendOP.Load()
}
View Source
var UserInfoOP = func() UserInfoOperation {
	return globalUserInfoOP.Load()
}
View Source
var UserTest2OP = func() UserTest2Operation {
	return globalUserTest2OP.Load()
}
View Source
var UserTestOP = func() UserTestOperation {
	return globalUserTestOP.Load()
}
View Source
var UserXxLogOP = func() UserXxLogOperation {
	return globalUserXxLogOP.Load()
}
View Source
var (
	UserXxLogSQL_TableColumns = map[string]string{
		"id":           "alter table user_xx_log add `id` bigint not null auto_increment;",
		"uid":          "alter table user_xx_log add `uid` bigint not null default 0;",
		"xx":           "alter table user_xx_log add `xx` bigint not null default 0;",
		"x2":           "alter table user_xx_log add `x2` varchar(64) not null default '';",
		"create_stamp": "alter table user_xx_log add `create_stamp` timestamp default current_timestamp;",
	}
)

Functions

func NewUserFriendOperation

func NewUserFriendOperation(db *sqlx.DB) (_ *xUserFriendOperation, err error)

func NewUserInfoOperation

func NewUserInfoOperation(db *sqlx.DB) (_ *xUserInfoOperation, err error)

func NewUserTest2Operation

func NewUserTest2Operation(db *sqlx.DB) (_ *xUserTest2Operation, err error)

func NewUserTestOperation

func NewUserTestOperation(db *sqlx.DB) (_ *xUserTestOperation, err error)

func NewUserXxLogOperation

func NewUserXxLogOperation(db *sqlx.DB) (_ *xUserXxLogOperation, err error)

func SyncUserFriendDBTable

func SyncUserFriendDBTable(ctx context.Context, db *sqlx.DB) (err error)

func SyncUserInfoDBTable

func SyncUserInfoDBTable(ctx context.Context, db *sqlx.DB) (err error)

func SyncUserTest2DBTable

func SyncUserTest2DBTable(ctx context.Context, db *sqlx.DB) (err error)

func SyncUserTestDBTable

func SyncUserTestDBTable(ctx context.Context, db *sqlx.DB) (err error)

func SyncUserXxLogDBTable

func SyncUserXxLogDBTable(ctx context.Context, db *sqlx.DB) (err error)

Types

type UserFriendKey

type UserFriendKey struct {
	Uid int64
	Fid int64
}

func UserFriendExToPrimaryKeysEx

func UserFriendExToPrimaryKeysEx(rows []*dbop.UserFriendEx) (ids []UserFriendKey)

func UserFriendToPrimaryKeys

func UserFriendToPrimaryKeys(rows []*dbop.UserFriend) (ids []UserFriendKey)

type UserFriendNamedInsert

type UserFriendNamedInsert struct {
	// contains filtered or unexported fields
}

func (*UserFriendNamedInsert) CreateStamp

func (x *UserFriendNamedInsert) CreateStamp() *UserFriendNamedInsert

func (*UserFriendNamedInsert) Fid

func (*UserFriendNamedInsert) ModifyStamp

func (x *UserFriendNamedInsert) ModifyStamp() *UserFriendNamedInsert

func (*UserFriendNamedInsert) State

func (*UserFriendNamedInsert) ToSQL

func (x *UserFriendNamedInsert) ToSQL() string

func (*UserFriendNamedInsert) Uid

func (*UserFriendNamedInsert) ValuesToSQL

func (x *UserFriendNamedInsert) ValuesToSQL() string

type UserFriendNamedOrderAsc

type UserFriendNamedOrderAsc struct {
	// contains filtered or unexported fields
}

func (*UserFriendNamedOrderAsc) Asc

func (*UserFriendNamedOrderAsc) CreateStamp

func (*UserFriendNamedOrderAsc) Desc

func (*UserFriendNamedOrderAsc) ModifyStamp

func (*UserFriendNamedOrderAsc) ToSQL

func (x *UserFriendNamedOrderAsc) ToSQL() string

type UserFriendNamedOrderBy

type UserFriendNamedOrderBy struct {
	// contains filtered or unexported fields
}

func (*UserFriendNamedOrderBy) Fid

func (*UserFriendNamedOrderBy) Limit

func (x *UserFriendNamedOrderBy) Limit(limit, offset int) *UserFriendNamedOrderBy

func (*UserFriendNamedOrderBy) State

func (*UserFriendNamedOrderBy) ToSQL

func (x *UserFriendNamedOrderBy) ToSQL() string

func (*UserFriendNamedOrderBy) Uid

type UserFriendNamedSelect

type UserFriendNamedSelect struct {
	// contains filtered or unexported fields
}

func (*UserFriendNamedSelect) CreateStamp

func (x *UserFriendNamedSelect) CreateStamp() *UserFriendNamedSelect

func (*UserFriendNamedSelect) Fid

func (*UserFriendNamedSelect) ModifyStamp

func (x *UserFriendNamedSelect) ModifyStamp() *UserFriendNamedSelect

func (*UserFriendNamedSelect) State

func (*UserFriendNamedSelect) ToSQL

func (x *UserFriendNamedSelect) ToSQL() string

func (*UserFriendNamedSelect) Uid

func (*UserFriendNamedSelect) Where

type UserFriendNamedUpdate

type UserFriendNamedUpdate struct {
	// contains filtered or unexported fields
}

func (*UserFriendNamedUpdate) CreateStamp

func (x *UserFriendNamedUpdate) CreateStamp() *UserFriendNamedUpdate

func (*UserFriendNamedUpdate) Fid

func (*UserFriendNamedUpdate) ModifyStamp

func (x *UserFriendNamedUpdate) ModifyStamp() *UserFriendNamedUpdate

func (*UserFriendNamedUpdate) State

func (*UserFriendNamedUpdate) ToSQL

func (x *UserFriendNamedUpdate) ToSQL() string

func (*UserFriendNamedUpdate) Uid

func (*UserFriendNamedUpdate) Where

type UserFriendNamedWhere

type UserFriendNamedWhere struct {
	// contains filtered or unexported fields
}

func (*UserFriendNamedWhere) And

func (*UserFriendNamedWhere) CreateStamp

func (x *UserFriendNamedWhere) CreateStamp() *UserFriendNamedWhere

func (*UserFriendNamedWhere) Custom

func (x *UserFriendNamedWhere) Custom(f func(buf *util.Builder)) *UserFriendNamedWhere

func (*UserFriendNamedWhere) Fid

func (*UserFriendNamedWhere) Group

func (*UserFriendNamedWhere) Limit

func (x *UserFriendNamedWhere) Limit(limit, offset int) *UserFriendNamedWhere

func (*UserFriendNamedWhere) ModifyStamp

func (x *UserFriendNamedWhere) ModifyStamp() *UserFriendNamedWhere

func (*UserFriendNamedWhere) OnDuplicateKeyUpdate

func (x *UserFriendNamedWhere) OnDuplicateKeyUpdate() *UserFriendNamedUpdate

func (*UserFriendNamedWhere) OnDuplicateKeyUpdateValues

func (x *UserFriendNamedWhere) OnDuplicateKeyUpdateValues() *UserFriendNamedUpdate

func (*UserFriendNamedWhere) Or

func (*UserFriendNamedWhere) OrderBy

func (*UserFriendNamedWhere) State

func (*UserFriendNamedWhere) ToSQL

func (x *UserFriendNamedWhere) ToSQL() string

func (*UserFriendNamedWhere) Uid

type UserFriendOperation

type UserFriendOperation interface {
	Insert(ctx context.Context, data *dbop.UserFriend) (res sql.Result, err error)
	InsertMany(ctx context.Context, datas []*dbop.UserFriend) (res sql.Result, err error)

	Update(ctx context.Context, data *dbop.UserFriend) (res sql.Result, err error)
	Upsert(ctx context.Context, data *dbop.UserFriend) (res sql.Result, err error)
	UpsertMany(ctx context.Context, datas []*dbop.UserFriend) (res sql.Result, err error)

	Find(ctx context.Context, uid int64, fid int64) (data *dbop.UserFriend, err error)
	FindEx(ctx context.Context, uid int64, fid int64) (data *dbop.UserFriendEx, err error)
	Delete(ctx context.Context, uid int64, fid int64) (res sql.Result, err error)

	FindByKey(ctx context.Context, id UserFriendKey) (data *dbop.UserFriend, err error)
	FindExByKey(ctx context.Context, id UserFriendKey) (data *dbop.UserFriendEx, err error)
	DeleteByKey(ctx context.Context, id UserFriendKey) (res sql.Result, err error)

	FindByKeyArray(ctx context.Context, ids []UserFriendKey) (datas []*dbop.UserFriend, err error)
	FindExByKeyArray(ctx context.Context, ids []UserFriendKey) (datas []*dbop.UserFriendEx, err error)
	DeleteByKeyArray(ctx context.Context, ids []UserFriendKey) (res sql.Result, err error)

	FindByIndexUid(ctx context.Context, uid int64, limit, offset int) (datas []*dbop.UserFriend, err error)
	FindExByIndexUid(ctx context.Context, uid int64, limit, offset int) (datas []*dbop.UserFriendEx, err error)
	CountByIndexUid(ctx context.Context, uid int64) (count int, err error)
	DeleteByIndexUid(ctx context.Context, uid int64) (res sql.Result, err error)

	Where(bufSize int) *UserFriendWhereStmt
	Select(ctx context.Context, where *UserFriendWhereStmt) (datas []*dbop.UserFriend, err error)
	SelectEx(ctx context.Context, where *UserFriendWhereStmt) (datas []*dbop.UserFriendEx, err error)
	Count(ctx context.Context, where *UserFriendWhereStmt) (count int, err error)

	DeleteMany(ctx context.Context, where *UserFriendWhereStmt) (res sql.Result, err error)

	RangeAll(ctx context.Context, where *UserFriendWhereStmt, f func(ctx context.Context, row *dbop.UserFriend) bool) error
	RangeAllEx(ctx context.Context, where *UserFriendWhereStmt, f func(ctx context.Context, row *dbop.UserFriendEx) bool) error
	AllData(ctx context.Context, where *UserFriendWhereStmt) (datas []*dbop.UserFriend, err error)
	AllDataEx(ctx context.Context, where *UserFriendWhereStmt) (datas []*dbop.UserFriendEx, err error)

	// use for custom named sql
	DB() *sqlx.DB
}

type UserFriendSQLWriter

type UserFriendSQLWriter struct {
	// contains filtered or unexported fields
}

func UserFriendNamedSQL

func UserFriendNamedSQL(bufSize int) *UserFriendSQLWriter

func (*UserFriendSQLWriter) Delete

func (*UserFriendSQLWriter) Insert

func (*UserFriendSQLWriter) Select

func (*UserFriendSQLWriter) Update

type UserFriendWhereStmt

type UserFriendWhereStmt struct {
	// contains filtered or unexported fields
}

func (*UserFriendWhereStmt) And

func (*UserFriendWhereStmt) Custom

func (w *UserFriendWhereStmt) Custom(f func(buf *util.Builder)) *UserFriendWhereStmt

func (*UserFriendWhereStmt) Fid

func (*UserFriendWhereStmt) Group

func (*UserFriendWhereStmt) Limit

func (w *UserFriendWhereStmt) Limit(limit, offset int) *UserFriendWhereStmt

func (*UserFriendWhereStmt) Or

func (*UserFriendWhereStmt) State

func (*UserFriendWhereStmt) String

func (w *UserFriendWhereStmt) String() string

func (*UserFriendWhereStmt) Uid

type UserInfoKey

type UserInfoKey = int64

func UserInfoExToPrimaryKeysEx

func UserInfoExToPrimaryKeysEx(rows []*dbop.UserInfoEx) (ids []UserInfoKey)

func UserInfoToPrimaryKeys

func UserInfoToPrimaryKeys(rows []*dbop.UserInfo) (ids []UserInfoKey)

type UserInfoNamedInsert

type UserInfoNamedInsert struct {
	// contains filtered or unexported fields
}

func (*UserInfoNamedInsert) CreateStamp

func (x *UserInfoNamedInsert) CreateStamp() *UserInfoNamedInsert

func (*UserInfoNamedInsert) Email

func (*UserInfoNamedInsert) ModifyStamp

func (x *UserInfoNamedInsert) ModifyStamp() *UserInfoNamedInsert

func (*UserInfoNamedInsert) Name

func (*UserInfoNamedInsert) ToSQL

func (x *UserInfoNamedInsert) ToSQL() string

func (*UserInfoNamedInsert) Uid

func (*UserInfoNamedInsert) ValuesToSQL

func (x *UserInfoNamedInsert) ValuesToSQL() string

type UserInfoNamedOrderAsc

type UserInfoNamedOrderAsc struct {
	// contains filtered or unexported fields
}

func (*UserInfoNamedOrderAsc) Asc

func (*UserInfoNamedOrderAsc) CreateStamp

func (x *UserInfoNamedOrderAsc) CreateStamp() *UserInfoNamedOrderAsc

func (*UserInfoNamedOrderAsc) Desc

func (*UserInfoNamedOrderAsc) ModifyStamp

func (x *UserInfoNamedOrderAsc) ModifyStamp() *UserInfoNamedOrderAsc

func (*UserInfoNamedOrderAsc) ToSQL

func (x *UserInfoNamedOrderAsc) ToSQL() string

type UserInfoNamedOrderBy

type UserInfoNamedOrderBy struct {
	// contains filtered or unexported fields
}

func (*UserInfoNamedOrderBy) Email

func (*UserInfoNamedOrderBy) Limit

func (x *UserInfoNamedOrderBy) Limit(limit, offset int) *UserInfoNamedOrderBy

func (*UserInfoNamedOrderBy) Name

func (*UserInfoNamedOrderBy) ToSQL

func (x *UserInfoNamedOrderBy) ToSQL() string

func (*UserInfoNamedOrderBy) Uid

type UserInfoNamedSelect

type UserInfoNamedSelect struct {
	// contains filtered or unexported fields
}

func (*UserInfoNamedSelect) CreateStamp

func (x *UserInfoNamedSelect) CreateStamp() *UserInfoNamedSelect

func (*UserInfoNamedSelect) Email

func (*UserInfoNamedSelect) ModifyStamp

func (x *UserInfoNamedSelect) ModifyStamp() *UserInfoNamedSelect

func (*UserInfoNamedSelect) Name

func (*UserInfoNamedSelect) ToSQL

func (x *UserInfoNamedSelect) ToSQL() string

func (*UserInfoNamedSelect) Uid

func (*UserInfoNamedSelect) Where

type UserInfoNamedUpdate

type UserInfoNamedUpdate struct {
	// contains filtered or unexported fields
}

func (*UserInfoNamedUpdate) CreateStamp

func (x *UserInfoNamedUpdate) CreateStamp() *UserInfoNamedUpdate

func (*UserInfoNamedUpdate) Email

func (*UserInfoNamedUpdate) ModifyStamp

func (x *UserInfoNamedUpdate) ModifyStamp() *UserInfoNamedUpdate

func (*UserInfoNamedUpdate) Name

func (*UserInfoNamedUpdate) ToSQL

func (x *UserInfoNamedUpdate) ToSQL() string

func (*UserInfoNamedUpdate) Uid

func (*UserInfoNamedUpdate) Where

type UserInfoNamedWhere

type UserInfoNamedWhere struct {
	// contains filtered or unexported fields
}

func (*UserInfoNamedWhere) And

func (*UserInfoNamedWhere) CreateStamp

func (x *UserInfoNamedWhere) CreateStamp() *UserInfoNamedWhere

func (*UserInfoNamedWhere) Custom

func (x *UserInfoNamedWhere) Custom(f func(buf *util.Builder)) *UserInfoNamedWhere

func (*UserInfoNamedWhere) Email

func (*UserInfoNamedWhere) Group

func (*UserInfoNamedWhere) Limit

func (x *UserInfoNamedWhere) Limit(limit, offset int) *UserInfoNamedWhere

func (*UserInfoNamedWhere) ModifyStamp

func (x *UserInfoNamedWhere) ModifyStamp() *UserInfoNamedWhere

func (*UserInfoNamedWhere) Name

func (*UserInfoNamedWhere) OnDuplicateKeyUpdate

func (x *UserInfoNamedWhere) OnDuplicateKeyUpdate() *UserInfoNamedUpdate

func (*UserInfoNamedWhere) OnDuplicateKeyUpdateValues

func (x *UserInfoNamedWhere) OnDuplicateKeyUpdateValues() *UserInfoNamedUpdate

func (*UserInfoNamedWhere) Or

func (*UserInfoNamedWhere) OrderBy

func (*UserInfoNamedWhere) ToSQL

func (x *UserInfoNamedWhere) ToSQL() string

func (*UserInfoNamedWhere) Uid

type UserInfoOperation

type UserInfoOperation interface {
	Insert(ctx context.Context, data *dbop.UserInfo) (res sql.Result, err error)
	InsertMany(ctx context.Context, datas []*dbop.UserInfo) (res sql.Result, err error)

	Update(ctx context.Context, data *dbop.UserInfo) (res sql.Result, err error)
	Upsert(ctx context.Context, data *dbop.UserInfo) (res sql.Result, err error)
	UpsertMany(ctx context.Context, datas []*dbop.UserInfo) (res sql.Result, err error)

	Find(ctx context.Context, uid int64) (data *dbop.UserInfo, err error)
	FindEx(ctx context.Context, uid int64) (data *dbop.UserInfoEx, err error)
	Delete(ctx context.Context, uid int64) (res sql.Result, err error)

	FindByKey(ctx context.Context, id UserInfoKey) (data *dbop.UserInfo, err error)
	FindExByKey(ctx context.Context, id UserInfoKey) (data *dbop.UserInfoEx, err error)
	DeleteByKey(ctx context.Context, id UserInfoKey) (res sql.Result, err error)

	FindByKeyArray(ctx context.Context, ids []UserInfoKey) (datas []*dbop.UserInfo, err error)
	FindExByKeyArray(ctx context.Context, ids []UserInfoKey) (datas []*dbop.UserInfoEx, err error)
	DeleteByKeyArray(ctx context.Context, ids []UserInfoKey) (res sql.Result, err error)

	FindByIndexEmail(ctx context.Context, email string, limit, offset int) (datas []*dbop.UserInfo, err error)
	FindExByIndexEmail(ctx context.Context, email string, limit, offset int) (datas []*dbop.UserInfoEx, err error)
	CountByIndexEmail(ctx context.Context, email string) (count int, err error)
	DeleteByIndexEmail(ctx context.Context, email string) (res sql.Result, err error)

	FindByIndexName(ctx context.Context, name string, limit, offset int) (datas []*dbop.UserInfo, err error)
	FindExByIndexName(ctx context.Context, name string, limit, offset int) (datas []*dbop.UserInfoEx, err error)
	CountByIndexName(ctx context.Context, name string) (count int, err error)
	DeleteByIndexName(ctx context.Context, name string) (res sql.Result, err error)

	Where(bufSize int) *UserInfoWhereStmt
	Select(ctx context.Context, where *UserInfoWhereStmt) (datas []*dbop.UserInfo, err error)
	SelectEx(ctx context.Context, where *UserInfoWhereStmt) (datas []*dbop.UserInfoEx, err error)
	Count(ctx context.Context, where *UserInfoWhereStmt) (count int, err error)

	DeleteMany(ctx context.Context, where *UserInfoWhereStmt) (res sql.Result, err error)

	RangeAll(ctx context.Context, where *UserInfoWhereStmt, f func(ctx context.Context, row *dbop.UserInfo) bool) error
	RangeAllEx(ctx context.Context, where *UserInfoWhereStmt, f func(ctx context.Context, row *dbop.UserInfoEx) bool) error
	AllData(ctx context.Context, where *UserInfoWhereStmt) (datas []*dbop.UserInfo, err error)
	AllDataEx(ctx context.Context, where *UserInfoWhereStmt) (datas []*dbop.UserInfoEx, err error)

	// use for custom named sql
	DB() *sqlx.DB
}

type UserInfoSQLWriter

type UserInfoSQLWriter struct {
	// contains filtered or unexported fields
}

func UserInfoNamedSQL

func UserInfoNamedSQL(bufSize int) *UserInfoSQLWriter

func (*UserInfoSQLWriter) Delete

func (*UserInfoSQLWriter) Insert

func (*UserInfoSQLWriter) Select

func (*UserInfoSQLWriter) Update

type UserInfoWhereStmt

type UserInfoWhereStmt struct {
	// contains filtered or unexported fields
}

func (*UserInfoWhereStmt) And

func (*UserInfoWhereStmt) Custom

func (w *UserInfoWhereStmt) Custom(f func(buf *util.Builder)) *UserInfoWhereStmt

func (*UserInfoWhereStmt) Email

func (*UserInfoWhereStmt) Group

func (w *UserInfoWhereStmt) Group(gf func(w *UserInfoWhereStmt)) *UserInfoWhereStmt

func (*UserInfoWhereStmt) Limit

func (w *UserInfoWhereStmt) Limit(limit, offset int) *UserInfoWhereStmt

func (*UserInfoWhereStmt) Name

func (*UserInfoWhereStmt) Or

func (*UserInfoWhereStmt) String

func (w *UserInfoWhereStmt) String() string

func (*UserInfoWhereStmt) Uid

type UserTest2Key

type UserTest2Key = int64

func UserTest2ExToPrimaryKeysEx

func UserTest2ExToPrimaryKeysEx(rows []*dbop.UserTest2Ex) (ids []UserTest2Key)

func UserTest2ToPrimaryKeys

func UserTest2ToPrimaryKeys(rows []*dbop.UserTest2) (ids []UserTest2Key)

type UserTest2NamedInsert

type UserTest2NamedInsert struct {
	// contains filtered or unexported fields
}

func (*UserTest2NamedInsert) CreateStamp

func (x *UserTest2NamedInsert) CreateStamp() *UserTest2NamedInsert

func (*UserTest2NamedInsert) CustomVal

func (*UserTest2NamedInsert) ModifyStamp

func (x *UserTest2NamedInsert) ModifyStamp() *UserTest2NamedInsert

func (*UserTest2NamedInsert) State

func (*UserTest2NamedInsert) ToSQL

func (x *UserTest2NamedInsert) ToSQL() string

func (*UserTest2NamedInsert) Uid

func (*UserTest2NamedInsert) ValuesToSQL

func (x *UserTest2NamedInsert) ValuesToSQL() string

func (*UserTest2NamedInsert) Xxx

type UserTest2NamedOrderAsc

type UserTest2NamedOrderAsc struct {
	// contains filtered or unexported fields
}

func (*UserTest2NamedOrderAsc) Asc

func (*UserTest2NamedOrderAsc) CreateStamp

func (*UserTest2NamedOrderAsc) Desc

func (*UserTest2NamedOrderAsc) ModifyStamp

func (*UserTest2NamedOrderAsc) ToSQL

func (x *UserTest2NamedOrderAsc) ToSQL() string

type UserTest2NamedOrderBy

type UserTest2NamedOrderBy struct {
	// contains filtered or unexported fields
}

func (*UserTest2NamedOrderBy) CustomVal

func (*UserTest2NamedOrderBy) Limit

func (x *UserTest2NamedOrderBy) Limit(limit, offset int) *UserTest2NamedOrderBy

func (*UserTest2NamedOrderBy) State

func (*UserTest2NamedOrderBy) ToSQL

func (x *UserTest2NamedOrderBy) ToSQL() string

func (*UserTest2NamedOrderBy) Uid

func (*UserTest2NamedOrderBy) Xxx

type UserTest2NamedSelect

type UserTest2NamedSelect struct {
	// contains filtered or unexported fields
}

func (*UserTest2NamedSelect) CreateStamp

func (x *UserTest2NamedSelect) CreateStamp() *UserTest2NamedSelect

func (*UserTest2NamedSelect) CustomVal

func (*UserTest2NamedSelect) ModifyStamp

func (x *UserTest2NamedSelect) ModifyStamp() *UserTest2NamedSelect

func (*UserTest2NamedSelect) State

func (*UserTest2NamedSelect) ToSQL

func (x *UserTest2NamedSelect) ToSQL() string

func (*UserTest2NamedSelect) Uid

func (*UserTest2NamedSelect) Where

func (*UserTest2NamedSelect) Xxx

type UserTest2NamedUpdate

type UserTest2NamedUpdate struct {
	// contains filtered or unexported fields
}

func (*UserTest2NamedUpdate) CreateStamp

func (x *UserTest2NamedUpdate) CreateStamp() *UserTest2NamedUpdate

func (*UserTest2NamedUpdate) CustomVal

func (*UserTest2NamedUpdate) ModifyStamp

func (x *UserTest2NamedUpdate) ModifyStamp() *UserTest2NamedUpdate

func (*UserTest2NamedUpdate) State

func (*UserTest2NamedUpdate) ToSQL

func (x *UserTest2NamedUpdate) ToSQL() string

func (*UserTest2NamedUpdate) Uid

func (*UserTest2NamedUpdate) Where

func (*UserTest2NamedUpdate) Xxx

type UserTest2NamedWhere

type UserTest2NamedWhere struct {
	// contains filtered or unexported fields
}

func (*UserTest2NamedWhere) And

func (*UserTest2NamedWhere) CreateStamp

func (x *UserTest2NamedWhere) CreateStamp() *UserTest2NamedWhere

func (*UserTest2NamedWhere) Custom

func (x *UserTest2NamedWhere) Custom(f func(buf *util.Builder)) *UserTest2NamedWhere

func (*UserTest2NamedWhere) CustomVal

func (x *UserTest2NamedWhere) CustomVal() *UserTest2NamedWhere

func (*UserTest2NamedWhere) Group

func (*UserTest2NamedWhere) Limit

func (x *UserTest2NamedWhere) Limit(limit, offset int) *UserTest2NamedWhere

func (*UserTest2NamedWhere) ModifyStamp

func (x *UserTest2NamedWhere) ModifyStamp() *UserTest2NamedWhere

func (*UserTest2NamedWhere) OnDuplicateKeyUpdate

func (x *UserTest2NamedWhere) OnDuplicateKeyUpdate() *UserTest2NamedUpdate

func (*UserTest2NamedWhere) OnDuplicateKeyUpdateValues

func (x *UserTest2NamedWhere) OnDuplicateKeyUpdateValues() *UserTest2NamedUpdate

func (*UserTest2NamedWhere) Or

func (*UserTest2NamedWhere) OrderBy

func (*UserTest2NamedWhere) State

func (*UserTest2NamedWhere) ToSQL

func (x *UserTest2NamedWhere) ToSQL() string

func (*UserTest2NamedWhere) Uid

func (*UserTest2NamedWhere) Xxx

type UserTest2Operation

type UserTest2Operation interface {
	Insert(ctx context.Context, data *dbop.UserTest2) (res sql.Result, err error)
	InsertMany(ctx context.Context, datas []*dbop.UserTest2) (res sql.Result, err error)

	Update(ctx context.Context, data *dbop.UserTest2) (res sql.Result, err error)
	Upsert(ctx context.Context, data *dbop.UserTest2) (res sql.Result, err error)
	UpsertMany(ctx context.Context, datas []*dbop.UserTest2) (res sql.Result, err error)

	Find(ctx context.Context, uid int64) (data *dbop.UserTest2, err error)
	FindEx(ctx context.Context, uid int64) (data *dbop.UserTest2Ex, err error)
	Delete(ctx context.Context, uid int64) (res sql.Result, err error)

	FindByKey(ctx context.Context, id UserTest2Key) (data *dbop.UserTest2, err error)
	FindExByKey(ctx context.Context, id UserTest2Key) (data *dbop.UserTest2Ex, err error)
	DeleteByKey(ctx context.Context, id UserTest2Key) (res sql.Result, err error)

	FindByKeyArray(ctx context.Context, ids []UserTest2Key) (datas []*dbop.UserTest2, err error)
	FindExByKeyArray(ctx context.Context, ids []UserTest2Key) (datas []*dbop.UserTest2Ex, err error)
	DeleteByKeyArray(ctx context.Context, ids []UserTest2Key) (res sql.Result, err error)

	FindByIndexUniqueTest(ctx context.Context, uid int64, xxx int64, limit, offset int) (datas []*dbop.UserTest2, err error)
	FindExByIndexUniqueTest(ctx context.Context, uid int64, xxx int64, limit, offset int) (datas []*dbop.UserTest2Ex, err error)
	CountByIndexUniqueTest(ctx context.Context, uid int64, xxx int64) (count int, err error)
	DeleteByIndexUniqueTest(ctx context.Context, uid int64, xxx int64) (res sql.Result, err error)

	FindByIndexXxx(ctx context.Context, uid int64, limit, offset int) (datas []*dbop.UserTest2, err error)
	FindExByIndexXxx(ctx context.Context, uid int64, limit, offset int) (datas []*dbop.UserTest2Ex, err error)
	CountByIndexXxx(ctx context.Context, uid int64) (count int, err error)
	DeleteByIndexXxx(ctx context.Context, uid int64) (res sql.Result, err error)

	Where(bufSize int) *UserTest2WhereStmt
	Select(ctx context.Context, where *UserTest2WhereStmt) (datas []*dbop.UserTest2, err error)
	SelectEx(ctx context.Context, where *UserTest2WhereStmt) (datas []*dbop.UserTest2Ex, err error)
	Count(ctx context.Context, where *UserTest2WhereStmt) (count int, err error)

	DeleteMany(ctx context.Context, where *UserTest2WhereStmt) (res sql.Result, err error)

	RangeAll(ctx context.Context, where *UserTest2WhereStmt, f func(ctx context.Context, row *dbop.UserTest2) bool) error
	RangeAllEx(ctx context.Context, where *UserTest2WhereStmt, f func(ctx context.Context, row *dbop.UserTest2Ex) bool) error
	AllData(ctx context.Context, where *UserTest2WhereStmt) (datas []*dbop.UserTest2, err error)
	AllDataEx(ctx context.Context, where *UserTest2WhereStmt) (datas []*dbop.UserTest2Ex, err error)

	// use for custom named sql
	DB() *sqlx.DB
}

type UserTest2SQLWriter

type UserTest2SQLWriter struct {
	// contains filtered or unexported fields
}

func UserTest2NamedSQL

func UserTest2NamedSQL(bufSize int) *UserTest2SQLWriter

func (*UserTest2SQLWriter) Delete

func (*UserTest2SQLWriter) Insert

func (*UserTest2SQLWriter) Select

func (*UserTest2SQLWriter) Update

type UserTest2WhereStmt

type UserTest2WhereStmt struct {
	// contains filtered or unexported fields
}

func (*UserTest2WhereStmt) And

func (*UserTest2WhereStmt) Custom

func (w *UserTest2WhereStmt) Custom(f func(buf *util.Builder)) *UserTest2WhereStmt

func (*UserTest2WhereStmt) CustomVal

func (*UserTest2WhereStmt) Group

func (*UserTest2WhereStmt) Limit

func (w *UserTest2WhereStmt) Limit(limit, offset int) *UserTest2WhereStmt

func (*UserTest2WhereStmt) Or

func (*UserTest2WhereStmt) State

func (*UserTest2WhereStmt) String

func (w *UserTest2WhereStmt) String() string

func (*UserTest2WhereStmt) Uid

func (*UserTest2WhereStmt) Xxx

type UserTestNamedInsert

type UserTestNamedInsert struct {
	// contains filtered or unexported fields
}

func (*UserTestNamedInsert) CreateStamp

func (x *UserTestNamedInsert) CreateStamp() *UserTestNamedInsert

func (*UserTestNamedInsert) ModifyStamp

func (x *UserTestNamedInsert) ModifyStamp() *UserTestNamedInsert

func (*UserTestNamedInsert) State

func (*UserTestNamedInsert) ToSQL

func (x *UserTestNamedInsert) ToSQL() string

func (*UserTestNamedInsert) Uid

func (*UserTestNamedInsert) ValuesToSQL

func (x *UserTestNamedInsert) ValuesToSQL() string

func (*UserTestNamedInsert) Xxx

type UserTestNamedOrderAsc

type UserTestNamedOrderAsc struct {
	// contains filtered or unexported fields
}

func (*UserTestNamedOrderAsc) Asc

func (*UserTestNamedOrderAsc) CreateStamp

func (x *UserTestNamedOrderAsc) CreateStamp() *UserTestNamedOrderAsc

func (*UserTestNamedOrderAsc) Desc

func (*UserTestNamedOrderAsc) ModifyStamp

func (x *UserTestNamedOrderAsc) ModifyStamp() *UserTestNamedOrderAsc

func (*UserTestNamedOrderAsc) ToSQL

func (x *UserTestNamedOrderAsc) ToSQL() string

type UserTestNamedOrderBy

type UserTestNamedOrderBy struct {
	// contains filtered or unexported fields
}

func (*UserTestNamedOrderBy) Limit

func (x *UserTestNamedOrderBy) Limit(limit, offset int) *UserTestNamedOrderBy

func (*UserTestNamedOrderBy) State

func (*UserTestNamedOrderBy) ToSQL

func (x *UserTestNamedOrderBy) ToSQL() string

func (*UserTestNamedOrderBy) Uid

func (*UserTestNamedOrderBy) Xxx

type UserTestNamedSelect

type UserTestNamedSelect struct {
	// contains filtered or unexported fields
}

func (*UserTestNamedSelect) CreateStamp

func (x *UserTestNamedSelect) CreateStamp() *UserTestNamedSelect

func (*UserTestNamedSelect) ModifyStamp

func (x *UserTestNamedSelect) ModifyStamp() *UserTestNamedSelect

func (*UserTestNamedSelect) State

func (*UserTestNamedSelect) ToSQL

func (x *UserTestNamedSelect) ToSQL() string

func (*UserTestNamedSelect) Uid

func (*UserTestNamedSelect) Where

func (*UserTestNamedSelect) Xxx

type UserTestNamedUpdate

type UserTestNamedUpdate struct {
	// contains filtered or unexported fields
}

func (*UserTestNamedUpdate) CreateStamp

func (x *UserTestNamedUpdate) CreateStamp() *UserTestNamedUpdate

func (*UserTestNamedUpdate) ModifyStamp

func (x *UserTestNamedUpdate) ModifyStamp() *UserTestNamedUpdate

func (*UserTestNamedUpdate) State

func (*UserTestNamedUpdate) ToSQL

func (x *UserTestNamedUpdate) ToSQL() string

func (*UserTestNamedUpdate) Uid

func (*UserTestNamedUpdate) Where

func (*UserTestNamedUpdate) Xxx

type UserTestNamedWhere

type UserTestNamedWhere struct {
	// contains filtered or unexported fields
}

func (*UserTestNamedWhere) And

func (*UserTestNamedWhere) CreateStamp

func (x *UserTestNamedWhere) CreateStamp() *UserTestNamedWhere

func (*UserTestNamedWhere) Custom

func (x *UserTestNamedWhere) Custom(f func(buf *util.Builder)) *UserTestNamedWhere

func (*UserTestNamedWhere) Group

func (*UserTestNamedWhere) Limit

func (x *UserTestNamedWhere) Limit(limit, offset int) *UserTestNamedWhere

func (*UserTestNamedWhere) ModifyStamp

func (x *UserTestNamedWhere) ModifyStamp() *UserTestNamedWhere

func (*UserTestNamedWhere) OnDuplicateKeyUpdate

func (x *UserTestNamedWhere) OnDuplicateKeyUpdate() *UserTestNamedUpdate

func (*UserTestNamedWhere) OnDuplicateKeyUpdateValues

func (x *UserTestNamedWhere) OnDuplicateKeyUpdateValues() *UserTestNamedUpdate

func (*UserTestNamedWhere) Or

func (*UserTestNamedWhere) OrderBy

func (*UserTestNamedWhere) State

func (*UserTestNamedWhere) ToSQL

func (x *UserTestNamedWhere) ToSQL() string

func (*UserTestNamedWhere) Uid

func (*UserTestNamedWhere) Xxx

type UserTestOperation

type UserTestOperation interface {
	Insert(ctx context.Context, data *dbop.UserTest) (res sql.Result, err error)
	InsertMany(ctx context.Context, datas []*dbop.UserTest) (res sql.Result, err error)

	FindByIndexUid(ctx context.Context, uid int64, limit, offset int) (datas []*dbop.UserTest, err error)
	FindExByIndexUid(ctx context.Context, uid int64, limit, offset int) (datas []*dbop.UserTestEx, err error)
	CountByIndexUid(ctx context.Context, uid int64) (count int, err error)
	DeleteByIndexUid(ctx context.Context, uid int64) (res sql.Result, err error)

	FindByIndexXxx(ctx context.Context, uid int64, xxx int64, limit, offset int) (datas []*dbop.UserTest, err error)
	FindExByIndexXxx(ctx context.Context, uid int64, xxx int64, limit, offset int) (datas []*dbop.UserTestEx, err error)
	CountByIndexXxx(ctx context.Context, uid int64, xxx int64) (count int, err error)
	DeleteByIndexXxx(ctx context.Context, uid int64, xxx int64) (res sql.Result, err error)

	Where(bufSize int) *UserTestWhereStmt
	Select(ctx context.Context, where *UserTestWhereStmt) (datas []*dbop.UserTest, err error)
	SelectEx(ctx context.Context, where *UserTestWhereStmt) (datas []*dbop.UserTestEx, err error)
	Count(ctx context.Context, where *UserTestWhereStmt) (count int, err error)

	DeleteMany(ctx context.Context, where *UserTestWhereStmt) (res sql.Result, err error)

	RangeAll(ctx context.Context, where *UserTestWhereStmt, f func(ctx context.Context, row *dbop.UserTest) bool) error
	RangeAllEx(ctx context.Context, where *UserTestWhereStmt, f func(ctx context.Context, row *dbop.UserTestEx) bool) error
	AllData(ctx context.Context, where *UserTestWhereStmt) (datas []*dbop.UserTest, err error)
	AllDataEx(ctx context.Context, where *UserTestWhereStmt) (datas []*dbop.UserTestEx, err error)

	// use for custom named sql
	DB() *sqlx.DB
}

type UserTestSQLWriter

type UserTestSQLWriter struct {
	// contains filtered or unexported fields
}

func UserTestNamedSQL

func UserTestNamedSQL(bufSize int) *UserTestSQLWriter

func (*UserTestSQLWriter) Delete

func (*UserTestSQLWriter) Insert

func (*UserTestSQLWriter) Select

func (*UserTestSQLWriter) Update

type UserTestWhereStmt

type UserTestWhereStmt struct {
	// contains filtered or unexported fields
}

func (*UserTestWhereStmt) And

func (*UserTestWhereStmt) Custom

func (w *UserTestWhereStmt) Custom(f func(buf *util.Builder)) *UserTestWhereStmt

func (*UserTestWhereStmt) Group

func (w *UserTestWhereStmt) Group(gf func(w *UserTestWhereStmt)) *UserTestWhereStmt

func (*UserTestWhereStmt) Limit

func (w *UserTestWhereStmt) Limit(limit, offset int) *UserTestWhereStmt

func (*UserTestWhereStmt) Or

func (*UserTestWhereStmt) State

func (*UserTestWhereStmt) String

func (w *UserTestWhereStmt) String() string

func (*UserTestWhereStmt) Uid

func (*UserTestWhereStmt) Xxx

type UserXxLogKey

type UserXxLogKey = int64

func UserXxLogToPrimaryKeys

func UserXxLogToPrimaryKeys(rows []*dbop.UserXxLog) (ids []UserXxLogKey)

type UserXxLogNamedInsert

type UserXxLogNamedInsert struct {
	// contains filtered or unexported fields
}

func (*UserXxLogNamedInsert) CreateStamp

func (x *UserXxLogNamedInsert) CreateStamp() *UserXxLogNamedInsert

func (*UserXxLogNamedInsert) Id

func (*UserXxLogNamedInsert) ToSQL

func (x *UserXxLogNamedInsert) ToSQL() string

func (*UserXxLogNamedInsert) Uid

func (*UserXxLogNamedInsert) ValuesToSQL

func (x *UserXxLogNamedInsert) ValuesToSQL() string

func (*UserXxLogNamedInsert) X2

func (*UserXxLogNamedInsert) Xx

type UserXxLogNamedOrderAsc

type UserXxLogNamedOrderAsc struct {
	// contains filtered or unexported fields
}

func (*UserXxLogNamedOrderAsc) Asc

func (*UserXxLogNamedOrderAsc) Desc

func (*UserXxLogNamedOrderAsc) ToSQL

func (x *UserXxLogNamedOrderAsc) ToSQL() string

type UserXxLogNamedOrderBy

type UserXxLogNamedOrderBy struct {
	// contains filtered or unexported fields
}

func (*UserXxLogNamedOrderBy) CreateStamp

func (*UserXxLogNamedOrderBy) Id

func (*UserXxLogNamedOrderBy) Limit

func (x *UserXxLogNamedOrderBy) Limit(limit, offset int) *UserXxLogNamedOrderBy

func (*UserXxLogNamedOrderBy) ToSQL

func (x *UserXxLogNamedOrderBy) ToSQL() string

func (*UserXxLogNamedOrderBy) Uid

func (*UserXxLogNamedOrderBy) X2

func (*UserXxLogNamedOrderBy) Xx

type UserXxLogNamedSelect

type UserXxLogNamedSelect struct {
	// contains filtered or unexported fields
}

func (*UserXxLogNamedSelect) CreateStamp

func (x *UserXxLogNamedSelect) CreateStamp() *UserXxLogNamedSelect

func (*UserXxLogNamedSelect) Id

func (*UserXxLogNamedSelect) ToSQL

func (x *UserXxLogNamedSelect) ToSQL() string

func (*UserXxLogNamedSelect) Uid

func (*UserXxLogNamedSelect) Where

func (*UserXxLogNamedSelect) X2

func (*UserXxLogNamedSelect) Xx

type UserXxLogNamedUpdate

type UserXxLogNamedUpdate struct {
	// contains filtered or unexported fields
}

func (*UserXxLogNamedUpdate) CreateStamp

func (x *UserXxLogNamedUpdate) CreateStamp() *UserXxLogNamedUpdate

func (*UserXxLogNamedUpdate) Id

func (*UserXxLogNamedUpdate) ToSQL

func (x *UserXxLogNamedUpdate) ToSQL() string

func (*UserXxLogNamedUpdate) Uid

func (*UserXxLogNamedUpdate) Where

func (*UserXxLogNamedUpdate) X2

func (*UserXxLogNamedUpdate) Xx

type UserXxLogNamedWhere

type UserXxLogNamedWhere struct {
	// contains filtered or unexported fields
}

func (*UserXxLogNamedWhere) And

func (*UserXxLogNamedWhere) CreateStamp

func (x *UserXxLogNamedWhere) CreateStamp() *UserXxLogNamedWhere

func (*UserXxLogNamedWhere) Custom

func (x *UserXxLogNamedWhere) Custom(f func(buf *util.Builder)) *UserXxLogNamedWhere

func (*UserXxLogNamedWhere) Group

func (*UserXxLogNamedWhere) Id

func (*UserXxLogNamedWhere) Limit

func (x *UserXxLogNamedWhere) Limit(limit, offset int) *UserXxLogNamedWhere

func (*UserXxLogNamedWhere) OnDuplicateKeyUpdate

func (x *UserXxLogNamedWhere) OnDuplicateKeyUpdate() *UserXxLogNamedUpdate

func (*UserXxLogNamedWhere) OnDuplicateKeyUpdateValues

func (x *UserXxLogNamedWhere) OnDuplicateKeyUpdateValues() *UserXxLogNamedUpdate

func (*UserXxLogNamedWhere) Or

func (*UserXxLogNamedWhere) OrderBy

func (*UserXxLogNamedWhere) ToSQL

func (x *UserXxLogNamedWhere) ToSQL() string

func (*UserXxLogNamedWhere) Uid

func (*UserXxLogNamedWhere) X2

func (*UserXxLogNamedWhere) Xx

type UserXxLogOperation

type UserXxLogOperation interface {
	Insert(ctx context.Context, data *dbop.UserXxLog) (res sql.Result, err error)
	InsertMany(ctx context.Context, datas []*dbop.UserXxLog) (res sql.Result, err error)

	Find(ctx context.Context, id int64) (data *dbop.UserXxLog, err error)
	Delete(ctx context.Context, id int64) (res sql.Result, err error)

	FindByKey(ctx context.Context, id UserXxLogKey) (data *dbop.UserXxLog, err error)
	DeleteByKey(ctx context.Context, id UserXxLogKey) (res sql.Result, err error)

	FindByKeyArray(ctx context.Context, ids []UserXxLogKey) (datas []*dbop.UserXxLog, err error)
	DeleteByKeyArray(ctx context.Context, ids []UserXxLogKey) (res sql.Result, err error)

	Where(bufSize int) *UserXxLogWhereStmt
	Select(ctx context.Context, where *UserXxLogWhereStmt) (datas []*dbop.UserXxLog, err error)
	Count(ctx context.Context, where *UserXxLogWhereStmt) (count int, err error)

	DeleteMany(ctx context.Context, where *UserXxLogWhereStmt) (res sql.Result, err error)

	RangeAll(ctx context.Context, where *UserXxLogWhereStmt, f func(ctx context.Context, row *dbop.UserXxLog) bool) error
	AllData(ctx context.Context, where *UserXxLogWhereStmt) (datas []*dbop.UserXxLog, err error)

	// use for custom named sql
	DB() *sqlx.DB
}

type UserXxLogSQLWriter

type UserXxLogSQLWriter struct {
	// contains filtered or unexported fields
}

func UserXxLogNamedSQL

func UserXxLogNamedSQL(bufSize int) *UserXxLogSQLWriter

func (*UserXxLogSQLWriter) Delete

func (*UserXxLogSQLWriter) Insert

func (*UserXxLogSQLWriter) Select

func (*UserXxLogSQLWriter) Update

type UserXxLogWhereStmt

type UserXxLogWhereStmt struct {
	// contains filtered or unexported fields
}

func (*UserXxLogWhereStmt) And

func (*UserXxLogWhereStmt) CreateStamp

func (*UserXxLogWhereStmt) Custom

func (w *UserXxLogWhereStmt) Custom(f func(buf *util.Builder)) *UserXxLogWhereStmt

func (*UserXxLogWhereStmt) Group

func (*UserXxLogWhereStmt) Id

func (*UserXxLogWhereStmt) Limit

func (w *UserXxLogWhereStmt) Limit(limit, offset int) *UserXxLogWhereStmt

func (*UserXxLogWhereStmt) Or

func (*UserXxLogWhereStmt) String

func (w *UserXxLogWhereStmt) String() string

func (*UserXxLogWhereStmt) Uid

func (*UserXxLogWhereStmt) X2

func (*UserXxLogWhereStmt) Xx

Jump to

Keyboard shortcuts

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