Skip to main content

INFORMATION.SCHEMA.STATEMENTRELATIONS

persistent class INFORMATION.SCHEMA.STATEMENTRELATIONS extends %Library.Persistent, %XML.Adaptor [ Final ]

SQL Table Name: INFORMATION_SCHEMA.STATEMENT_RELATIONS

Child table of INFORMATION_SCHEMA.STATEMENTS which contains each table or view entry use by the statement

Property Inventory

Parameters

parameter READONLY = 1;
Inherited description: READONLY = 1 means that objects can be created, opened but not saved or deleted. Tables are projected to SQL as READONLY.

Properties

property Relation as %String (MAXLEN = 128) [ Required ];
name of the table or view the statement references. Note, the name of the relation is always stored in uppercase.
Property methods: RelationDisplayToLogical(), RelationGet(), RelationIsValid(), RelationLogicalToDisplay(), RelationLogicalToOdbc(), RelationNormalize(), RelationSet()
relationship Statement as INFORMATION.SCHEMA.STATEMENTS [ Required , Inverse = Relations , Cardinality = parent ];
Reference to the INFORMATION_SCHEMA.STATEMENTS row this is a child of
Property methods: StatementGet(), StatementGetObject(), StatementGetObjectId(), StatementGetSwizzled(), StatementIsValid(), StatementNewObject(), StatementOnDelete(), StatementRClose(), StatementRExec(), StatementRFetch(), StatementRelate(), StatementSQLCompute(), StatementSet(), StatementSetObject(), StatementSetObjectId(), StatementUnRelate(), StatementUnSwizzle()

Indexes

index (StatementRelationsIDKey on Relation) [IdKey, Type = key];
Index methods: StatementRelationsIDKeyCheck(), StatementRelationsIDKeyDelete(), StatementRelationsIDKeyExists(), StatementRelationsIDKeyOpen(), StatementRelationsIDKeySQLCheckUnique(), StatementRelationsIDKeySQLExists(), StatementRelationsIDKeySQLFindPKeyByConstraint(), StatementRelationsIDKeySQLFindRowIDByConstraint()

Inherited Members

Inherited Methods

Storage

Gray indicates storage defined by superclasses.

Storage Model: CacheSQLStorage

Maps: 2

  • Map number 1 is named Master

    thismap.Global: ^rINDEXSQL

  • Map number 2 is named RelationIndex

    thismap.Global: ^rINDEXSQL

  • ^rINDEXSQL("sqlidx",1,{INFORMATION_SCHEMA.STATEMENTS.Hash},"rel",{Relation})
    =
    ^rINDEXSQL("sqlidx",3,{Relation},{INFORMATION_SCHEMA.STATEMENTS.Hash})
    =
FeedbackOpens in a new tab