Documentation ¶
Index ¶
- type DomainColumn
- type DomainTable
- type JetStoreProperties
- type OutputTableSpecs
- type WorkspaceDb
- func (workspaceDb *WorkspaceDb) Close()
- func (workspaceDb *WorkspaceDb) GetRangeDataType(dataProperty string) (string, bool, error)
- func (workspaceDb *WorkspaceDb) GetRuleSetNames(ruleseq string) ([]string, error)
- func (workspaceDb *WorkspaceDb) GetTableNames() ([]string, error)
- func (workspaceDb *WorkspaceDb) GetVolatileResources() ([]string, error)
- func (workspaceDb *WorkspaceDb) LoadDomainTableDefinitions(allTbl bool, outTableFilter map[string]bool) (OutputTableSpecs, error)
- func (workspaceDb *WorkspaceDb) LoadJetStoreProperties(ruleset string) (JetStoreProperties, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DomainColumn ¶
type DomainTable ¶
type DomainTable struct { TableName string ClassName string ClassResource *bridge.Resource Columns []DomainColumn DomainKeysInfo *schema.HeadersAndDomainKeysInfo }
func NewDomainTable ¶
func NewDomainTable(tableName string) (DomainTable, error)
func (*DomainTable) DomainHeaders ¶
func (domainTable *DomainTable) DomainHeaders() *[]string
func (*DomainTable) UpdateDomainTableSchema ¶
type JetStoreProperties ¶
type OutputTableSpecs ¶
type OutputTableSpecs map[string]*DomainTable
type WorkspaceDb ¶
type WorkspaceDb struct { Dsn string Dbpool *pgxpool.Pool // contains filtered or unexported fields }
func OpenWorkspaceDb ¶
func OpenWorkspaceDb(dsn string) (*WorkspaceDb, error)
func (*WorkspaceDb) Close ¶
func (workspaceDb *WorkspaceDb) Close()
func (*WorkspaceDb) GetRangeDataType ¶
func (workspaceDb *WorkspaceDb) GetRangeDataType(dataProperty string) (string, bool, error)
GetRangeDataType: Get the data type for the range of the dataProperty arg
func (*WorkspaceDb) GetRuleSetNames ¶
func (workspaceDb *WorkspaceDb) GetRuleSetNames(ruleseq string) ([]string, error)
GetRuleSetNames: Get the slice of ruleset name for ruleseq (rule sequence) name
func (*WorkspaceDb) GetTableNames ¶
func (workspaceDb *WorkspaceDb) GetTableNames() ([]string, error)
GetTableName: Get the table name of the workspace
func (*WorkspaceDb) GetVolatileResources ¶
func (workspaceDb *WorkspaceDb) GetVolatileResources() ([]string, error)
GetVolatileResources: return list of volatile resources
func (*WorkspaceDb) LoadDomainTableDefinitions ¶
func (workspaceDb *WorkspaceDb) LoadDomainTableDefinitions(allTbl bool, outTableFilter map[string]bool) (OutputTableSpecs, error)
LoadDomainTableDefinitions: Load the Domain Table Definition, including Domain Keys definition returns a mapping of the output domain tables with their column specs if allTble is true, return all otherwise, filter using outTableFilter
func (*WorkspaceDb) LoadJetStoreProperties ¶
func (workspaceDb *WorkspaceDb) LoadJetStoreProperties(ruleset string) (JetStoreProperties, error)
loadJetStoreProperties: returns a mapping of the output domain tables with their column specs
Click to show internal directories.
Click to hide internal directories.