Documentation ¶
Index ¶
- func Delete(db *gorm.DB, tableName string, id uint64) error
- func DeleteByAuth(db *gorm.DB, tableName string, id, userId uint64) error
- func DeleteSQL(db *gorm.DB, tableName, column string, value interface{}) error
- func Exists(db *gorm.DB, tableName, column string, value interface{}, withDeletedAt bool) (bool, error)
- func ExistsByAuthWithDeletedAt(db *gorm.DB, tableName string, id, userId uint64) (bool, error)
- func ExistsByColumn(db *gorm.DB, tableName, column string, value interface{}) (bool, error)
- func ExistsById(db *gorm.DB, tableName string, id uint64) (bool, error)
- func ExistsByIdWithDeletedAt(db *gorm.DB, tableName string, id uint64) (bool, error)
- func ExistsBySQL(db *gorm.DB, sql string, value ...any) (bool, error)
- func ExistsSQL(tableName, column string, withDeletedAt bool) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExistsByColumn ¶
func ExistsByIdWithDeletedAt ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.