dao_interface

package
v0.2.119 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DaoConfig

type DaoConfig struct {
	Dao         IDao
	DB          gdb.DB
	Table       string
	Group       string
	Model       *gdb.Model
	CacheOption *gdb.CacheOption
	HookHandler *gdb.HookHandler
}

type IDao

type IDao interface {
	DB() gdb.DB
	Table() string
	Group() string
	Ctx(ctx context.Context, cacheOption ...*gdb.CacheOption) *gdb.Model
	Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
	DaoConfig(ctx context.Context, cacheOption ...*gdb.CacheOption) DaoConfig
}

type TIDao added in v0.2.109

type TIDao[T any] interface {
	IDao
	Columns() T
}

Jump to

Keyboard shortcuts

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