Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteORMDatabase ¶
func DeleteORMDatabase(ormDatabase *ORMDatabase) error
DeleteORMDatabase deletes a ORM database object, as well as the underlying database if it exists
func ToTableName ¶
Types ¶
type ORMDBInstance ¶
type ORMDBInstance struct {
Config *config.ORMDBConfig
}
ORMDBInstance represents a ORMDB instance
func NewORMDBInstance ¶
func NewORMDBInstance(config *config.ORMDBConfig, metricsProvider metrics.Provider) (*ORMDBInstance, error)
NewORMDBInstance create a ORMDB instance through ORMDBConfig
type ORMDatabase ¶
type ORMDatabase struct { ORMDBInstance *ORMDBInstance DBName string DB *gorm.DB Type string RWMutex sync.RWMutex ModelTypes map[string]entitydefinition.DynamicStruct }
ORMDatabase represents a database within a ORMDB instance
func CreateORMDatabase ¶
func CreateORMDatabase(ormDBInstance *ORMDBInstance, dbName string) (*ORMDatabase, error)
CreateORMDatabase creates a ORM database object, as well as the underlying database if it does not exist
Click to show internal directories.
Click to hide internal directories.