mirror of https://github.com/AMT-Cheif/drift.git
Ignore lints in generated schema code
This commit is contained in:
parent
cd83f81e2a
commit
adc2e22c46
|
@ -186,7 +186,8 @@ class GenerateUtilsCommand extends Command {
|
||||||
|
|
||||||
static final _filenames = RegExp(r'(?:moor|drift)_schema_v(\d+)\.json');
|
static final _filenames = RegExp(r'(?:moor|drift)_schema_v(\d+)\.json');
|
||||||
static final _dartfmt = DartFormatter();
|
static final _dartfmt = DartFormatter();
|
||||||
static const _prefix = '// GENERATED CODE, DO NOT EDIT BY HAND.';
|
static const _prefix = '// GENERATED CODE, DO NOT EDIT BY HAND.\n'
|
||||||
|
'// ignore_for_file: type=lint';
|
||||||
}
|
}
|
||||||
|
|
||||||
class _ExportedSchema {
|
class _ExportedSchema {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// GENERATED CODE, DO NOT EDIT BY HAND.
|
// GENERATED CODE, DO NOT EDIT BY HAND.
|
||||||
|
// ignore_for_file: type=lint
|
||||||
//@dart=2.12
|
//@dart=2.12
|
||||||
import 'package:drift/drift.dart';
|
import 'package:drift/drift.dart';
|
||||||
import 'package:drift/internal/migrations.dart';
|
import 'package:drift/internal/migrations.dart';
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// GENERATED CODE, DO NOT EDIT BY HAND.
|
// GENERATED CODE, DO NOT EDIT BY HAND.
|
||||||
|
// ignore_for_file: type=lint
|
||||||
//@dart=2.12
|
//@dart=2.12
|
||||||
import 'package:drift/drift.dart';
|
import 'package:drift/drift.dart';
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// GENERATED CODE, DO NOT EDIT BY HAND.
|
// GENERATED CODE, DO NOT EDIT BY HAND.
|
||||||
|
// ignore_for_file: type=lint
|
||||||
//@dart=2.12
|
//@dart=2.12
|
||||||
import 'package:drift/drift.dart';
|
import 'package:drift/drift.dart';
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// GENERATED CODE, DO NOT EDIT BY HAND.
|
// GENERATED CODE, DO NOT EDIT BY HAND.
|
||||||
|
// ignore_for_file: type=lint
|
||||||
//@dart=2.12
|
//@dart=2.12
|
||||||
import 'package:drift/drift.dart';
|
import 'package:drift/drift.dart';
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// GENERATED CODE, DO NOT EDIT BY HAND.
|
// GENERATED CODE, DO NOT EDIT BY HAND.
|
||||||
|
// ignore_for_file: type=lint
|
||||||
//@dart=2.12
|
//@dart=2.12
|
||||||
import 'package:drift/drift.dart';
|
import 'package:drift/drift.dart';
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// GENERATED CODE, DO NOT EDIT BY HAND.
|
// GENERATED CODE, DO NOT EDIT BY HAND.
|
||||||
|
// ignore_for_file: type=lint
|
||||||
//@dart=2.12
|
//@dart=2.12
|
||||||
import 'package:drift/drift.dart';
|
import 'package:drift/drift.dart';
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// GENERATED CODE, DO NOT EDIT BY HAND.
|
// GENERATED CODE, DO NOT EDIT BY HAND.
|
||||||
|
// ignore_for_file: type=lint
|
||||||
//@dart=2.12
|
//@dart=2.12
|
||||||
import 'package:drift/drift.dart';
|
import 'package:drift/drift.dart';
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// GENERATED CODE, DO NOT EDIT BY HAND.
|
// GENERATED CODE, DO NOT EDIT BY HAND.
|
||||||
|
// ignore_for_file: type=lint
|
||||||
//@dart=2.12
|
//@dart=2.12
|
||||||
import 'package:drift/drift.dart';
|
import 'package:drift/drift.dart';
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// GENERATED CODE, DO NOT EDIT BY HAND.
|
// GENERATED CODE, DO NOT EDIT BY HAND.
|
||||||
|
// ignore_for_file: type=lint
|
||||||
//@dart=2.12
|
//@dart=2.12
|
||||||
import 'package:drift/drift.dart';
|
import 'package:drift/drift.dart';
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// GENERATED CODE, DO NOT EDIT BY HAND.
|
// GENERATED CODE, DO NOT EDIT BY HAND.
|
||||||
|
// ignore_for_file: type=lint
|
||||||
//@dart=2.12
|
//@dart=2.12
|
||||||
import 'package:drift/drift.dart';
|
import 'package:drift/drift.dart';
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// GENERATED CODE, DO NOT EDIT BY HAND.
|
// GENERATED CODE, DO NOT EDIT BY HAND.
|
||||||
|
// ignore_for_file: type=lint
|
||||||
//@dart=2.12
|
//@dart=2.12
|
||||||
import 'package:drift/drift.dart';
|
import 'package:drift/drift.dart';
|
||||||
import 'package:drift/internal/migrations.dart';
|
import 'package:drift/internal/migrations.dart';
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// GENERATED CODE, DO NOT EDIT BY HAND.
|
// GENERATED CODE, DO NOT EDIT BY HAND.
|
||||||
|
// ignore_for_file: type=lint
|
||||||
//@dart=2.12
|
//@dart=2.12
|
||||||
import 'package:drift/drift.dart';
|
import 'package:drift/drift.dart';
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// GENERATED CODE, DO NOT EDIT BY HAND.
|
// GENERATED CODE, DO NOT EDIT BY HAND.
|
||||||
|
// ignore_for_file: type=lint
|
||||||
//@dart=2.12
|
//@dart=2.12
|
||||||
import 'package:drift/drift.dart';
|
import 'package:drift/drift.dart';
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// GENERATED CODE, DO NOT EDIT BY HAND.
|
// GENERATED CODE, DO NOT EDIT BY HAND.
|
||||||
|
// ignore_for_file: type=lint
|
||||||
//@dart=2.12
|
//@dart=2.12
|
||||||
import 'package:drift/drift.dart';
|
import 'package:drift/drift.dart';
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// GENERATED CODE, DO NOT EDIT BY HAND.
|
// GENERATED CODE, DO NOT EDIT BY HAND.
|
||||||
|
// ignore_for_file: type=lint
|
||||||
//@dart=2.12
|
//@dart=2.12
|
||||||
import 'package:drift/drift.dart';
|
import 'package:drift/drift.dart';
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// GENERATED CODE, DO NOT EDIT BY HAND.
|
// GENERATED CODE, DO NOT EDIT BY HAND.
|
||||||
|
// ignore_for_file: type=lint
|
||||||
//@dart=2.12
|
//@dart=2.12
|
||||||
import 'package:drift/drift.dart';
|
import 'package:drift/drift.dart';
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// GENERATED CODE, DO NOT EDIT BY HAND.
|
// GENERATED CODE, DO NOT EDIT BY HAND.
|
||||||
|
// ignore_for_file: type=lint
|
||||||
//@dart=2.12
|
//@dart=2.12
|
||||||
import 'package:drift/drift.dart';
|
import 'package:drift/drift.dart';
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// GENERATED CODE, DO NOT EDIT BY HAND.
|
// GENERATED CODE, DO NOT EDIT BY HAND.
|
||||||
|
// ignore_for_file: type=lint
|
||||||
//@dart=2.12
|
//@dart=2.12
|
||||||
import 'package:drift/drift.dart';
|
import 'package:drift/drift.dart';
|
||||||
|
|
||||||
|
@ -701,15 +702,18 @@ class NotesCompanion extends UpdateCompanion<NotesData> {
|
||||||
final Value<String> title;
|
final Value<String> title;
|
||||||
final Value<String> content;
|
final Value<String> content;
|
||||||
final Value<String> searchTerms;
|
final Value<String> searchTerms;
|
||||||
|
final Value<int> rowid;
|
||||||
const NotesCompanion({
|
const NotesCompanion({
|
||||||
this.title = const Value.absent(),
|
this.title = const Value.absent(),
|
||||||
this.content = const Value.absent(),
|
this.content = const Value.absent(),
|
||||||
this.searchTerms = const Value.absent(),
|
this.searchTerms = const Value.absent(),
|
||||||
|
this.rowid = const Value.absent(),
|
||||||
});
|
});
|
||||||
NotesCompanion.insert({
|
NotesCompanion.insert({
|
||||||
required String title,
|
required String title,
|
||||||
required String content,
|
required String content,
|
||||||
required String searchTerms,
|
required String searchTerms,
|
||||||
|
this.rowid = const Value.absent(),
|
||||||
}) : title = Value(title),
|
}) : title = Value(title),
|
||||||
content = Value(content),
|
content = Value(content),
|
||||||
searchTerms = Value(searchTerms);
|
searchTerms = Value(searchTerms);
|
||||||
|
@ -717,22 +721,26 @@ class NotesCompanion extends UpdateCompanion<NotesData> {
|
||||||
Expression<String>? title,
|
Expression<String>? title,
|
||||||
Expression<String>? content,
|
Expression<String>? content,
|
||||||
Expression<String>? searchTerms,
|
Expression<String>? searchTerms,
|
||||||
|
Expression<int>? rowid,
|
||||||
}) {
|
}) {
|
||||||
return RawValuesInsertable({
|
return RawValuesInsertable({
|
||||||
if (title != null) 'title': title,
|
if (title != null) 'title': title,
|
||||||
if (content != null) 'content': content,
|
if (content != null) 'content': content,
|
||||||
if (searchTerms != null) 'search_terms': searchTerms,
|
if (searchTerms != null) 'search_terms': searchTerms,
|
||||||
|
if (rowid != null) 'rowid': rowid,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
NotesCompanion copyWith(
|
NotesCompanion copyWith(
|
||||||
{Value<String>? title,
|
{Value<String>? title,
|
||||||
Value<String>? content,
|
Value<String>? content,
|
||||||
Value<String>? searchTerms}) {
|
Value<String>? searchTerms,
|
||||||
|
Value<int>? rowid}) {
|
||||||
return NotesCompanion(
|
return NotesCompanion(
|
||||||
title: title ?? this.title,
|
title: title ?? this.title,
|
||||||
content: content ?? this.content,
|
content: content ?? this.content,
|
||||||
searchTerms: searchTerms ?? this.searchTerms,
|
searchTerms: searchTerms ?? this.searchTerms,
|
||||||
|
rowid: rowid ?? this.rowid,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -748,6 +756,9 @@ class NotesCompanion extends UpdateCompanion<NotesData> {
|
||||||
if (searchTerms.present) {
|
if (searchTerms.present) {
|
||||||
map['search_terms'] = Variable<String>(searchTerms.value);
|
map['search_terms'] = Variable<String>(searchTerms.value);
|
||||||
}
|
}
|
||||||
|
if (rowid.present) {
|
||||||
|
map['rowid'] = Variable<int>(rowid.value);
|
||||||
|
}
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -756,7 +767,8 @@ class NotesCompanion extends UpdateCompanion<NotesData> {
|
||||||
return (StringBuffer('NotesCompanion(')
|
return (StringBuffer('NotesCompanion(')
|
||||||
..write('title: $title, ')
|
..write('title: $title, ')
|
||||||
..write('content: $content, ')
|
..write('content: $content, ')
|
||||||
..write('searchTerms: $searchTerms')
|
..write('searchTerms: $searchTerms, ')
|
||||||
|
..write('rowid: $rowid')
|
||||||
..write(')'))
|
..write(')'))
|
||||||
.toString();
|
.toString();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// GENERATED CODE, DO NOT EDIT BY HAND.
|
// GENERATED CODE, DO NOT EDIT BY HAND.
|
||||||
|
// ignore_for_file: type=lint
|
||||||
//@dart=2.12
|
//@dart=2.12
|
||||||
import 'package:drift/drift.dart';
|
import 'package:drift/drift.dart';
|
||||||
|
|
||||||
|
@ -705,15 +706,18 @@ class NotesCompanion extends UpdateCompanion<NotesData> {
|
||||||
final Value<String> title;
|
final Value<String> title;
|
||||||
final Value<String> content;
|
final Value<String> content;
|
||||||
final Value<String> searchTerms;
|
final Value<String> searchTerms;
|
||||||
|
final Value<int> rowid;
|
||||||
const NotesCompanion({
|
const NotesCompanion({
|
||||||
this.title = const Value.absent(),
|
this.title = const Value.absent(),
|
||||||
this.content = const Value.absent(),
|
this.content = const Value.absent(),
|
||||||
this.searchTerms = const Value.absent(),
|
this.searchTerms = const Value.absent(),
|
||||||
|
this.rowid = const Value.absent(),
|
||||||
});
|
});
|
||||||
NotesCompanion.insert({
|
NotesCompanion.insert({
|
||||||
required String title,
|
required String title,
|
||||||
required String content,
|
required String content,
|
||||||
required String searchTerms,
|
required String searchTerms,
|
||||||
|
this.rowid = const Value.absent(),
|
||||||
}) : title = Value(title),
|
}) : title = Value(title),
|
||||||
content = Value(content),
|
content = Value(content),
|
||||||
searchTerms = Value(searchTerms);
|
searchTerms = Value(searchTerms);
|
||||||
|
@ -721,22 +725,26 @@ class NotesCompanion extends UpdateCompanion<NotesData> {
|
||||||
Expression<String>? title,
|
Expression<String>? title,
|
||||||
Expression<String>? content,
|
Expression<String>? content,
|
||||||
Expression<String>? searchTerms,
|
Expression<String>? searchTerms,
|
||||||
|
Expression<int>? rowid,
|
||||||
}) {
|
}) {
|
||||||
return RawValuesInsertable({
|
return RawValuesInsertable({
|
||||||
if (title != null) 'title': title,
|
if (title != null) 'title': title,
|
||||||
if (content != null) 'content': content,
|
if (content != null) 'content': content,
|
||||||
if (searchTerms != null) 'search_terms': searchTerms,
|
if (searchTerms != null) 'search_terms': searchTerms,
|
||||||
|
if (rowid != null) 'rowid': rowid,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
NotesCompanion copyWith(
|
NotesCompanion copyWith(
|
||||||
{Value<String>? title,
|
{Value<String>? title,
|
||||||
Value<String>? content,
|
Value<String>? content,
|
||||||
Value<String>? searchTerms}) {
|
Value<String>? searchTerms,
|
||||||
|
Value<int>? rowid}) {
|
||||||
return NotesCompanion(
|
return NotesCompanion(
|
||||||
title: title ?? this.title,
|
title: title ?? this.title,
|
||||||
content: content ?? this.content,
|
content: content ?? this.content,
|
||||||
searchTerms: searchTerms ?? this.searchTerms,
|
searchTerms: searchTerms ?? this.searchTerms,
|
||||||
|
rowid: rowid ?? this.rowid,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -752,6 +760,9 @@ class NotesCompanion extends UpdateCompanion<NotesData> {
|
||||||
if (searchTerms.present) {
|
if (searchTerms.present) {
|
||||||
map['search_terms'] = Variable<String>(searchTerms.value);
|
map['search_terms'] = Variable<String>(searchTerms.value);
|
||||||
}
|
}
|
||||||
|
if (rowid.present) {
|
||||||
|
map['rowid'] = Variable<int>(rowid.value);
|
||||||
|
}
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -760,7 +771,8 @@ class NotesCompanion extends UpdateCompanion<NotesData> {
|
||||||
return (StringBuffer('NotesCompanion(')
|
return (StringBuffer('NotesCompanion(')
|
||||||
..write('title: $title, ')
|
..write('title: $title, ')
|
||||||
..write('content: $content, ')
|
..write('content: $content, ')
|
||||||
..write('searchTerms: $searchTerms')
|
..write('searchTerms: $searchTerms, ')
|
||||||
|
..write('rowid: $rowid')
|
||||||
..write(')'))
|
..write(')'))
|
||||||
.toString();
|
.toString();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// GENERATED CODE, DO NOT EDIT BY HAND.
|
// GENERATED CODE, DO NOT EDIT BY HAND.
|
||||||
|
// ignore_for_file: type=lint
|
||||||
//@dart=2.12
|
//@dart=2.12
|
||||||
import 'package:drift/drift.dart';
|
import 'package:drift/drift.dart';
|
||||||
|
|
||||||
|
@ -575,15 +576,18 @@ class NotesCompanion extends UpdateCompanion<NotesData> {
|
||||||
final Value<String> title;
|
final Value<String> title;
|
||||||
final Value<String> content;
|
final Value<String> content;
|
||||||
final Value<String> searchTerms;
|
final Value<String> searchTerms;
|
||||||
|
final Value<int> rowid;
|
||||||
const NotesCompanion({
|
const NotesCompanion({
|
||||||
this.title = const Value.absent(),
|
this.title = const Value.absent(),
|
||||||
this.content = const Value.absent(),
|
this.content = const Value.absent(),
|
||||||
this.searchTerms = const Value.absent(),
|
this.searchTerms = const Value.absent(),
|
||||||
|
this.rowid = const Value.absent(),
|
||||||
});
|
});
|
||||||
NotesCompanion.insert({
|
NotesCompanion.insert({
|
||||||
required String title,
|
required String title,
|
||||||
required String content,
|
required String content,
|
||||||
required String searchTerms,
|
required String searchTerms,
|
||||||
|
this.rowid = const Value.absent(),
|
||||||
}) : title = Value(title),
|
}) : title = Value(title),
|
||||||
content = Value(content),
|
content = Value(content),
|
||||||
searchTerms = Value(searchTerms);
|
searchTerms = Value(searchTerms);
|
||||||
|
@ -591,22 +595,26 @@ class NotesCompanion extends UpdateCompanion<NotesData> {
|
||||||
Expression<String>? title,
|
Expression<String>? title,
|
||||||
Expression<String>? content,
|
Expression<String>? content,
|
||||||
Expression<String>? searchTerms,
|
Expression<String>? searchTerms,
|
||||||
|
Expression<int>? rowid,
|
||||||
}) {
|
}) {
|
||||||
return RawValuesInsertable({
|
return RawValuesInsertable({
|
||||||
if (title != null) 'title': title,
|
if (title != null) 'title': title,
|
||||||
if (content != null) 'content': content,
|
if (content != null) 'content': content,
|
||||||
if (searchTerms != null) 'search_terms': searchTerms,
|
if (searchTerms != null) 'search_terms': searchTerms,
|
||||||
|
if (rowid != null) 'rowid': rowid,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
NotesCompanion copyWith(
|
NotesCompanion copyWith(
|
||||||
{Value<String>? title,
|
{Value<String>? title,
|
||||||
Value<String>? content,
|
Value<String>? content,
|
||||||
Value<String>? searchTerms}) {
|
Value<String>? searchTerms,
|
||||||
|
Value<int>? rowid}) {
|
||||||
return NotesCompanion(
|
return NotesCompanion(
|
||||||
title: title ?? this.title,
|
title: title ?? this.title,
|
||||||
content: content ?? this.content,
|
content: content ?? this.content,
|
||||||
searchTerms: searchTerms ?? this.searchTerms,
|
searchTerms: searchTerms ?? this.searchTerms,
|
||||||
|
rowid: rowid ?? this.rowid,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -622,6 +630,9 @@ class NotesCompanion extends UpdateCompanion<NotesData> {
|
||||||
if (searchTerms.present) {
|
if (searchTerms.present) {
|
||||||
map['search_terms'] = Variable<String>(searchTerms.value);
|
map['search_terms'] = Variable<String>(searchTerms.value);
|
||||||
}
|
}
|
||||||
|
if (rowid.present) {
|
||||||
|
map['rowid'] = Variable<int>(rowid.value);
|
||||||
|
}
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -630,7 +641,8 @@ class NotesCompanion extends UpdateCompanion<NotesData> {
|
||||||
return (StringBuffer('NotesCompanion(')
|
return (StringBuffer('NotesCompanion(')
|
||||||
..write('title: $title, ')
|
..write('title: $title, ')
|
||||||
..write('content: $content, ')
|
..write('content: $content, ')
|
||||||
..write('searchTerms: $searchTerms')
|
..write('searchTerms: $searchTerms, ')
|
||||||
|
..write('rowid: $rowid')
|
||||||
..write(')'))
|
..write(')'))
|
||||||
.toString();
|
.toString();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue