Documentation ¶
Index ¶
- Variables
- func CreateGeneric[T any](data *T) error
- func DeleteGeneric[T any](data *T) error
- func GenericEqual[T genericEqualConstraint](field string, value T) genericQuery
- func GenericGreaterThan[T genericComparableConstraint](field string, value T) genericQuery
- func GenericGreaterThanOrEqual[T genericComparableConstraint](field string, value T) genericQuery
- func GenericInArray(field string, value []interface{}) genericQuery
- func GenericLessThan[T genericComparableConstraint](field string, value T) genericQuery
- func GenericLessThanOrEqual[T genericComparableConstraint](field string, value T) genericQuery
- func GenericNotEqual[T genericEqualConstraint](field string, value T) genericQuery
- func GetGenericAll[T any](query ...genericQuery) ([]T, error)
- func GetGenericOne[T any](query ...genericQuery) (T, error)
- func InitKisaraDB(db_path string)
- func UpdateGeneric[T any](data *T) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = gorm.ErrRecordNotFound
)
Functions ¶
func CreateGeneric ¶
func DeleteGeneric ¶
func GenericEqual ¶
func GenericEqual[T genericEqualConstraint](field string, value T) genericQuery
func GenericGreaterThan ¶
func GenericGreaterThan[T genericComparableConstraint](field string, value T) genericQuery
func GenericGreaterThanOrEqual ¶
func GenericGreaterThanOrEqual[T genericComparableConstraint](field string, value T) genericQuery
func GenericInArray ¶
func GenericInArray(field string, value []interface{}) genericQuery
func GenericLessThan ¶
func GenericLessThan[T genericComparableConstraint](field string, value T) genericQuery
func GenericLessThanOrEqual ¶
func GenericLessThanOrEqual[T genericComparableConstraint](field string, value T) genericQuery
func GenericNotEqual ¶
func GenericNotEqual[T genericEqualConstraint](field string, value T) genericQuery
func GetGenericAll ¶
func GetGenericOne ¶
func InitKisaraDB ¶
func InitKisaraDB(db_path string)
func UpdateGeneric ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.