Prefix: sql_.
What the consumer’s database declares, read through the generated jOOQ model: schemas, tables, columns, keys, constraints, indexes and callables. These rows are the ground that written table and column references are checked against. A few rows also transcribe what the generated model states about itself, because that model ships as one unit with the catalog it was generated from.
Where to start
- sql_table
-
One table the consumer’s catalog declares.
- sql_column
-
One column of one table the consumer’s catalog declares.
- sql_referential_constraint
-
One foreign key’s reference to the constraint it resolves against.
How this family meets the others
The normalization crossings declared for this family: rules by which a name written in one family’s vocabulary is matched against another’s census. Declared rows rather than a closed set, so a crossing nobody has declared does not appear here.
- graphitron_path_element_key_rule (
graphitron_spellings against thesql_census) -
A written key meets the foreign keys of the graph’s catalogs case-insensitively, the SQL name answering first and the generated Keys constant only where no SQL name does, a written schema binding the schema of the table holding the key.
- graphitron_path_element_routine_rule (
graphitron_spellings against thesql_census) -
A written routine name meets the graph’s catalogs as a written table name does, through graphitron_spelled_table, and names a routine only where the catalog generated a call for it.
- graphitron_path_element_table_rule (
graphitron_spellings against thesql_census) -
A written table name meets the graph’s catalogs case-insensitively, a written schema binding the schema and an unqualified name matching in any.
- graphitron_spelled_table (
graphitron_spellings against thesql_census) -
A written table reference meets the catalog census by case-insensitive match on pre-normalized spelling columns, one row per candidate.
- intent_argmapping_key_column_candidate (
graphitron_spellings against thesql_census) -
An argMapping path segment meets column names case-insensitively along the binding walk.
store_-
4 foreign keys from this family’s rows into that one.
graphitron_-
58 foreign keys from that family’s rows into this one.
Why the name is right
What the consumer’s database declares, read through jOOQ’s generated model, plus what that generated model states about the catalog it was generated from. Not jooq_: naming a family for its reader is what this name replaces, because jOOQ defines neither table nor column nor foreign key. The second clause is the narrower residency the generated-model facts earn, sql_table.class_fqn and the node-identity metadata a generated table class publishes: the corpus is one generated package, refreshed as one unit by one walk, and a prefix boundary drawn through the middle of that unit would buy a tidier charter at the price of a family that no longer matches a refresh.
sql_column
One column of one table the consumer’s catalog declares. For example film.title, a varchar the generated model binds to java.lang.String.
Primary key: (source_name, table_schema, table_name, column_name). Foreign key: (source_name, table_schema, table_name) references sql_table (source_name, table_schema, table_name). Foreign key: (source_name, table_schema, table_name, column_name, kind, jooq_name, binding_type) references sql_table_field (source_name, table_schema, table_name, field_name, kind, jooq_name, binding_type). Check: "DECLARED_LENGTH" > 0. Check: "KIND" = 'COLUMN'.
source_name(CHARACTER VARYING, not null)-
the owning partition’s catalog source, as on sql_table; the key’s leading dimension
table_schema(CHARACTER VARYING, not null)-
SQL schema the table lives in
table_name(CHARACTER VARYING, not null)-
SQL table name
column_name(CHARACTER VARYING, not null)-
SQL column name
ordinal(INTEGER, not null)-
column position in the table definition, read from Table.fields() rather than from the reflective field walk, whose order is unspecified
jooq_name(CHARACTER VARYING, not null)-
the generated jOOQ Java field name; the one column here written in the reader’s vocabulary rather than SQL’s
sql_type(CHARACTER VARYING, not null)-
the column’s SQL type as jOOQ reports it
binding_type(CHARACTER VARYING, not null)-
the fully qualified Java type jOOQ binds the column to, as Field.getType() reports it; read off the live Field during the catalog walk and unrecoverable afterwards, since nothing outside the codegen classpath can resolve a configured binding. Hover renders it beside the SQL type, which is why a column needs both and why keeping only one of them capped what the editor could say about a column.
database_type(CHARACTER VARYING, not null)-
the fully qualified Java type jOOQ exchanges with the database for the column, the converter’s fromType() off the live Field; equal to binding_type on a column with no converter, and the type behind the conversion on one with a converter, java.lang.Long for a bigint bound to java.lang.String. Captured beside binding_type for the same reason, that only the codegen classpath can answer it. A node-id decode reads the pair: a key value is written as the binding type’s text, and parsing that text as the database type instead can drop what the binding type carries, the time of day of a date-only database type bound to LocalDateTime
nullable(BOOLEAN, not null)-
whether the column admits NULL
defaulted(BOOLEAN, not null)-
whether the database fills the column when an insert leaves it out: a declared default or an identity, as jOOQ’s generated DataType states it. A NOT NULL column that is not defaulted must be given a value by every insert
declared_length(INTEGER, nullable)-
the length the column’s type declares, as jOOQ reports it, for example 255 for film.title’s varchar(255); in the dialect’s own unit, characters on PostgreSQL and bytes or characters on Oracle by the column’s length semantics, which the catalog does not say; null when the type declares no length
description(CHARACTER VARYING, nullable)-
the database comment on the column, when present
column_name_upper(CHARACTER VARYING, nullable)-
the upper-cased form of the column beside it, for the case-insensitive match against an authored column reference or the field name standing in for one. Generated, so nothing writes it and nothing can. Fold only where an authored spelling meets a catalog name. Two values of one family are compared exactly, and a comparison that does want a fold on both sides reaches this column by joining sql_column on its key rather than by having it forwarded through a derived view. sql_name_matched_key_column is the worked example of that second sentence: both of its column names are catalog values, so it reaches a key column’s fold through the foreign key sql_constraint_column already declares here
jooq_name_upper(CHARACTER VARYING, nullable)-
the upper-cased form of the column beside it, for the case-insensitive match against an authored column reference or the field name standing in for one, which is the tier tried before the SQL name. Generated, so nothing writes it and nothing can. Fold only where an authored spelling meets a catalog name. Two values of one family are compared exactly, and a comparison that does want a fold on both sides reaches this column by joining sql_column on its key rather than by having it forwarded through a derived view
kind(CHARACTER VARYING, not null)-
always COLUMN: a column is the COLUMN subtype of sql_table_field, holding the facts a database column has and an embeddable does not, and the kind is carried so the foreign key into it holds the kind as well as the field
touched_at(TIMESTAMP, nullable)-
when the reading that produced this row ran. The reading finishes by deleting this source’s rows carrying a different instant, which are the tables, columns and keys the consumer’s database no longer has and which an upsert alone cannot find. Nullable because one writer of these relations sets nothing here, and a row with no instant is not this reading’s
sql_column_record_accessor
The public no-argument getter this table’s generated record reads one column through. For example film.title, which FilmRecord reads through getTitle, the Bean Validation property title.
Primary key: (source_name, table_schema, table_name, column_name). Foreign key: (source_name, table_schema, table_name, column_name) references sql_column (source_name, table_schema, table_name, column_name).
source_name(CHARACTER VARYING, not null)-
the catalog source the table was read from, as on sql_column; the key’s leading dimension and the refresh unit the sweep is scoped by
table_schema(CHARACTER VARYING, not null)-
the table’s SQL schema, as on sql_column
table_name(CHARACTER VARYING, not null)-
the table’s SQL name, as on sql_column
column_name(CHARACTER VARYING, not null)-
the column’s SQL name, as on sql_column; with the three columns above, the column this row is about
getter_name(CHARACTER VARYING, not null)-
the getter’s method name: get, then the column’s SQL name with space, hyphen and dot read as underscores and each underscore-separated word capitalised with the rest of it lower-cased, which is the name jOOQ’s default generator strategy writes. For example BILDE gives getBilde and film_id gives getFilmId. Present only where the record class declares that name as a public no-argument instance method whose return type the column’s Java type is assignable to, which also rejects a name jOOQ disambiguated against a method of Record
property_name(CHARACTER VARYING, not null)-
the Bean Validation property the getter names: the getter’s name without get, decapitalised the way java.beans does, so a name starting with two capitals keeps them. What a Validator.validateProperty call on the record names, and what a constraint mapped onto the record’s getter is registered under
touched_at(TIMESTAMP, nullable)-
when the reading that produced this row ran, as on sql_column; the reading finishes by deleting this source’s rows carrying a different instant, which are the getters the regenerated records no longer have
sql_column_spelling
One column a written name reaches on a table, folded by case: by its SQL name where any column of the table carries that name, else by its generated jOOQ name. For example the spelling FILM_ID reaches public.film.film_id by SQL_NAME, with a reach of one.
Primary key: (source_name, table_schema, table_name, spelling_upper, column_name). Foreign key: (source_name, table_schema, table_name, column_name) references sql_column (source_name, table_schema, table_name, column_name). Check: "MATCHED_BY" IN('SQL_NAME', 'JOOQ_NAME'). Check: "REACH" >= 1.
source_name(CHARACTER VARYING, not null)-
the table’s catalog source, as on sql_table
table_schema(CHARACTER VARYING, not null)-
the table’s SQL schema
table_name(CHARACTER VARYING, not null)-
the table’s SQL name
spelling_upper(CHARACTER VARYING, not null)-
the name folded by case, which is where an authored spelling meets the catalog: a reader folds the author’s @field(name:) or field name and joins here, and compares nothing else
column_name(CHARACTER VARYING, not null)-
the column the spelling reaches, as the catalog spells it
matched_by(CHARACTER VARYING, not null)-
which of the column’s names the spelling met: SQL_NAME, the column’s own; JOOQ_NAME, the generated one, which answers only where no column of the table carries the spelling as its SQL name
reach(INTEGER, not null)-
how many columns of the table the spelling reaches under that precedence, the same on every row of one spelling: one is a resolution, more is an ambiguity, and a spelling no column answers has no row
sql_constraint
One named constraint of one table. For example film_pkey on public.film, of type PRIMARY KEY, at its position in the table’s uniqueness enumeration.
Primary key: (source_name, table_schema, table_name, constraint_name). Foreign key: (source_name, table_schema, table_name) references sql_table (source_name, table_schema, table_name). Check: "CONSTRAINT_TYPE" IN('PRIMARY KEY', 'UNIQUE', 'FOREIGN KEY').
source_name(CHARACTER VARYING, not null)-
the owning partition’s catalog source, as on sql_table; the key’s leading dimension
table_schema(CHARACTER VARYING, not null)-
SQL schema the table lives in
table_name(CHARACTER VARYING, not null)-
SQL table name
constraint_name(CHARACTER VARYING, not null)-
SQL constraint name
constraint_type(CHARACTER VARYING, not null)-
the standard’s TABLE_CONSTRAINTS vocabulary; the domain is closed over what the catalog walk reads, so a violation is a capture bug
jooq_name(CHARACTER VARYING, nullable)-
the generated Keys-class constant name for this constraint, which is what an author types in @reference(key:). Resolved by reference identity over the Keys class’s fields rather than by any formula over the constraint name, so a name colliding across schemas cannot mis-resolve; that resolution needs the live key on the codegen classpath and is unrecoverable afterwards. Null when the constraint resolves to no constant, which is a fact and not a failure: a generated model need not carry a Keys class, and a key with no constant is one nobody can name. Nullable where sql_table.jooq_name and sql_column.jooq_name are not, because a table and a column always have a generated Java name and a constraint need not.
key_position(INTEGER, nullable)-
where this constraint sits in the table’s uniqueness enumeration, jOOQ’s Table.getKeys() order with the primary key folded in, counting from zero. Captured rather than derived because the order is the generated model’s and nothing in the constraint’s own name or columns recovers it. It exists because a consumer picking one row-identifying key out of several has to pick the one the generator picks, and the generator walks this enumeration; without the position a relation ranking candidate keys would have to invent a tiebreaker among unique keys, and an invented precedence that happens to agree today is the kind of second answer that diverges silently later. Null on a FOREIGN KEY row, which is not in this enumeration at all: absence here means the constraint identifies no row rather than that its position is unknown.
table_schema_upper(CHARACTER VARYING, nullable)-
the upper-cased form of the column beside it, for the case-insensitive match against the namespace half of an authored key reference, which names the schema of the table holding the constraint rather than any schema of the constraint’s own. Generated, so nothing writes it and nothing can. Fold only where an authored spelling meets a catalog name. Two values of one family are compared exactly, and a comparison that does want a fold on both sides reaches this column by joining sql_constraint on its key rather than by having it forwarded through a derived view
constraint_name_upper(CHARACTER VARYING, nullable)-
the upper-cased form of the column beside it, for the case-insensitive match against the name half of an authored key reference. Generated, so nothing writes it and nothing can. Fold only where an authored spelling meets a catalog name. Two values of one family are compared exactly, and a comparison that does want a fold on both sides reaches this column by joining sql_constraint on its key rather than by having it forwarded through a derived view
jooq_name_upper(CHARACTER VARYING, nullable)-
the upper-cased form of the column beside it, for the case-insensitive match against the name half of an authored key reference, eligible only where no SQL constraint name answers it. NULL where jooq_name is, which is the constraint that resolves to no constant and therefore matches no reference. Generated, so nothing writes it and nothing can. Fold only where an authored spelling meets a catalog name. Two values of one family are compared exactly, and a comparison that does want a fold on both sides reaches this column by joining sql_constraint on its key rather than by having it forwarded through a derived view
touched_at(TIMESTAMP, nullable)-
when the reading that produced this row ran. The reading finishes by deleting this source’s rows carrying a different instant, which are the tables, columns and keys the consumer’s database no longer has and which an upsert alone cannot find. Nullable because one writer of these relations sets nothing here, and a row with no instant is not this reading’s
sql_constraint_column
One position in one constraint’s column list, naming the column that sits there. For example position 0 of film_actor’s primary key, naming actor_id.
Primary key: (source_name, table_schema, table_name, constraint_name, position). Foreign key: (source_name, table_schema, table_name, constraint_name) references sql_constraint (source_name, table_schema, table_name, constraint_name). Foreign key: (source_name, table_schema, table_name, column_name) references sql_column (source_name, table_schema, table_name, column_name).
source_name(CHARACTER VARYING, not null)-
the owning partition’s catalog source, as on sql_table; the key’s leading dimension
table_schema(CHARACTER VARYING, not null)-
SQL schema the table lives in
table_name(CHARACTER VARYING, not null)-
SQL table name
constraint_name(CHARACTER VARYING, not null)-
SQL constraint name
position(INTEGER, not null)-
0-based position in the constraint’s column list
column_name(CHARACTER VARYING, not null)-
SQL column name
touched_at(TIMESTAMP, nullable)-
when the reading that produced this row ran. The reading finishes by deleting this source’s rows carrying a different instant, which are the tables, columns and keys the consumer’s database no longer has and which an upsert alone cannot find. Nullable because one writer of these relations sets nothing here, and a row with no instant is not this reading’s
sql_embeddable_column
One column one embeddable covers, at its position. For example position 0 of period on public.embedded_period, naming starts_on.
Primary key: (source_name, table_schema, table_name, embeddable_name, position). Foreign key: (source_name, table_schema, table_name, embeddable_name, kind) references sql_table_field (source_name, table_schema, table_name, field_name, kind). Foreign key: (source_name, table_schema, table_name, column_name) references sql_column (source_name, table_schema, table_name, column_name). Check: "KIND" = 'EMBEDDABLE'. Check: "POSITION" >= 0.
source_name(CHARACTER VARYING, not null)-
the owning partition’s catalog source, as on sql_table; the key’s leading dimension
table_schema(CHARACTER VARYING, not null)-
SQL schema the table lives in
table_name(CHARACTER VARYING, not null)-
SQL table name
embeddable_name(CHARACTER VARYING, not null)-
the embeddable covering the column, an EMBEDDABLE field of sql_table_field
kind(CHARACTER VARYING, not null)-
always EMBEDDABLE, carried so the foreign key into sql_table_field holds the kind as well as the field
position(INTEGER, not null)-
0-based position in the embeddable’s column list, the order its record holds them in
column_name(CHARACTER VARYING, not null)-
SQL column name, a column of the table
touched_at(TIMESTAMP, nullable)-
when the reading that produced this row ran. The reading finishes by deleting this source’s rows carrying a different instant, which are the tables, columns and keys the consumer’s database no longer has and which an upsert alone cannot find. Nullable because one writer of these relations sets nothing here, and a row with no instant is not this reading’s
sql_enum_binding
One Java enum class some column of one catalog source binds to. For example the class generated for the mpaa_rating database type, which film.rating binds to, and equally a hand-written enum a configured converter binds a column to.
Primary key: (source_name, class_fqn). Foreign key: (source_name) references store_source (source_name).
source_name(CHARACTER VARYING, not null)-
the owning partition’s catalog source, as on sql_table; the key’s leading dimension. A class reachable from two sources is two rows, on code_class.source_name’s terms
class_fqn(CHARACTER VARYING, not null)-
the fully qualified name of the enum class, as Field.getType() reports it; the value a declared parameter type is compared against, and the reason the comparison can be an equality rather than a fold: both sides are binary names nobody wrote by hand. An array-typed column contributes no row, its bound type being the array and not the element
table_schema(CHARACTER VARYING, nullable)-
the SQL schema declaring the database enum type this class was generated for; NULL where the class names no catalog type, which is the converter-bound Java enum the table comment describes, and NULL again where it names one that is not schema-scoped. Not a foreign key into sql_schema for the first reason: that half is not a schema the walk failed to resolve, it is a row for which no schema is the right answer
type_name(CHARACTER VARYING, nullable)-
the database enum type’s own name, as the generated class reports it; NULL where the class names no catalog type, which is the wider of the two silences beside it. Carried so a reader can name the type an author would see in their database rather than only the class jOOQ generated from it
touched_at(TIMESTAMP, nullable)-
when the reading that produced this row ran. The reading finishes by deleting this source’s rows carrying a different instant, which are the tables, columns and keys the consumer’s database no longer has and which an upsert alone cannot find. Nullable because one writer of these relations sets nothing here, and a row with no instant is not this reading’s
sql_enum_binding_literal
One constant of one bound enum class, with the value the database stores for it. For example the constant PG_13 of the class generated for mpaa_rating, whose literal is PG-13.
Primary key: (source_name, class_fqn, constant_name). Foreign key: (source_name, class_fqn) references sql_enum_binding (source_name, class_fqn).
source_name(CHARACTER VARYING, not null)-
the owning partition’s catalog source, as on sql_enum_binding
class_fqn(CHARACTER VARYING, not null)-
the bound enum class, as on sql_enum_binding
constant_name(CHARACTER VARYING, not null)-
the constant’s Java name, Enum.name(); with the class, the key
literal(CHARACTER VARYING, not null)-
the value the database stores for the constant: EnumType.getLiteral() on a jOOQ-generated enum, where it differs from the name whenever the literal is not a Java identifier (PG-13 against PG_13), and the name itself on a converter-bound Java enum, which has no literal of its own and whose converter is what the column stores
ordinal(INTEGER, not null)-
the constant’s declaration position, Enum.ordinal(), so a reader lists the literals in the order the type declares them
touched_at(TIMESTAMP, nullable)-
when the reading that produced this row ran, swept with sql_enum_binding’s rows by the same reading
sql_index
One index of one table, which is the population @order(index:) and @index resolve against. For example idx_actor_last_name on public.actor.
Primary key: (source_name, table_schema, table_name, index_name). Foreign key: (source_name, table_schema, table_name) references sql_table (source_name, table_schema, table_name).
source_name(CHARACTER VARYING, not null)-
the owning partition’s catalog source, as on sql_table; the key’s leading dimension
table_schema(CHARACTER VARYING, not null)-
SQL schema the table lives in
table_name(CHARACTER VARYING, not null)-
SQL table name
index_name(CHARACTER VARYING, not null)-
SQL index name
touched_at(TIMESTAMP, nullable)-
when the reading that produced this row ran. The reading finishes by deleting this source’s rows carrying a different instant, which are the tables, columns and keys the consumer’s database no longer has and which an upsert alone cannot find. Nullable because one writer of these relations sets nothing here, and a row with no instant is not this reading’s
sql_index_column
One position in one index’s column list, naming the column that sits there. For example position 0 of idx_actor_last_name, naming last_name.
Primary key: (source_name, table_schema, table_name, index_name, position). Foreign key: (source_name, table_schema, table_name, index_name) references sql_index (source_name, table_schema, table_name, index_name).
source_name(CHARACTER VARYING, not null)-
the owning partition’s catalog source, as on sql_table; the key’s leading dimension
table_schema(CHARACTER VARYING, not null)-
SQL schema the table lives in
table_name(CHARACTER VARYING, not null)-
SQL table name
index_name(CHARACTER VARYING, not null)-
SQL index name
position(INTEGER, not null)-
0-based position in the index’s column list
column_name(CHARACTER VARYING, not null)-
SQL column name
touched_at(TIMESTAMP, nullable)-
when the reading that produced this row ran. The reading finishes by deleting this source’s rows carrying a different instant, which are the tables, columns and keys the consumer’s database no longer has and which an upsert alone cannot find. Nullable because one writer of these relations sets nothing here, and a row with no instant is not this reading’s
sql_name_matched_key_column
One column of the key that matches a table-valued function’s result to a table by column name. For example a function result exposing organisasjonskode, matched against the primary key of public.organisasjon, is one row at position 0.
Primary key: (source_name, table_schema, table_name, to_source_name, to_schema, to_table, position). Foreign key: (source_name, table_schema, table_name) references sql_table (source_name, table_schema, table_name). Foreign key: (to_source_name, to_schema, to_table) references sql_table (source_name, table_schema, table_name). Foreign key: (source_name, table_schema, table_name, column_name) references sql_column (source_name, table_schema, table_name, column_name). Foreign key: (to_source_name, to_schema, to_table, to_column) references sql_column (source_name, table_schema, table_name, column_name).
source_name(CHARACTER VARYING, not null)-
the departing function result’s catalog source, as on sql_table
table_schema(CHARACTER VARYING, not null)-
the departing function result’s SQL schema
table_name(CHARACTER VARYING, not null)-
the departing function result’s SQL name; always a table of type FUNCTION, this rule having no subject where a foreign key could be read instead
column_name(CHARACTER VARYING, not null)-
the function result’s column of the same name, which is the one the join reads. NOT NULL: a key with an unexposed column is not stated at all, so this column never carries the absence its predecessor did
to_source_name(CHARACTER VARYING, not null)-
the arriving table’s catalog source
to_schema(CHARACTER VARYING, not null)-
the arriving table’s SQL schema
to_table(CHARACTER VARYING, not null)-
the arriving table’s SQL name; a table with a primary key, which is what there is to match against
to_column(CHARACTER VARYING, not null)-
the arriving table’s primary-key column at that position
position(INTEGER, not null)-
the arriving key column’s own ordinal, copied from sql_constraint_column where the constraint declares it rather than assigned here. A join predicate does not care in which order its equalities are conjoined, so this is not what makes the pairing correct; it is what lets a consumer build a key tuple in the key’s order without going back to the constraint for one, and what gives every consumer the same order without agreeing on a tie-break
sql_node_key_column
One position in the key-columns array of a table whose node metadata graphitron can use, naming the column it resolves to. For example position 0 of a film table class’s array, naming film_id.
Primary key: (source_name, table_schema, table_name, position). Foreign key: (source_name, table_schema, table_name) references sql_node_metadata (source_name, table_schema, table_name). Foreign key: (source_name, table_schema, table_name, column_name) references sql_column (source_name, table_schema, table_name, column_name).
source_name(CHARACTER VARYING, not null)-
the owning partition’s catalog source, as on sql_table; the key’s leading dimension
table_schema(CHARACTER VARYING, not null)-
SQL schema the table lives in
table_name(CHARACTER VARYING, not null)-
SQL table name
position(INTEGER, not null)-
0-based index in the stated array, recorded rather than reconstructed: the encoded identity depends on the declared order, so a reader that recovered the order from the table’s columns or from a key would encode ids that disagree with the ones already issued
column_name(CHARACTER VARYING, not null)-
the table’s column the entry names, by its SQL name
touched_at(TIMESTAMP, nullable)-
when the reading that produced this row ran, swept with sql_node_metadata
sql_node_legacy_key_column
One position in the legacy key-columns array of a table whose node metadata graphitron can use, naming the column it resolves to. For example position 2 of an inventory table class’s __NODE_LEGACY_KEY_COLUMNS, naming last_update.
Primary key: (source_name, table_schema, table_name, position). Foreign key: (source_name, table_schema, table_name) references sql_node_metadata (source_name, table_schema, table_name). Foreign key: (source_name, table_schema, table_name, column_name) references sql_column (source_name, table_schema, table_name, column_name).
source_name(CHARACTER VARYING, not null)-
the owning partition’s catalog source, as on sql_table; the key’s leading dimension
table_schema(CHARACTER VARYING, not null)-
SQL schema the table lives in
table_name(CHARACTER VARYING, not null)-
SQL table name. The foreign key is into sql_node_metadata, so a legacy array on a class publishing no usable identity pair has no row here
position(INTEGER, not null)-
0-based index in the stated array, recorded rather than reconstructed: it is the order the values sit in inside every id issued under the old key
column_name(CHARACTER VARYING, not null)-
the table’s column the entry names, by its SQL name
touched_at(TIMESTAMP, nullable)-
when the reading that produced this row ran, swept with sql_node_metadata
sql_node_legacy_key_unreadable
One table whose generated class declares a legacy node key-columns array graphitron cannot use. For example a table class stating NODE_LEGACY_KEY_COLUMNS with a null entry, or stating it with no usable NODE_TYPE_ID and __NODE_KEY_COLUMNS beside it.
Primary key: (source_name, table_schema, table_name). Foreign key: (source_name, table_schema, table_name) references sql_table (source_name, table_schema, table_name).
source_name(CHARACTER VARYING, not null)-
the owning partition’s catalog source, as on sql_table; the key’s leading dimension
table_schema(CHARACTER VARYING, not null)-
SQL schema the table lives in
table_name(CHARACTER VARYING, not null)-
SQL table name; with the two columns above, sql_table’s key
touched_at(TIMESTAMP, nullable)-
when the reading that produced this row ran, swept with the catalog’s other rows
sql_node_metadata
One table whose generated jOOQ class publishes node-identity metadata graphitron can use. For example a film table class stating a type id of film and a key-columns array naming film_id, against a table class stating neither, which has no row here at all.
Primary key: (source_name, table_schema, table_name). Foreign key: (source_name, table_schema, table_name) references sql_table (source_name, table_schema, table_name). Check: "TYPE_ID" <> ''.
source_name(CHARACTER VARYING, not null)-
the owning partition’s catalog source, as on sql_table; the key’s leading dimension
table_schema(CHARACTER VARYING, not null)-
SQL schema the table lives in
table_name(CHARACTER VARYING, not null)-
SQL table name. With the two columns above this is sql_table’s full key: the metadata is a property of the table rather than of the class, which is why the key is the table’s and not a class name
type_id(CHARACTER VARYING, not null)-
the type id the class states, a non-empty string
touched_at(TIMESTAMP, nullable)-
when the reading that produced this row ran. The reading finishes by deleting this source’s rows carrying a different instant, which are the tables, columns and keys the consumer’s database no longer has and the metadata a class no longer publishes
sql_node_metadata_unreadable
One table whose generated class declares node-identity metadata graphitron cannot use. For example a table class stating NODE_TYPE_ID and no NODE_KEY_COLUMNS, or a key-columns array naming a column the table does not have.
Primary key: (source_name, table_schema, table_name). Foreign key: (source_name, table_schema, table_name) references sql_table (source_name, table_schema, table_name).
source_name(CHARACTER VARYING, not null)-
the owning partition’s catalog source, as on sql_table; the key’s leading dimension
table_schema(CHARACTER VARYING, not null)-
SQL schema the table lives in
table_name(CHARACTER VARYING, not null)-
SQL table name; with the two columns above, sql_table’s key
touched_at(TIMESTAMP, nullable)-
when the reading that produced this row ran, swept with the catalog’s other rows
sql_primary_key
One table’s primary key, naming the constraint that is it. For example public.film, whose primary key is the constraint film_pkey.
Primary key: (source_name, table_schema, table_name). Foreign key: (source_name, table_schema, table_name, constraint_name, constraint_type) references sql_constraint (source_name, table_schema, table_name, constraint_name, constraint_type). Check: "CONSTRAINT_TYPE" = 'PRIMARY KEY'.
source_name(CHARACTER VARYING, not null)-
the owning partition’s catalog source, as on sql_table; the key’s leading dimension
table_schema(CHARACTER VARYING, not null)-
SQL schema the table lives in
table_name(CHARACTER VARYING, not null)-
SQL table name
constraint_name(CHARACTER VARYING, not null)-
the name of the PRIMARY KEY constraint in sql_constraint
constraint_type(CHARACTER VARYING, not null)-
always PRIMARY KEY, and here only so the foreign key into sql_constraint carries the form: a row naming a unique key or a foreign key as a table’s primary key is refused by the database rather than found by a query. Defaulted, so no writer names it
touched_at(TIMESTAMP, nullable)-
when the reading that produced this row ran. The reading finishes by deleting this source’s rows carrying a different instant, which are the tables, columns and keys the consumer’s database no longer has and which an upsert alone cannot find. Nullable because one writer of these relations sets nothing here, and a row with no instant is not this reading’s
sql_referential_constraint
One foreign key’s reference to the constraint it resolves against. For example film_actor’s foreign key to film, referencing the film_pkey constraint of public.film.
Primary key: (source_name, table_schema, table_name, constraint_name). Foreign key: (source_name, table_schema, table_name, constraint_name) references sql_constraint (source_name, table_schema, table_name, constraint_name). Foreign key: (referenced_source_name, referenced_schema, referenced_table, referenced_constraint_name) references sql_constraint (source_name, table_schema, table_name, constraint_name).
source_name(CHARACTER VARYING, not null)-
the owning partition’s catalog source, as on sql_table; the key’s leading dimension
table_schema(CHARACTER VARYING, not null)-
schema of the declaring table
table_name(CHARACTER VARYING, not null)-
the declaring (source) table
constraint_name(CHARACTER VARYING, not null)-
SQL constraint name
referenced_source_name(CHARACTER VARYING, not null)-
the referenced constraint’s own catalog source: equal to source_name for the ordinary in-package reference, different exactly when a foreign key crosses schemas that codegen wrote into different packages, which the multi-schema layout produces. Part of the composite reference, since the constraint’s key leads with its source
referenced_schema(CHARACTER VARYING, not null)-
schema of the referenced constraint’s table; part of the composite reference, not a denormalisation
referenced_table(CHARACTER VARYING, not null)-
the referenced constraint’s table
referenced_constraint_name(CHARACTER VARYING, not null)-
the referenced constraint’s name
touched_at(TIMESTAMP, nullable)-
when the reading that produced this row ran. The reading finishes by deleting this source’s rows carrying a different instant, which are the tables, columns and keys the consumer’s database no longer has and which an upsert alone cannot find. Nullable because one writer of these relations sets nothing here, and a row with no instant is not this reading’s
sql_referential_constraint_column
One column of one foreign key, and the position of the referenced key it names. For example position 0 of reordered_fk_child_parent_fkey, fk_b, names position 1 of reordered_pk_parent_pkey, pk_b.
Primary key: (source_name, table_schema, table_name, constraint_name, position). Foreign key: (source_name, table_schema, table_name, constraint_name, position) references sql_constraint_column (source_name, table_schema, table_name, constraint_name, position). Foreign key: (source_name, table_schema, table_name, constraint_name, referenced_source_name, referenced_schema, referenced_table, referenced_constraint_name) references sql_referential_constraint (source_name, table_schema, table_name, constraint_name, referenced_source_name, referenced_schema, referenced_table, referenced_constraint_name). Foreign key: (referenced_source_name, referenced_schema, referenced_table, referenced_constraint_name, referenced_position) references sql_constraint_column (source_name, table_schema, table_name, constraint_name, position).
source_name(CHARACTER VARYING, not null)-
the owning partition’s catalog source, as on sql_table; the key’s leading dimension
table_schema(CHARACTER VARYING, not null)-
schema of the declaring table
table_name(CHARACTER VARYING, not null)-
the declaring (source) table
constraint_name(CHARACTER VARYING, not null)-
the foreign key’s name
position(INTEGER, not null)-
the place in the foreign key’s own column list, 0-based; with the four columns above, the foreign key’s own sql_constraint_column row
referenced_source_name(CHARACTER VARYING, not null)-
the referenced constraint’s catalog source, forwarded from sql_referential_constraint so the column can only name a position of the constraint its key references
referenced_schema(CHARACTER VARYING, not null)-
schema of the referenced constraint’s table, forwarded as the source above is
referenced_table(CHARACTER VARYING, not null)-
the referenced constraint’s table, forwarded as the source above is
referenced_constraint_name(CHARACTER VARYING, not null)-
the referenced constraint’s name, forwarded as the source above is
referenced_position(INTEGER, not null)-
the position in the referenced constraint’s own column list that this column references, which is where the REFERENCES list puts it and not, in general, this column’s own position: SQL lets that list order the key’s columns any way it likes. A position rather than a column name, so the referenced column has one answer, the referenced constraint’s own sql_constraint_column row
touched_at(TIMESTAMP, nullable)-
when the reading that produced this row ran, swept as sql_referential_constraint’s instant is
sql_referential_constraint_reach
One way a foreign key is ridden, and whether a row it leaves meets at most one row where it arrives. For example film_actor_actor_id_fkey ridden FORWARD meets one actor, and ridden BACKWARD many film_actor rows.
Primary key: (source_name, table_schema, table_name, constraint_name, direction). Foreign key: (source_name, table_schema, table_name, constraint_name) references sql_constraint (source_name, table_schema, table_name, constraint_name). Check: "DIRECTION" IN('FORWARD', 'BACKWARD').
source_name(CHARACTER VARYING, not null)-
the catalog source of the table declaring the key, as on sql_referential_constraint
table_schema(CHARACTER VARYING, not null)-
that table’s schema
table_name(CHARACTER VARYING, not null)-
the table declaring the key
constraint_name(CHARACTER VARYING, not null)-
the key’s SQL name; with the three columns before it, the key
direction(CHARACTER VARYING, not null)-
FORWARD from the declaring table to the one the key references, arriving on the referenced columns; BACKWARD the other way, arriving on the key’s own columns
to_one(BOOLEAN, not null)-
TRUE where the columns the key arrives on cover every column of some PRIMARY KEY or UNIQUE constraint of the table it arrives at, so a row it leaves meets at most one row there: FORWARD wherever the referenced key is one, BACKWARD where the key’s own columns hold a key of the declaring table
sql_routine
One callable the consumer’s catalog declares. For example the table-valued function public.films_for_actor, whose generated call surface is the Routines method filmsForActor.
Primary key: (source_name, table_schema, routine_name). Foreign key: (source_name) references store_source (source_name). Foreign key: (source_name, table_schema) references sql_schema (source_name, table_schema).
source_name(CHARACTER VARYING, not null)-
the owning partition’s catalog source, as on sql_table; the key’s leading dimension
table_schema(CHARACTER VARYING, not null)-
SQL schema the routine lives in
routine_name(CHARACTER VARYING, not null)-
SQL routine name; for a table-valued function this is also its sql_table row’s table_name, the two being one database object read two ways. The key inherits sql_table’s one hole with it: an overload set sharing a SQL name collides in both relations, jOOQ distinguishing overloads only by generated class name
routine_type(CHARACTER VARYING, not null)-
the standard’s ROUTINE_TYPE vocabulary: FUNCTION or PROCEDURE. FUNCTION for a table-valued function and for a scalar function, PROCEDURE for a routine that returns no value; a routine with a sql_table row of the same name is table-valued, one without is called through its Configuration-first method. It is the discriminator that lets the other form arrive without reshaping, which is the whole argument for a supertype relation
routines_class_fqn(CHARACTER VARYING, nullable)-
the fully qualified name of the generated Routines class carrying this routine’s call surface, or NULL when the generated model exposes none. Captured beside the method name because the parameters below are a fact about one method: jOOQ generates several forms per routine (a Configuration-first execute form, a value-parameter form, a Field-expression form), and a parameter list that did not name its method would not say which one it described. NULL here and on the method name is also what distinguishes a routine with no parameters from one whose call surface the generated model does not expose, the two being the same zero rows in sql_routine_parameter otherwise.
routines_method_name(CHARACTER VARYING, nullable)-
the Routines-class method the parameters below describe: the value-parameter form, the one an emitted FROM clause calls, for a table-valued function, and the Configuration-first execute form for a routine that is no table. NULL exactly when routines_class_fqn is
routine_name_upper(CHARACTER VARYING, nullable)-
the upper-cased form of the column beside it, for the case-insensitive match against a routine name an author writes in a configuration; generated so a reading never has to know the folding
touched_at(TIMESTAMP, nullable)-
when the reading that produced this row ran. The reading finishes by deleting this source’s rows carrying a different instant, which are the tables, columns and keys the consumer’s database no longer has and which an upsert alone cannot find. Nullable because one writer of these relations sets nothing here, and a row with no instant is not this reading’s
sql_routine_parameter
One position in one routine’s call-surface parameter list, as the generated method takes it. For example position 0 of public.films_for_actor, a java.lang.Integer the generated method names pActorId.
Primary key: (source_name, table_schema, routine_name, position). Foreign key: (source_name, table_schema, routine_name) references sql_routine (source_name, table_schema, routine_name).
source_name(CHARACTER VARYING, not null)-
the owning partition’s catalog source, as on sql_table; the key’s leading dimension
table_schema(CHARACTER VARYING, not null)-
SQL schema the routine lives in
routine_name(CHARACTER VARYING, not null)-
SQL routine name
position(INTEGER, not null)-
0-based position in the call surface’s parameter list, which is the routine’s declaration order
jooq_name(CHARACTER VARYING, not null)-
the generated method parameter’s Java name, read reflectively; jOOQ’s camelCase transform of the database’s own parameter name, and the closest this relation gets to it. Reflection reports it only when the consumer compiled their jOOQ output with -parameters, and reports arg0, arg1 otherwise. The generator already depends on that flag, matching @routine(argMapping:) against these names, so recording the name makes an existing dependency visible rather than creating one.
binding_type(CHARACTER VARYING, not null)-
the fully qualified Java type the generated method takes at this position, as on sql_column.binding_type. Unlike a column, a parameter carries no declared SQL type beside it: jOOQ generates no Routine object for a table-valued function, so the declared type survives only as an anonymous bind placeholder behind a protected field on TableImpl, and was left out rather than shipped always-null
sql_name(CHARACTER VARYING, nullable)-
the database’s own name for the parameter, read off the generated Routine class, for a routine that is no table: a name an author writes in a configuration, which jooq_name only camelCases. NULL on a table-valued function’s parameter, whose reading never asked for it
touched_at(TIMESTAMP, nullable)-
when the reading that produced this row ran. The reading finishes by deleting this source’s rows carrying a different instant, which are the tables, columns and keys the consumer’s database no longer has and which an upsert alone cannot find. Nullable because one writer of these relations sets nothing here, and a row with no instant is not this reading’s
sql_schema
One schema the consumer’s catalog declares, carrying the generated artifacts that belong to the schema rather than to any one of its tables. For example the public schema of a codegen source, naming the Keys class holding its key constants and the Tables class holding its table constants.
Primary key: (source_name, table_schema). Foreign key: (source_name) references store_source (source_name).
source_name(CHARACTER VARYING, not null)-
the catalog source the schema was read from, as on sql_table; the partition this row belongs to and the key’s leading dimension
table_schema(CHARACTER VARYING, not null)-
SQL schema name; empty string when the generated model declares no schema for its tables, which is the same fallback sql_table applies
keys_class_fqn(CHARACTER VARYING, nullable)-
the fully qualified name of the generated Keys class holding this schema’s key constants, resolved by loading it off the codegen classpath rather than by concatenating a configured package with ".Keys". The guess and the fact diverge under multi-schema layouts, where each schema gets its own Keys class in its own package. Null when the generated model carries no Keys class for the schema, which is a fact: a schema with no keys has no constants to name. Goto-definition on @reference(key:) lands in this class, so it is a join key rather than a completion nicety.
tables_class_fqn(CHARACTER VARYING, nullable)-
the fully qualified name of the generated Tables class holding this schema’s table constants, on exactly the terms the column beside it states: resolved by loading it off the codegen classpath rather than by concatenating a configured package with ".Tables", the guess and the fact diverging under multi-schema layouts where each schema gets its own Tables class in its own package. Null when the generated model carries no Tables class for the schema, which is a fact rather than a gap. This is the column that lets a reader assemble a table reference without a live catalog: every other part of one is already here or on sql_table, and the constants class was the single piece reachable only through the codegen loader, so its absence was what kept table references a walk-side construction
schema_package(CHARACTER VARYING, not null)-
the Java package the schema’s classes were generated into, the package half of the source’s name, stated so a reader wanting the package reads it rather than taking the name apart
catalog_package(CHARACTER VARYING, nullable)-
the Java package of the catalog class the schema belongs to, which is what a graph’s jooqPackage names: the column a capture finds the sources of one catalog by, one classpath entry being able to hold several catalogs. Null where jOOQ gives the schema no catalog
touched_at(TIMESTAMP, nullable)-
when the reading that produced this row ran. The reading finishes by deleting this source’s rows carrying a different instant, which are the tables, columns and keys the consumer’s database no longer has and which an upsert alone cannot find. Nullable because one writer of these relations sets nothing here, and a row with no instant is not this reading’s
sql_table
One table the consumer’s catalog declares. For example public.film, carrying the kind of object it is, the generated jOOQ table class and the record class its rows bind to.
Primary key: (source_name, table_schema, table_name). Foreign key: (source_name) references store_source (source_name). Foreign key: (source_name, table_schema) references sql_schema (source_name, table_schema).
source_name(CHARACTER VARYING, not null)-
the catalog source: the generated package the table’s schema lives in, as the classpath entry it was read from holds it, spelled entry!package; the partition this row belongs to and the key’s leading dimension, so two modules' catalogs carrying one (schema, table) coordinate coexist, and so do two builds of one package, a stale jar beside a fresh compile, instead of either reading sweeping the other’s rows. Both halves, because one entry carries every schema a codegen run produced, each in a package of its own, and one package may be built twice. One build reachable at two paths is two sources. Schemas flattened into one package (jOOQ’s outputSchemaToDefault) share a source, which is correct: they are regenerated together. A name to join on: the package is sql_schema.schema_package
table_schema(CHARACTER VARYING, not null)-
SQL schema the table lives in
table_name(CHARACTER VARYING, not null)-
SQL table name
table_type(CHARACTER VARYING, not null)-
what kind of table-like object this is, in jOOQ’s TableOptions.TableType vocabulary: TABLE, TEMPORARY, VIEW, MATERIALIZED_VIEW, FUNCTION, EXPRESSION or UNKNOWN. A property of the object every catalog states and this family recorded none of, so the store could not tell a base table from a view. FUNCTION is the value that carries weight today: it marks a table-valued function’s result, which has no primary key and no foreign keys by construction, and that one property is what every carve-out on a function-backed field turns on. A reader asking whether a name is table-valued asks this column rather than reaching back into the live catalog. The callable behind a FUNCTION row is its own subject in sql_routine, joined on the shared (source, schema, name).
jooq_name(CHARACTER VARYING, not null)-
the generated jOOQ Java field name for the table; under a family named for SQL this is the one foreign column, so the prefix marks it rather than leaving a reader to infer it
class_fqn(CHARACTER VARYING, not null)-
the fully qualified name of the generated jOOQ table class, read off the live Table during the catalog walk. Per table, unlike the Keys class name, which is per schema and lives on sql_schema. Goto-definition on @table(name:) and @field(name:) lands in this class, and the classpath census reads the generated jOOQ package’s classes as headers, without their members, so code_class holds the class by name and nothing in the code family says which table it is generated for. That is the sql family’s fact, and this column is the join key that reaches generated sources from a table.
record_class_fqn(CHARACTER VARYING, not null)-
the fully qualified name of the record class jOOQ binds this table’s rows to, read off the live Table during the catalog walk. A different fact from class_fqn beside it, and neither spells the other: that is the generated table class an author navigates to, this is the row type a producer method hands back, and the naming relation between them is jOOQ codegen configuration rather than anything the store may assume. Always present, a table always having a row type; a table jOOQ generated no record class for reports org.jooq.Record, which is the catalog’s own answer and stands as written, a reader that wants only generated records comparing against that name rather than reading a NULL. The classpath census reads the generated record class as a header, without its members, and nothing in the code family says which table a record class belongs to: that is the sql family’s fact and this column states it, so it is how a type bound to a table reaches a class name.
description(CHARACTER VARYING, nullable)-
the database comment on the table, when present
table_schema_upper(CHARACTER VARYING, nullable)-
the upper-cased form of the column beside it, for the case-insensitive match against the namespace half of an authored table or routine reference. Generated, so nothing writes it and nothing can. Fold only where an authored spelling meets a catalog name. Two values of one family are compared exactly, and a comparison that does want a fold on both sides reaches this column by joining sql_table on its key rather than by having it forwarded through a derived view
table_name_upper(CHARACTER VARYING, nullable)-
the upper-cased form of the column beside it, for the case-insensitive match against the name half of an authored table or routine reference, and against the upper-cased type name where the name argument was omitted. Generated, so nothing writes it and nothing can. Fold only where an authored spelling meets a catalog name. Two values of one family are compared exactly, and a comparison that does want a fold on both sides reaches this column by joining sql_table on its key rather than by having it forwarded through a derived view.
touched_at(TIMESTAMP, nullable)-
when the reading that produced this row ran. The reading finishes by deleting this source’s rows carrying a different instant, which are the tables, columns and keys the consumer’s database no longer has and which an upsert alone cannot find. Nullable because one writer of these relations sets nothing here, and a row with no instant is not this reading’s
sql_table_field
One field one table’s generated class declares, a column or an embeddable, which jOOQ reads and writes as one typed value. For example film.title, a column whose value is a String, and period on public.embedded_period, an embeddable whose value is its record.
Primary key: (source_name, table_schema, table_name, field_name). Foreign key: (source_name, table_schema, table_name) references sql_table (source_name, table_schema, table_name). Check: "KIND" IN('COLUMN', 'EMBEDDABLE').
source_name(CHARACTER VARYING, not null)-
the owning partition’s catalog source, as on sql_table; the key’s leading dimension
table_schema(CHARACTER VARYING, not null)-
SQL schema the table lives in
table_name(CHARACTER VARYING, not null)-
SQL table name
field_name(CHARACTER VARYING, not null)-
the field’s name: a column’s SQL name, or the embeddable’s name, which names no column of the table. A field of the generated table class, a jOOQ TableField, not a GraphQL field
kind(CHARACTER VARYING, not null)-
COLUMN, one database column, its SQL facts on sql_column; or EMBEDDABLE, a group of columns jOOQ’s code generator was configured to read and write as one record, its columns on sql_embeddable_column
jooq_name(CHARACTER VARYING, not null)-
the generated table class’s field for it, the name an author’s spelling is read against where no SQL name answers
binding_type(CHARACTER VARYING, not null)-
the Java class of the field’s value: a column’s bound type, or an embeddable’s generated record class, which a comparison or an assignment on the field is typed by
field_name_upper(CHARACTER VARYING, nullable)-
the field name upper-cased, the fold an authored spelling meets it under
jooq_name_upper(CHARACTER VARYING, nullable)-
the generated field’s name upper-cased, the fold an authored spelling meets it under
touched_at(TIMESTAMP, nullable)-
when the reading that produced this row ran. The reading finishes by deleting this source’s rows carrying a different instant, which are the tables, columns and keys the consumer’s database no longer has and which an upsert alone cannot find. Nullable because one writer of these relations sets nothing here, and a row with no instant is not this reading’s
sql_table_record_supertype
Every type a table’s generated jOOQ record is, itself excluded: the superclass chain above the record class and every interface it or they implement, transitively. For example public.customer’s CustomerRecord being an UpdatableRecordImpl, an UpdatableRecord, a TableRecord and a Record. Captured rather than derived, which is the one thing about this relation a reader has to know before reading it: the catalog family reads no classfiles, and the supertype edges the code family states, code_class_declared_supertype, are another gatherer’s and stop wherever a graph reads no jOOQ runtime. The catalog walk holds the record Class itself, Table.getRecordType() being what sql_table.record_class_fqn is read from, so its declared ancestry is one more fact off a class the walk already has. It holds the closure and not the edges, and the reason is the same fact: the chain above a generated record runs through jOOQ’s own runtime classes, which are not tables, so the catalog family holds no edges a closure could be recomputed from. What a reader wanting to climb any other class asks is the code family: the edges each class declares, read per entry, and whether the graph’s copy of a class is a jOOQ record, decided per graph on code_graph_class.is_jooq_record. For a table’s own record the two converge on one answer wherever the graph reads the jOOQ runtime; this relation is the catalog’s side of it and changes nothing there. java.lang.Object is a row here, where a relation of declared edges would have left it out to keep itself to what the source wrote: this states what the class is rather than what it declared, and a record is an Object, which is also what a live Class.isAssignableFrom says. Absent for a table jOOQ generated no record for, the catalog answering org.jooq.Record there, which is no record class rather than a record named that.
Primary key: (source_name, table_schema, table_name, supertype_name). Foreign key: (source_name, table_schema, table_name) references sql_table (source_name, table_schema, table_name).
source_name(CHARACTER VARYING, not null)-
the catalog source the table was read from, as on sql_table; the key’s leading dimension and the refresh unit the whole sql_ family is scoped by
table_schema(CHARACTER VARYING, not null)-
the table’s SQL schema, as on sql_table
table_name(CHARACTER VARYING, not null)-
the table’s SQL name, as on sql_table; with the two columns above, the table whose record class this row is about. Keyed on the table rather than on the record class, so the row is deleted with its table and no reader has to reconcile two spellings of one identity
supertype_name(CHARACTER VARYING, not null)-
the fully-qualified binary name of one type the record class is, a nested one spelled with the $ the JVM uses, and spelled the way the reading spells a class name so a declared parameter type compares to it exactly. Every element of the closure and not only the declared parents, the relation holding a closure for the reason its own comment gives; the record class itself is deliberately not a row, a reader asking about it holding sql_table.record_class_fqn already. Frequently not a class the catalog walk reached and never a foreign key: the catalog family reads no classfiles, which is what makes capturing this necessary rather than derivable here
sql_table_reference
One ordered pair of tables at least one foreign key connects, and how many connect it. For example film_actor to film is one row saying 1, and a pair two foreign keys join is one row saying 2.
Primary key: (source_name, table_schema, table_name, referenced_source_name, referenced_schema, referenced_table).
source_name(CHARACTER VARYING, not null)-
the declaring table’s catalog source, as on sql_table; the key’s leading dimension
table_schema(CHARACTER VARYING, not null)-
schema of the declaring table, the end the foreign keys sit on
table_name(CHARACTER VARYING, not null)-
the declaring table’s SQL name
referenced_source_name(CHARACTER VARYING, not null)-
the referenced table’s own catalog source, equal to source_name for the ordinary in-package reference and different exactly where a foreign key crosses schemas codegen wrote into different packages
referenced_schema(CHARACTER VARYING, not null)-
schema of the referenced table
referenced_table(CHARACTER VARYING, not null)-
the referenced table’s SQL name. The pair is ordered: the declaring end and the referenced end are not interchangeable, and a pair keyed the other way round is a different row or no row at all
constraints(INTEGER, not null)-
how many foreign keys connect the pair in this direction; 1 where the route between the two tables is unambiguous, which is what a reader discovering a key rather than naming one tests for. Counted here rather than by each reader, because a reader that counts is a per-row aggregate over the census and this is a fact about the catalog that does not vary with who asks
touched_at(TIMESTAMP, not null)-
when the reading that produced this row ran, on sql_referential_constraint’s terms: the reading finishes by deleting this source’s rows carrying a different instant. NOT NULL where that relation’s is nullable, this one having exactly one writer, and load-bearing rather than tidy: a pair row that outlives the foreign key it counted says 1 about a pair with none, which is the arm a discovering reader takes