Documentation ¶
Index ¶
- func Create[T any](model *T, databaseInstance *gorm.DB) (T, error)
- func CreateBatch[T any](models []T, databaseInstance *gorm.DB) ([]T, error)
- func DeleteHardById[T any](databaseInstance *gorm.DB, id string) (int64, error)
- func DeletePermanentById[T any](databaseInstance *gorm.DB, id string) (int64, error)
- func DeleteSoftById[T any](databaseInstance *gorm.DB, id string) (int64, error)
- func GetAll[T any](databaseInstance *gorm.DB) ([]T, error)
- func GetAllByFields[T any](databaseInstance *gorm.DB, queryMap map[string]interface{}, preloads ...string) ([]T, error)
- func GetOneById[T any](databaseInstance *gorm.DB, id string, preloads ...string) (T, error)
- func GetOneByModelPropertiesCheckIdPresence[T any](databaseInstance *gorm.DB, queryMap map[string]interface{}) (T, error)
- func GetOneSoftDeletedById[T any](databaseInstance *gorm.DB, id string, preloads ...string) (T, error)
- func PatchById[T any](databaseInstance *gorm.DB, id, columnName string, value interface{}) (T, error)
- func SetPagination(limit, page int, sort string)
- func UpdateById[T any](databaseInstance *gorm.DB, t T, id string) (T, error)
- type Pagination
- type PathParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteHardById ¶
func DeletePermanentById ¶
func DeleteSoftById ¶
func GetAllByFields ¶
func GetOneById ¶
func GetOneSoftDeletedById ¶
func SetPagination ¶
Types ¶
type Pagination ¶
type PathParams ¶
type PathParams struct { Key string `json:"key"` Value interface{} `json:"value"` }
Click to show internal directories.
Click to hide internal directories.