Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DbClient = database.NewRxDbClient( database.WithSchemaEnsuring(), database.WithSchemaAutoInjecting(), database.WithMigrationsEnsuring(), database.WithInitializingErrorHandler(func(err *database.ErrorEvent) { log.Fatal(stdcodes.InitializingDbError, err.Error()) }), ) ConfigRep ConfigRepository = &configRepPg{rxClient: DbClient} CommonConfigRep CommonConfigRepository = &commonConfigRepPg{rxClient: DbClient} SchemaRep SchemaRepository = &schemaRepPg{rxClient: DbClient} ModuleRep ModulesRepository = &modulesRepPg{rxClient: DbClient} )
Functions ¶
This section is empty.
Types ¶
type CommonConfigRepository ¶
type CommonConfigRepository interface { Snapshot() ([]entity.CommonConfig, error) Upsert(config entity.CommonConfig) (*entity.CommonConfig, error) Delete(identities []string) (int, error) }
type ConfigRepository ¶
type ModulesRepository ¶
type SchemaRepository ¶
type SchemaRepository interface { Snapshot() ([]entity.ConfigSchema, error) Upsert(schema entity.ConfigSchema) (*entity.ConfigSchema, error) Delete(identities []string) (int, error) }
Click to show internal directories.
Click to hide internal directories.