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 ExistsByFilterExpressions(db *gorm.DB, tableName string, filters gormi.FilterExpressions) (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 ExistsByQuerySQL(db *gorm.DB, qsql string, value ...any) (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 ¶
func ExistsByQuerySQL ¶
根据查询语句查询数据是否存在
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.