MssqlColumnBase.inSource constructor
const
MssqlColumnBase.inSource({
- required MssqlSourceRef source,
- required String name,
- required String quotedName,
A column that belongs to a source and is qualified while the query is compiled, rather than when the column is declared.
This is what generated code emits. The alias a query gives the table, or the schema a tenant points it at, is not knowable when the column is declared; a column that had baked its qualifier in would go on naming the table it was generated from, which is a source the query may not even have.
Implementation
const MssqlColumnBase.inSource({
required MssqlSourceRef this.source,
required this.name,
required String quotedName,
}) : _quoted = null,
_quotedName = quotedName;