Documentation ¶
Index ¶
- Constants
- type ModuleDbStore
- type ModuleFileStore
- type ModuleStore
- func (ms *ModuleStore) AddSchemaJoin(ctx context.Context, projectId string, dbAlias string, ...) (tables map[string]interface{}, err error)
- func (ms *ModuleStore) AddSchemaTable(ctx context.Context, projectId string, dbAlias string, tableName string, ...) (tables map[string]interface{}, err error)
- func (ms *ModuleStore) DropSchemaTable(ctx context.Context, projectId string, dbAlias string, tableName string, ...) (err error)
- func (ms *ModuleStore) GetDataSource(ctx context.Context, projectId string, dbAlias string) (datasource *module_model.DataSource, err error)
- func (ms *ModuleStore) GetDataSources(ctx context.Context, projectId string) (datasources map[string]*module_model.DataSource, err error)
- func (ms *ModuleStore) GetDatasourceCloneObject(ctx context.Context, projectId string, datasource *module_model.DataSource, ...) (datasourceClone *module_model.DataSource, err error)
- func (ms *ModuleStore) GetMyQueries(ctx context.Context, projectId string, queryType string) (myqueries map[string]module_model.MyQuery, err error)
- func (ms *ModuleStore) GetMyQuery(ctx context.Context, projectId string, queryName string) (myquery module_model.MyQuery, err error)
- func (ms *ModuleStore) GetProjectConfig(ctx context.Context, projectId string) (*module_model.Project, error)
- func (ms *ModuleStore) GetProjectList(ctx context.Context) []map[string]interface{}
- func (ms *ModuleStore) GetProjectSettingsObject(ctx context.Context, projectId string) (pc module_model.ProjectSettings, err error)
- func (ms *ModuleStore) GetTableSecurityRule(ctx context.Context, projectId string, dbAlias string, tableName string) (securityRules module_model.SecurityRules, err error)
- func (ms *ModuleStore) GetTableTransformation(ctx context.Context, projectId string, dbAlias string, tableName string) (transformRules module_model.TransformRules, err error)
- func (ms *ModuleStore) RemoveDataSource(ctx context.Context, projectId string, dbAlias string, realStore ModuleStoreI) error
- func (ms *ModuleStore) RemoveMyQuery(ctx context.Context, projectId string, queryName string, ...) error
- func (ms *ModuleStore) RemoveProject(ctx context.Context, projectId string, realStore ModuleStoreI) error
- func (ms *ModuleStore) RemoveSchemaJoin(ctx context.Context, projectId string, dbAlias string, ...) (tables map[string]interface{}, err error)
- func (ms *ModuleStore) RemoveSchemaTable(ctx context.Context, projectId string, dbAlias string, tableName string, ...) (tables map[string]interface{}, err error)
- func (ms *ModuleStore) SaveDataSource(ctx context.Context, projectId string, datasource *module_model.DataSource, ...) error
- func (ms *ModuleStore) SaveMyQuery(ctx context.Context, projectId string, queryName string, queryType string, ...) error
- func (ms *ModuleStore) SaveProject(ctx context.Context, projectId string, realStore ModuleStoreI, persist bool) error
- func (ms *ModuleStore) SaveProjectSettings(ctx context.Context, projectId string, ...) error
- func (ms *ModuleStore) SaveSchemaTable(ctx context.Context, projectId string, dbAlias string, tableName string, ...) (err error)
- func (ms *ModuleStore) SaveTableSecurity(ctx context.Context, projectId string, dbAlias string, tableName string, ...) (err error)
- func (ms *ModuleStore) SaveTableTransformation(ctx context.Context, projectId string, dbAlias string, tableName string, ...) (err error)
- func (ms *ModuleStore) SetDataSourceConnections(ctx context.Context, realStore ModuleStoreI) (err error)
- func (ms *ModuleStore) UpdateSchemaTables(ctx context.Context, projectId string, dbAlias string, realStore ModuleStoreI) (datasource *module_model.DataSource, err error)
- type ModuleStoreI
- type StoreHolder
Constants ¶
View Source
const ( Q_SELECT = "SELECT" Q_WITH = "WITH" Q_INSERT = "INSERT" Q_UPDATE = "UPDATE" Q_DELETE = "DELETE" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModuleDbStore ¶
type ModuleDbStore struct { store.DbStore ModuleStore }
type ModuleFileStore ¶
type ModuleFileStore struct { store.FileStore ModuleStore }
type ModuleStore ¶
type ModuleStore struct {
Projects map[string]*module_model.Project `json:"projects"` //ProjectId is the key
}
func (*ModuleStore) AddSchemaJoin ¶
func (ms *ModuleStore) AddSchemaJoin(ctx context.Context, projectId string, dbAlias string, tj *module_model.TableJoins, realStore ModuleStoreI) (tables map[string]interface{}, err error)
func (*ModuleStore) AddSchemaTable ¶
func (ms *ModuleStore) AddSchemaTable(ctx context.Context, projectId string, dbAlias string, tableName string, realStore ModuleStoreI) (tables map[string]interface{}, err error)
func (*ModuleStore) DropSchemaTable ¶
func (ms *ModuleStore) DropSchemaTable(ctx context.Context, projectId string, dbAlias string, tableName string, realStore ModuleStoreI) (err error)
func (*ModuleStore) GetDataSource ¶
func (ms *ModuleStore) GetDataSource(ctx context.Context, projectId string, dbAlias string) (datasource *module_model.DataSource, err error)
func (*ModuleStore) GetDataSources ¶
func (ms *ModuleStore) GetDataSources(ctx context.Context, projectId string) (datasources map[string]*module_model.DataSource, err error)
func (*ModuleStore) GetDatasourceCloneObject ¶
func (ms *ModuleStore) GetDatasourceCloneObject(ctx context.Context, projectId string, datasource *module_model.DataSource, s ModuleStoreI) (datasourceClone *module_model.DataSource, err error)
func (*ModuleStore) GetMyQueries ¶
func (ms *ModuleStore) GetMyQueries(ctx context.Context, projectId string, queryType string) (myqueries map[string]module_model.MyQuery, err error)
func (*ModuleStore) GetMyQuery ¶
func (ms *ModuleStore) GetMyQuery(ctx context.Context, projectId string, queryName string) (myquery module_model.MyQuery, err error)
func (*ModuleStore) GetProjectConfig ¶
func (ms *ModuleStore) GetProjectConfig(ctx context.Context, projectId string) (*module_model.Project, error)
func (*ModuleStore) GetProjectList ¶
func (ms *ModuleStore) GetProjectList(ctx context.Context) []map[string]interface{}
func (*ModuleStore) GetProjectSettingsObject ¶
func (ms *ModuleStore) GetProjectSettingsObject(ctx context.Context, projectId string) (pc module_model.ProjectSettings, err error)
func (*ModuleStore) GetTableSecurityRule ¶
func (ms *ModuleStore) GetTableSecurityRule(ctx context.Context, projectId string, dbAlias string, tableName string) (securityRules module_model.SecurityRules, err error)
func (*ModuleStore) GetTableTransformation ¶
func (ms *ModuleStore) GetTableTransformation(ctx context.Context, projectId string, dbAlias string, tableName string) (transformRules module_model.TransformRules, err error)
func (*ModuleStore) RemoveDataSource ¶
func (ms *ModuleStore) RemoveDataSource(ctx context.Context, projectId string, dbAlias string, realStore ModuleStoreI) error
func (*ModuleStore) RemoveMyQuery ¶
func (ms *ModuleStore) RemoveMyQuery(ctx context.Context, projectId string, queryName string, realStore ModuleStoreI) error
func (*ModuleStore) RemoveProject ¶
func (ms *ModuleStore) RemoveProject(ctx context.Context, projectId string, realStore ModuleStoreI) error
func (*ModuleStore) RemoveSchemaJoin ¶
func (ms *ModuleStore) RemoveSchemaJoin(ctx context.Context, projectId string, dbAlias string, tj *module_model.TableJoins, realStore ModuleStoreI) (tables map[string]interface{}, err error)
func (*ModuleStore) RemoveSchemaTable ¶
func (ms *ModuleStore) RemoveSchemaTable(ctx context.Context, projectId string, dbAlias string, tableName string, realStore ModuleStoreI) (tables map[string]interface{}, err error)
func (*ModuleStore) SaveDataSource ¶
func (ms *ModuleStore) SaveDataSource(ctx context.Context, projectId string, datasource *module_model.DataSource, realStore ModuleStoreI) error
func (*ModuleStore) SaveMyQuery ¶
func (ms *ModuleStore) SaveMyQuery(ctx context.Context, projectId string, queryName string, queryType string, dbAlias string, query string, vars map[string]interface{}, realStore ModuleStoreI, cols string, securityRule security_rule.SecurityRule) error
func (*ModuleStore) SaveProject ¶
func (ms *ModuleStore) SaveProject(ctx context.Context, projectId string, realStore ModuleStoreI, persist bool) error
func (*ModuleStore) SaveProjectSettings ¶
func (ms *ModuleStore) SaveProjectSettings(ctx context.Context, projectId string, projectSettings module_model.ProjectSettings, realStore ModuleStoreI) error
func (*ModuleStore) SaveSchemaTable ¶
func (ms *ModuleStore) SaveSchemaTable(ctx context.Context, projectId string, dbAlias string, tableName string, tableObj map[string]module_model.TableColsMetaData, realStore ModuleStoreI) (err error)
func (*ModuleStore) SaveTableSecurity ¶
func (ms *ModuleStore) SaveTableSecurity(ctx context.Context, projectId string, dbAlias string, tableName string, securityRules module_model.SecurityRules, realStore ModuleStoreI) (err error)
func (*ModuleStore) SaveTableTransformation ¶
func (ms *ModuleStore) SaveTableTransformation(ctx context.Context, projectId string, dbAlias string, tableName string, transformRules module_model.TransformRules, realStore ModuleStoreI) (err error)
func (*ModuleStore) SetDataSourceConnections ¶
func (ms *ModuleStore) SetDataSourceConnections(ctx context.Context, realStore ModuleStoreI) (err error)
func (*ModuleStore) UpdateSchemaTables ¶
func (ms *ModuleStore) UpdateSchemaTables(ctx context.Context, projectId string, dbAlias string, realStore ModuleStoreI) (datasource *module_model.DataSource, err error)
type ModuleStoreI ¶
type ModuleStoreI interface { store.StoreI SaveProject(ctx context.Context, projectId string, realStore ModuleStoreI, persist bool) error RemoveProject(ctx context.Context, projectId string, realStore ModuleStoreI) error GetProjectConfig(ctx context.Context, projectId string) (*module_model.Project, error) GetProjectSettingsObject(ctx context.Context, projectId string) (pc module_model.ProjectSettings, err error) GetProjectList(ctx context.Context) []map[string]interface{} SetDataSourceConnections(ctx context.Context, realStore ModuleStoreI) (err error) SaveProjectSettings(ctx context.Context, projectId string, projectConfig module_model.ProjectSettings, realStore ModuleStoreI) error SaveDataSource(ctx context.Context, projectId string, datasource *module_model.DataSource, realStore ModuleStoreI) error RemoveDataSource(ctx context.Context, projectId string, dbAlias string, realStore ModuleStoreI) error GetDataSource(ctx context.Context, projectId string, dbAlias string) (datasource *module_model.DataSource, err error) GetDataSources(ctx context.Context, projectId string) (datasources map[string]*module_model.DataSource, err error) UpdateSchemaTables(ctx context.Context, projectId string, dbAlias string, realStore ModuleStoreI) (datasource *module_model.DataSource, err error) AddSchemaTable(ctx context.Context, projectId string, dbAlias string, tableName string, realStore ModuleStoreI) (tables map[string]interface{}, err error) SaveSchemaTable(ctx context.Context, projectId string, dbAlias string, tableName string, tableObj map[string]module_model.TableColsMetaData, realStore ModuleStoreI) (err error) SaveTableSecurity(ctx context.Context, projectId string, dbAlias string, tableName string, securityRules module_model.SecurityRules, realStore ModuleStoreI) (err error) SaveTableTransformation(ctx context.Context, projectId string, dbAlias string, tableName string, transformRules module_model.TransformRules, realStore ModuleStoreI) (err error) GetTableTransformation(ctx context.Context, projectId string, dbAlias string, tableName string) (transformRules module_model.TransformRules, err error) GetTableSecurityRule(ctx context.Context, projectId string, dbAlias string, tableName string) (transformRules module_model.SecurityRules, err error) DropSchemaTable(ctx context.Context, projectId string, dbAlias string, tableName string, realStore ModuleStoreI) (err error) RemoveSchemaTable(ctx context.Context, projectId string, dbAlias string, tableName string, realStore ModuleStoreI) (tables map[string]interface{}, err error) SaveMyQuery(ctx context.Context, projectId string, queryName string, queryType string, dbAlias string, query string, vars map[string]interface{}, realStore ModuleStoreI, cols string, securityRule security_rule.SecurityRule) error RemoveMyQuery(ctx context.Context, projectId string, queryName string, realStore ModuleStoreI) error GetMyQuery(ctx context.Context, projectId string, queryName string) (myquery module_model.MyQuery, err error) GetMyQueries(ctx context.Context, projectId string, queryType string) (myqueries map[string]module_model.MyQuery, err error) AddSchemaJoin(ctx context.Context, projectId string, dbAlias string, tj *module_model.TableJoins, realStore ModuleStoreI) (tables map[string]interface{}, err error) RemoveSchemaJoin(ctx context.Context, projectId string, dbAlias string, tj *module_model.TableJoins, realStore ModuleStoreI) (tables map[string]interface{}, err error) }
type StoreHolder ¶
type StoreHolder struct {
Store ModuleStoreI
}
Click to show internal directories.
Click to hide internal directories.