mysql

package
v2.8.3 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

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 (p *Blog) GetClassName() string

func (*Blog) GetNameSpace

func (p *Blog) GetNameSpace() string

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

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 (p *User) GetClassName() string

func (*User) GetNameSpace

func (p *User) GetNameSpace() string

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

type UserJoinBlogResp struct {
	BlogId int32 `sql:"blog_id"`
	UserId int32 `sql:"user_id"`
}

Jump to

Keyboard shortcuts

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