data

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InsertIntoUserAccount = createInsertApi[*model.UserAccount](
	config.AppConfig.Maria.Tables.Users,
)
View Source
var SelectUserAccountByWxId = createSelectByApi[string, *model.UserAccount](
	config.AppConfig.Maria.Tables.Users,
	"wxid",
	func() *model.UserAccount {
		return new(model.UserAccount)
	},
)

Functions

func Init

func Init() error

Types

type InsertApi

type InsertApi[T interfaces.SqlModel] func(value T) (int64, error)

type SelectByApi

type SelectByApi[V string | int, RES interfaces.SqlModel] func(limit int, value V) ([]RES, error)

Jump to

Keyboard shortcuts

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