SQLProvider

SchemaCache Type

Record fields

Record Field Description

ColumnDescriptions

Full Usage: ColumnDescriptions

Field type: ConcurrentDictionary<string, ConcurrentDictionary<string, string>>

Column descriptions (comments) for tooltips, by table name and column name. Saved like TableDescriptions.

Field type: ConcurrentDictionary<string, ConcurrentDictionary<string, string>>

Columns

Full Usage: Columns

Field type: ConcurrentDictionary<string, ColumnLookup>
Field type: ConcurrentDictionary<string, ColumnLookup>

Individuals

Full Usage: Individuals

Field type: ConcurrentDictionary<string, (obj * IDictionary<string, obj>) array>
Field type: ConcurrentDictionary<string, (obj * IDictionary<string, obj>) array>

IsOffline

Full Usage: IsOffline

Field type: bool
Field type: bool

Packages

Full Usage: Packages

Field type: ResizeArray<CompileTimeSprocDefinition>
Field type: ResizeArray<CompileTimeSprocDefinition>

PrimaryKeys

Full Usage: PrimaryKeys

Field type: ConcurrentDictionary<string, string list>
Field type: ConcurrentDictionary<string, string list>

Relationships

Full Usage: Relationships

Field type: ConcurrentDictionary<string, (Relationship array * Relationship array)>
Field type: ConcurrentDictionary<string, (Relationship array * Relationship array)>

Sprocs

Full Usage: Sprocs

Field type: ResizeArray<Sproc>
Field type: ResizeArray<Sproc>

SprocsParams

Full Usage: SprocsParams

Field type: ConcurrentDictionary<string, QueryParameter list>
Field type: ConcurrentDictionary<string, QueryParameter list>

TableDescriptions

Full Usage: TableDescriptions

Field type: ConcurrentDictionary<string, string>

Table descriptions (comments) for tooltips, by table name. Saved in their own file (SaveDescriptions), not in the schema file.

Field type: ConcurrentDictionary<string, string>

Tables

Full Usage: Tables

Field type: ConcurrentDictionary<string, Table>
Field type: ConcurrentDictionary<string, Table>

Instance members

Instance member Description

this.HasDescriptions

Full Usage: this.HasDescriptions

Returns: bool
Returns: bool

this.HasIndividuals

Full Usage: this.HasIndividuals

Returns: bool
Returns: bool

this.LoadDescriptions

Full Usage: this.LoadDescriptions

Parameters:
    filePath : string

Reads the descriptions file beside the schema file, if there is one. Descriptions already read are kept.

filePath : string

this.LoadIndividuals

Full Usage: this.LoadIndividuals

Parameters:
    filePath : string

Reads the individuals file beside the schema file, if there is one. Its individuals replace the same tables' older ones.

filePath : string

this.Save

Full Usage: this.Save

Parameters:
    filePath : 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.

filePath : string

this.SaveDescriptions

Full Usage: this.SaveDescriptions

Parameters:
    filePath : 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.

filePath : string
Returns: string option

this.SaveIndividuals

Full Usage: this.SaveIndividuals

Parameters:
    filePath : 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.

filePath : string
Returns: string

this.TryFindByTable

Full Usage: this.TryFindByTable

Parameters:
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.

entries : ConcurrentDictionary<string, 'T>
table : Table
Returns: 'T option

Static members

Static member Description

SchemaCache.DescriptionsFilePath(filePath)

Full Usage: SchemaCache.DescriptionsFilePath(filePath)

Parameters:
    filePath : string

Returns: string

Descriptions are saved beside the schema file: schema.json -> schema.descriptions.json

filePath : string
Returns: string

SchemaCache.Empty

Full Usage: SchemaCache.Empty

Returns: SchemaCache
Returns: SchemaCache

SchemaCache.IndividualsFilePath(filePath)

Full Usage: SchemaCache.IndividualsFilePath(filePath)

Parameters:
    filePath : string

Returns: string

Individuals are saved beside the schema file: schema.json -> schema.individuals.json

filePath : string
Returns: string

SchemaCache.Load(filePath)

Full Usage: SchemaCache.Load(filePath)

Parameters:
    filePath : string

Returns: SchemaCache
filePath : string
Returns: SchemaCache

SchemaCache.LoadOrEmpty(filePath)

Full Usage: SchemaCache.LoadOrEmpty(filePath)

Parameters:
    filePath : string

Returns: SchemaCache
filePath : string
Returns: SchemaCache

Type something to start searching.