mirror of https://github.com/AMT-Cheif/drift.git
Fix analysis errors from deprecated engine constructor
This commit is contained in:
parent
2f40e38484
commit
b6b5e7f7c2
|
@ -7,7 +7,7 @@ import 'package:test/test.dart';
|
|||
import '../utils.dart';
|
||||
|
||||
void main() {
|
||||
final engine = SqlEngine(useMoorExtensions: true);
|
||||
final engine = SqlEngine.withOptions(EngineOptions(useMoorExtensions: true));
|
||||
final mapper = TypeMapper();
|
||||
|
||||
test('warns when a result column is unresolved', () {
|
||||
|
|
|
@ -24,7 +24,7 @@ CREATE TABLE bar (
|
|||
|
||||
void main() {
|
||||
final mapper = TypeMapper();
|
||||
final engine = SqlEngine(useMoorExtensions: true);
|
||||
final engine = SqlEngine.withOptions(EngineOptions(useMoorExtensions: true));
|
||||
final step = ParseMoorStep(
|
||||
Task(null, null, null), FoundFile(Uri.parse('foo'), FileType.moor), '');
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ final Table table =
|
|||
Table(name: 'todos', resolvedColumns: [_idColumn, _titleColumn]);
|
||||
|
||||
void main() {
|
||||
final engine = SqlEngine()..registerTable(table);
|
||||
final engine = SqlEngine.withOptions(EngineOptions(useMoorExtensions: true));
|
||||
final mapper = TypeMapper();
|
||||
|
||||
test('extracts variables and sorts them by index', () {
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
../analysis_options.yaml
|
|
@ -0,0 +1,5 @@
|
|||
include: ../analysis_options.yaml
|
||||
|
||||
analyzer:
|
||||
errors:
|
||||
deprecated_member_use_from_same_package: ignore
|
Loading…
Reference in New Issue