Documentation ¶
Index ¶
- Variables
- func CheckFilepath(path string) error
- func GenerateSqliteDsn(datasourceConfig config.SqliteDataSourceConfig) string
- func GetSqliteInstance() (*gorm.DB, error)
- func InitSqliteDataSourceConfig(dsConfig config.SqliteDataSourceConfig) (config.SqliteDataSourceConfig, error)
- func LoadSqliteInstance() error
- func MigrateSqliteTables(forUpgrade bool) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var SqliteTables = []interface{}{ sqlite.AllAgent{}, sqlite.ObSysParameter{}, sqlite.OcsInfo{}, sqlite.ObGlobalConfig{}, sqlite.ObZoneConfig{}, sqlite.ObServerConfig{}, sqlite.ObConfig{}, sqlite.OcsConfig{}, sqlite.OcsToken{}, sqlite.TaskMapping{}, sqlite.SubtaskInstance{}, sqlite.SubTaskLog{}, sqlite.DagInstance{}, sqlite.NodeInstance{}, }
Functions ¶
func CheckFilepath ¶
func GenerateSqliteDsn ¶
func GenerateSqliteDsn(datasourceConfig config.SqliteDataSourceConfig) string
func GetSqliteInstance ¶
func InitSqliteDataSourceConfig ¶
func InitSqliteDataSourceConfig(dsConfig config.SqliteDataSourceConfig) (config.SqliteDataSourceConfig, error)
func LoadSqliteInstance ¶
func LoadSqliteInstance() error
func MigrateSqliteTables ¶
MigrateSqliteTables will check if the sqlite tables exist, if not, it will create them. Sqlite tables migration is only required for first start and upgrade The first start is based on whether the `ip` of sqlite's ocs_info table is "".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.