repos

package
v1.12.5 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IBasicRepository

type IBasicRepository interface {
	IRepository
	ITxRepository
}

IBasicRepository 基础查询与事务

type IRepository

type IRepository interface {
	Exist(*finder.Finder) bool
	GetOne(*finder.Finder) error
	Find(*finder.Finder) error
	Create(*creator.Creator) error
	Update(*updater.Updater) error
	Delete(*deleter.Deleter) error
	Exec(context.Context, string, ...interface{}) error
	Raw(context.Context, string, ...interface{}) error
	GetUniqueID(finder *finder.Finder, min, max, ignoreStart, ignoreEnd int64) int64
	Count(*finder.Finder) error
}

IRepository 基础查询

type ITxRepository

type ITxRepository interface {
	Transaction(func(context.Context) error) error
	GetDb(context.Context) interface{}
}

ITxRepository 事务

type TxKey

type TxKey struct{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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