SchemaCache Type
Record fields
| Record Field |
Description
|
Full Usage:
ColumnDescriptions
Field type: ConcurrentDictionary<string, ConcurrentDictionary<string, string>>
|
Column descriptions (comments) for tooltips, by table name and column name. Saved like TableDescriptions.
|
|
|
Full Usage:
Individuals
Field type: ConcurrentDictionary<string, (obj * IDictionary<string, obj>) array>
|
|
Full Usage:
IsOffline
Field type: bool
|
|
|
|
|
|
Full Usage:
Relationships
Field type: ConcurrentDictionary<string, (Relationship array * Relationship array)>
|
|
|
|
|
|
|
Table descriptions (comments) for tooltips, by table name. Saved in their own file (SaveDescriptions), not in the schema file.
|
|
|
Instance members
| Instance member |
Description
|
Full Usage:
this.HasDescriptions
Returns: bool
|
|
Full Usage:
this.HasIndividuals
Returns: bool
|
|
Full Usage:
this.LoadDescriptions
Parameters:
string
|
Reads the descriptions file beside the schema file, if there is one. Descriptions already read are kept.
|
Full Usage:
this.LoadIndividuals
Parameters:
string
|
Reads the individuals file beside the schema file, if there is one. Its individuals replace the same tables' older ones.
|
Full Usage:
this.Save
Parameters:
string
|
Saves the schema, and the descriptions and the individuals read so far to their own files. Individuals are not in the schema file, and each table is in the individuals file once: see SaveIndividuals.
|
Full Usage:
this.SaveDescriptions
Parameters:
string
Returns: string option
|
Saves the descriptions to the descriptions file beside the schema file and returns its path; None when there are none. Descriptions already in the file are kept unless read again, so a save of the parts used so far doesn't drop the others.
|
Full Usage:
this.SaveIndividuals
Parameters:
string
Returns: string
|
Saves the individuals to the individuals file beside the schema file and returns its path. A table read now replaces its individuals in the file, and the file's other tables are kept, so a table is there once. Tables without individuals are left out.
|
Full Usage:
this.TryFindByTable
Parameters:
ConcurrentDictionary<string, 'T>
table : Table
Returns: 'T option
Type parameters: 'T |
The entry of a table in Columns, PrimaryKeys or Relationships. Not every provider keys these by the table's FullName: MySQL and DuckDB key them, and Tables, by a quoted name, Firebird by the name alone, and Oracle its primary keys by the name alone.
|
Static members
| Static member |
Description
|
Full Usage:
SchemaCache.DescriptionsFilePath(filePath)
Parameters:
string
Returns: string
|
Descriptions are saved beside the schema file: schema.json -> schema.descriptions.json
|
|
|
Full Usage:
SchemaCache.IndividualsFilePath(filePath)
Parameters:
string
Returns: string
|
Individuals are saved beside the schema file: schema.json -> schema.individuals.json
|
|
|
|
|