Documentation
¶
Overview ¶
Package base contains interfaces used by our repositories.
Index ¶
- func CheckExists(ctx context.Context, db *gorm.DB, tableName, id string) error
- func CheckExistsWithCustomIDColumn(ctx context.Context, db *gorm.DB, tableName, idColumnName, id string) error
- func CheckHardDeletableExists(ctx context.Context, db *gorm.DB, tableName, idColumnName, id string) error
- type Exister
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckExists ¶
CheckExists does the same as Exists for a soft deletable item but only returns the error value; thereby being a handy convenience function.
Types ¶
Click to show internal directories.
Click to hide internal directories.