schema library
Reads table and view shapes from SQL Server's catalog views.
The generator, the schema drift check and any later tooling all start by asking what a table looks like, so this is public API rather than a private detail of any one of them.
Classes
- MssqlColumnSchema
- MssqlForeignKeySchema
- MssqlPrimaryKeySchema
- MssqlSchemaReader
- Reads table and view shapes from SQL Server's catalog views.
- MssqlSchemaSnapshot
- A database's shape, written to a file, so that generating code does not need a live database.
- MssqlTableSchema
- What a table or view is made of, as SQL Server reports it.
- MssqlTriggerSchema
- A trigger, with the timing and events that decide what a write can read back.
- MssqlUniqueKeySchema
- A unique index or constraint.
Constants
-
textOnlySqlTypes
→ const Set<
String> -
Types the driver has no dedicated model for, which
dbconvertreturns as their canonical text.
Functions
-
fingerprintOf(
MssqlTableSchema table) → String - A stable digest of the parts of a table that generated code depends on.
-
mssqlTypeForSqlTypeName(
String sqlTypeName) → MssqlType? -
The driver's classification of
sqlTypeName, or null if nothing here recognises it.