mysql

package
v0.0.0-...-e2c2aad Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client *ent.Client

Functions

func CreateUser

func CreateUser(client *ent.Client, name string, age int) (*ent.User, error)

func DeleteUser

func DeleteUser(client *ent.Client, id int) error

func GetUser

func GetUser(client *ent.Client, id int) (*ent.User, error)

func Init

func Init()

func SearchUsers

func SearchUsers(client *ent.Client, keyword string, page, pageSize int) ([]*ent.User, error)

func UpdateUser

func UpdateUser(client *ent.Client, id int, name string, age int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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