Skip to content

GNNTable.show_table()

Prints the table metadata schema and table details.

from relationalai_gnns import GNNTable, ForeignKey
table_with_foreign_keys = GNNTable(
connector=connector,
name="TableWithFKeys",
source="DATABASE.SCHEMA.TABLE_WITH_FKEYS",
type="node",
foreign_keys=[ForeignKey(column_name="Id1", link_to="TableWithCKey1.Id1"),
ForeignKey(column_name="Id2", link_to="TableWithCKey2.Id2")]
)
table_with_foreign_keys.show_table()