drivers

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 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 RepositoryDriver

type RepositoryDriver[Model any] interface {
	// Create
	Create(model ...*Model) error
	// Read
	Count() (count int64, err error)
	FindPage(param model.PageParam) (result []model.PageResult[*Model], err error)
	FindPagination(param model.PaginationParam) (result model.PaginationResult[*Model], err error)
	// Update
	// Delete
	Delete(...*Model) (err error)
	// Context support
	WithContext(ctx context.Context) RepositoryDriver[Model]
}

TODO: finsh definition

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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