Documentation
¶
Overview ¶
Package datarolesfile keeps a local project's data-role classifications at <project>/datatug-data-roles.json (dataroles.FileName), beside the Meaning Graph labels of meaninglabelsfile. Only confirmed entries take effect.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Collections ¶
func Collections(schema *api.CatalogSchema, foreignKeys []datatug.TableForeignKeys, indexes []datatug.TableIndexes) []dataroles.Collection
Collections is the schema-only shape of a DB model's stored tables for dataroles.Suggest: columns with their primary-key flag (the columns file's pkPosition) and single-column unique flag (the model's indexes file), and counts of the foreign keys each table holds and receives (the model's foreign-keys file). It reads no record values. Views are left out: they hold no data of their own.
Types ¶
Click to show internal directories.
Click to hide internal directories.