DbRelationInfo
Represents metadata for a database relation in Datagrok.
DbRelationInfo describes how two tables are connected, including the
schema/table pairs, participating columns, cardinality, and whether this
relation is considered a primary navigation path.
Mutation methods do not modify underlying database, they just create metadata in Datagrok.
Implements
Constructors
new DbRelationInfo()
new DbRelationInfo(
dart):DbRelationInfo
Creates a new DbRelationInfo wrapper.
Parameters
| Parameter | Type | Description |
|---|---|---|
dart | any | The underlying Dart object representing a relation. |
Returns
Source
Properties
| Property | Modifier | Type |
|---|---|---|
dart | public | any |
Accessors
cardinality
getcardinality():undefined|"one-to-one"|"one-to-many"|"many-to-one"|"many-to-many"
The relation cardinality (e.g., "one-to-many", "many-to-one").
Returns
undefined | "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many"
Source
comment
getcomment():undefined|string
User-defined comment describing this relation.
Returns
undefined | string
Source
connection
getconnection():DataConnection
Connection object this relation belongs to.
Returns
Source
fromColumns
getfromColumns():undefined|string[]
List of source table columns participating in the relation.
Returns
undefined | string[]
Source
fromSchema
getfromSchema():undefined|string
Schema name of the source table of this relation.
Returns
undefined | string
Source
fromTable
getfromTable():undefined|string
Source table name of this relation.
Returns
undefined | string
Source
isPrimaryPath
getisPrimaryPath():undefined|boolean
Indicates whether this relation is treated as a primary navigation path (e.g., preferred for automated join suggestions).
Returns
undefined | boolean
Source
llmComment
getllmComment():undefined|string
LLM-generated annotation or AI summary for this relation.
Returns
undefined | string
Source
toColumns
gettoColumns():undefined|string[]
List of target table columns participating in the relation.
Returns
undefined | string[]
Source
toSchema
gettoSchema():undefined|string
Schema name of the target table of this relation.
Returns
undefined | string
Source
toTable
gettoTable():undefined|string
Target table name of this relation.
Returns
undefined | string