resolveUnqualifiedReference method

List<Column> resolveUnqualifiedReference(
  1. String columnName, {
  2. bool allowReferenceToResultColumn = false,
})

Attempts to resolve an unqualified reference from a columnName.

In sqlite, an ORDER BY column may refer to aliases of result columns in the current statement: SELECT foo AS bar FROM tbl ORDER BY bar is legal, but SELECT foo AS bar FROM tbl WHERE bar < 10 is not. To control whether result columns may be resolved, the allowReferenceToResultColumn flag can be enabled.

If an empty list is returned, the reference couldn't be resolved. If the returned list contains more than one column, the lookup is ambigious.

Implementation

List<Column> resolveUnqualifiedReference(String columnName,
        {bool allowReferenceToResultColumn = false}) =>
    const [];