diff --git a/moor/lib/src/runtime/query_builder/schema/table_info.dart b/moor/lib/src/runtime/query_builder/schema/table_info.dart index 28caf637..1fce4fd4 100644 --- a/moor/lib/src/runtime/query_builder/schema/table_info.dart +++ b/moor/lib/src/runtime/query_builder/schema/table_info.dart @@ -76,6 +76,8 @@ mixin TableInfo on Table return map(rawValues); } + /// Creates an alias of this table that will write the name [alias] when used + /// in a query. TableInfo createAlias(String alias); @override diff --git a/moor/lib/src/runtime/query_builder/statements/query.dart b/moor/lib/src/runtime/query_builder/statements/query.dart index 60f82bd4..4bd98307 100644 --- a/moor/lib/src/runtime/query_builder/statements/query.dart +++ b/moor/lib/src/runtime/query_builder/statements/query.dart @@ -151,6 +151,7 @@ class _MappedSelectable extends Selectable { List _mapResults(List results) => results.map(_mapper).toList(); } +/// Mixin for a [Query] that operates on a single primary table only. mixin SingleTableQueryMixin on Query { /// Makes this statement only include rows that match the [filter]. diff --git a/sqlparser/lib/src/reader/parser/parser.dart b/sqlparser/lib/src/reader/parser/parser.dart index 20b02f8e..debbc0c6 100644 --- a/sqlparser/lib/src/reader/parser/parser.dart +++ b/sqlparser/lib/src/reader/parser/parser.dart @@ -164,6 +164,7 @@ abstract class ParserBase { /// Parses a [Tuple]. If [orSubQuery] is set (defaults to false), a [SubQuery] /// (in brackets) will be accepted as well. + // ignore: unused_element Expression _consumeTuple({bool orSubQuery = false}); /// Parses a [BaseSelectStatement], which is either a [SelectStatement] or a diff --git a/tool/Dockerfile b/tool/Dockerfile index 2a8c730d..110bc63a 100644 --- a/tool/Dockerfile +++ b/tool/Dockerfile @@ -14,4 +14,4 @@ RUN echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | RUN apt-get update && apt-get install -y --no-install-recommends -q libsqlite3-dev dart # We ocassionally have to change this file to manually trigger rebuilds in the CI. Particularly, after a new Dart SDK -# version is out. Prefer to use Dart 2.9 or above. \ No newline at end of file +# version is out. Prefer to use Dart 2.10 or above. \ No newline at end of file