orm

package
v1.1.56 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create[T any](engine *xorm.Engine, entity *T) error

func CreateWithSession

func CreateWithSession[T any](session *xorm.Session, entity *T) error

func Delete

func Delete[T any](engine *xorm.Engine, entity *T) (int64, error)

func DeleteWithSession

func DeleteWithSession[T any](session *xorm.Session, entity *T) (int64, error)

func FindAll

func FindAll[T any](engine *xorm.Engine, entites *[]T) error

func FindById

func FindById[T any](engine *xorm.Engine, id int64, entity *T) error

func FindOne

func FindOne[T any](engine *xorm.Engine, entity *T, sql string, parameters ...any) error

func FindPagination

func FindPagination[T any](engine *xorm.Engine, entites *[]T, countSql string, countParameters []any, querySql string, queryParameters []any) (int64, error)

func FindWithSql

func FindWithSql[T any](engine *xorm.Engine, entites *[]T, sql string, parameters ...any) error

func Update

func Update[T any](engine *xorm.Engine, cols []string, entity *T) (int64, error)

func UpdateWithSession

func UpdateWithSession[T any](session *xorm.Session, cols []string, entity *T) (int64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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