Discover Packages
github.com/fabric8-services/fabric8-auth
application
repository
base
package
Version:
v0.0.0-...-2d73068
Opens a new window with list of versions in this module.
Published: May 13, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 4
Opens a new window with list of known importers.
Jump to ...
Documentation
Overview
Index
Constants
Variables
Functions
CheckExists(ctx, db, tableName, id)
CheckExistsWithCustomIDColumn(ctx, db, tableName, idColumnName, id)
CheckHardDeletableExists(ctx, db, tableName, id)
Types
Source Files
Documentation
Documentation
¶
Package base contains interfaces used by our repositories.
func CheckExists(ctx context.Context, db *gorm.DB, tableName string, 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 string, id string) error
type Exister
CheckExists does the same as Exists for a soft deletable item but only returns the error value; thereby
being a handy convenience function.
CheckExistsWithCustomIDColumn does the same as CheckExists but allows to use custom ID column name
instead of the default "id"
CheckExists does the same as Exists for a hard deletable item but only returns the error value; thereby
being a handy convenience function.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.