MssqlSource.parts constructor

MssqlSource.parts(
  1. List<String> parts, {
  2. String? alias,
  3. MssqlSourceRef? ref,
})

A source whose parts are already separated.

MssqlSource.new parses a dotted string, which cannot represent a table whose own name carries a dot or a space: dbo.Order Lines is not a legal unquoted identifier, so re-parsing it would reject a table that exists. Anything already holding the parts — a binding above all — comes through here instead.

Implementation

MssqlSource.parts(List<String> parts, {this.alias, this.ref})
  : quoted = MssqlSql.quoteMultipartIdentifier(parts),
    query = null {
  if (alias != null) MssqlSql.quoteIdentifier(alias!);
}