Documentation ¶
Overview ¶
Package mysql is generated from e2e/mysql/sqls directory by github.com/ezbuy/ezorm/v2 , DO NOT EDIT!
Index ¶
Constants ¶
View Source
const ( BlogMysqlFieldBlogId = "blog_id" BlogMysqlFieldTitle = "title" BlogMysqlFieldHits = "hits" BlogMysqlFieldSlug = "slug" BlogMysqlFieldBody = "body" BlogMysqlFieldUser = "user" BlogMysqlFieldIsPublished = "is_published" BlogMysqlFieldGroupId = "group_id" BlogMysqlFieldCreate = "create" BlogMysqlFieldUpdate = "update" )
View Source
const ( UserMysqlFieldUserId = "user_id" UserMysqlFieldUserNumber = "user_number" UserMysqlFieldName = "name" )
Variables ¶
View Source
var BlogMgr *_BlogMgr
View Source
var UserMgr *_UserMgr
Functions ¶
func GetRawQuery ¶ added in v2.2.0
func GetRawQuery() *sqlMethods
func Get_BlogMgr ¶
func Get_BlogMgr() *_BlogMgr
Get_BlogMgr returns the orm manager in case of its name starts with lower letter
func Get_UserMgr ¶
func Get_UserMgr() *_UserMgr
Get_UserMgr returns the orm manager in case of its name starts with lower letter
Types ¶
type Blog ¶
type Blog struct { BlogId int32 `db:"blog_id"` Title string `db:"title"` Hits int32 `db:"hits"` Slug string `db:"slug"` Body string `db:"body"` User int32 `db:"user"` IsPublished bool `db:"is_published"` GroupId int64 `db:"group_id"` Create time.Time `db:"create"` Update time.Time `db:"update"` // contains filtered or unexported fields }
func (*Blog) GetClassName ¶
func (*Blog) GetNameSpace ¶
type GetUserInReq ¶
type GetUserInReq struct {
Name []string `sql:"name"`
}
func (*GetUserInReq) Condition ¶ added in v2.6.12
func (req *GetUserInReq) Condition() string
func (*GetUserInReq) Params ¶
func (req *GetUserInReq) Params() []any
func (*GetUserInReq) QueryIn ¶
func (req *GetUserInReq) QueryIn() []any
type GetUserInResp ¶
type GetUserInResp struct {
UserId int32 `sql:"user_id"`
}
type GetUserReq ¶
type GetUserReq struct {
Name string `sql:"name"`
}
func (*GetUserReq) Condition ¶ added in v2.6.12
func (req *GetUserReq) Condition() string
func (*GetUserReq) Params ¶
func (req *GetUserReq) Params() []any
type GetUserResp ¶
type GetUserResp struct {
Name string `sql:"name"`
}
type RawQueryOption ¶
type RawQueryOption struct {
// contains filtered or unexported fields
}
type RawQueryOptionHandler ¶
type RawQueryOptionHandler func(*RawQueryOption)
func WithDB ¶
func WithDB(db *sql_driver.DB) RawQueryOptionHandler
type User ¶
type User struct { UserId int32 `db:"user_id"` UserNumber int32 `db:"user_number"` Name string `db:"name"` // contains filtered or unexported fields }
func (*User) GetClassName ¶
func (*User) GetNameSpace ¶
type UserJoinBlogReq ¶
type UserJoinBlogReq struct { Name string `sql:"name"` Offset int32 `sql:"offset"` Limit int32 `sql:"limit"` }
func (*UserJoinBlogReq) Condition ¶ added in v2.6.12
func (req *UserJoinBlogReq) Condition() string
func (*UserJoinBlogReq) Params ¶
func (req *UserJoinBlogReq) Params() []any
type UserJoinBlogResp ¶
Click to show internal directories.
Click to hide internal directories.