workspace

package
v0.0.0-...-b183724 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DomainColumn

type DomainColumn struct {
	PropertyName string
	ColumnName   string
	Predicate    *bridge.Resource
	DataType     string
	IsArray      bool
	IsGrouping   bool
}

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

func (tableSpec *DomainTable) UpdateDomainTableSchema(dbpool *pgxpool.Pool, dropExisting bool, extVR []string) error

type JetStoreProperties

type JetStoreProperties map[string]string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL