Documentation ¶
Index ¶
- func CleanAllTables(db *gorm.DB) error
- func CreateBlackTeam(db *gorm.DB) (err error)
- func CreatePolicy(db *gorm.DB) (*policy.Policy, error)
- func DataPreload(db *gorm.DB)
- func DropDB(db *gorm.DB, c config.StaticConfig)
- func SetupCockroachDB(c storage.Config) *gorm.DB
- func SetupDB(c storage.Config) *gorm.DB
- func SetupSqliteDB(c storage.Config) (db *gorm.DB)
- func TruncateAllTables(db *gorm.DB)
- func TruncateTable(ctx context.Context, v interface{}, db *gorm.DB) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBlackTeam ¶
CreateBlackTeam Ensures that black team exists
func CreatePolicy ¶
CreatePolicy Ensure policy.Policy exists
func DataPreload ¶
func SetupSqliteDB ¶ added in v0.3.6
SetupSqliteDB creates a new database instance using
func TruncateAllTables ¶
TruncateAllTables truncates all tables (A little faster than dropping)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.