Don't write references to invalid managers

This commit is contained in:
Simon Binder 2024-04-24 10:32:15 +02:00
parent 6558e46da0
commit 2474918a4f
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
11 changed files with 1254 additions and 710 deletions

View File

@ -2,6 +2,7 @@
import 'package:drift/drift.dart' as i0; import 'package:drift/drift.dart' as i0;
import 'package:drift_docs/snippets/_shared/todo_tables.drift.dart' as i1; import 'package:drift_docs/snippets/_shared/todo_tables.drift.dart' as i1;
import 'package:drift_docs/snippets/_shared/todo_tables.dart' as i2; import 'package:drift_docs/snippets/_shared/todo_tables.dart' as i2;
import 'package:drift/internal/modular.dart' as i3;
class $TodoItemsTable extends i2.TodoItems class $TodoItemsTable extends i2.TodoItems
with i0.TableInfo<$TodoItemsTable, i1.TodoItem> { with i0.TableInfo<$TodoItemsTable, i1.TodoItem> {
@ -300,6 +301,133 @@ class TodoItemsCompanion extends i0.UpdateCompanion<i1.TodoItem> {
} }
} }
class $$TodoItemsTableFilterComposer
extends i0.FilterComposer<i0.GeneratedDatabase, i1.$TodoItemsTable> {
$$TodoItemsTableFilterComposer(super.db, super.table);
i0.ColumnFilters<int> get id => i0.ColumnFilters($table.id);
i0.ColumnFilters<String> get title => i0.ColumnFilters($table.title);
i0.ColumnFilters<String> get content => i0.ColumnFilters($table.content);
i0.ColumnFilters<int> get categoryId => i0.ColumnFilters($table.category);
i0.ComposableFilter category(
i0.ComposableFilter Function(i1.$$CategoriesTableFilterComposer f) f) {
return $composeWithJoins(
$db: $db,
$table: $table,
referencedTable: i3.ReadDatabaseContainer($db)
.resultSet<i1.$CategoriesTable>('categories'),
getCurrentColumn: (f) => f.category,
getReferencedColumn: (f) => f.id,
getReferencedComposer: (db, table) =>
i1.$$CategoriesTableFilterComposer(db, table),
builder: f);
}
i0.ColumnFilters<DateTime> get dueDate => i0.ColumnFilters($table.dueDate);
}
class $$TodoItemsTableOrderingComposer
extends i0.OrderingComposer<i0.GeneratedDatabase, i1.$TodoItemsTable> {
$$TodoItemsTableOrderingComposer(super.db, super.table);
i0.ColumnOrderings<int> get id => i0.ColumnOrderings($table.id);
i0.ColumnOrderings<String> get title => i0.ColumnOrderings($table.title);
i0.ColumnOrderings<String> get content => i0.ColumnOrderings($table.content);
i0.ColumnOrderings<int> get categoryId => i0.ColumnOrderings($table.category);
i0.ComposableOrdering category(
i0.ComposableOrdering Function(i1.$$CategoriesTableOrderingComposer o)
o) {
return $composeWithJoins(
$db: $db,
$table: $table,
referencedTable: i3.ReadDatabaseContainer($db)
.resultSet<i1.$CategoriesTable>('categories'),
getCurrentColumn: (f) => f.category,
getReferencedColumn: (f) => f.id,
getReferencedComposer: (db, table) =>
i1.$$CategoriesTableOrderingComposer(db, table),
builder: o);
}
i0.ColumnOrderings<DateTime> get dueDate =>
i0.ColumnOrderings($table.dueDate);
}
class $$TodoItemsTableProcessedTableManager extends i0.ProcessedTableManager<
i0.GeneratedDatabase,
i1.$TodoItemsTable,
i1.TodoItem,
$$TodoItemsTableFilterComposer,
$$TodoItemsTableOrderingComposer,
$$TodoItemsTableProcessedTableManager,
$$TodoItemsTableInsertCompanionBuilder,
$$TodoItemsTableUpdateCompanionBuilder> {
const $$TodoItemsTableProcessedTableManager(super.$state);
}
typedef $$TodoItemsTableInsertCompanionBuilder = i1.TodoItemsCompanion
Function({
i0.Value<int> id,
required String title,
required String content,
i0.Value<int?> category,
i0.Value<DateTime?> dueDate,
});
typedef $$TodoItemsTableUpdateCompanionBuilder = i1.TodoItemsCompanion
Function({
i0.Value<int> id,
i0.Value<String> title,
i0.Value<String> content,
i0.Value<int?> category,
i0.Value<DateTime?> dueDate,
});
class $$TodoItemsTableTableManager extends i0.RootTableManager<
i0.GeneratedDatabase,
i1.$TodoItemsTable,
i1.TodoItem,
$$TodoItemsTableFilterComposer,
$$TodoItemsTableOrderingComposer,
$$TodoItemsTableProcessedTableManager,
$$TodoItemsTableInsertCompanionBuilder,
$$TodoItemsTableUpdateCompanionBuilder> {
$$TodoItemsTableTableManager(
i0.GeneratedDatabase db, i1.$TodoItemsTable table)
: super(i0.TableManagerState(
db: db,
table: table,
filteringComposer: $$TodoItemsTableFilterComposer(db, table),
orderingComposer: $$TodoItemsTableOrderingComposer(db, table),
getChildManagerBuilder: (p0) =>
$$TodoItemsTableProcessedTableManager(p0),
getUpdateCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
i0.Value<String> title = const i0.Value.absent(),
i0.Value<String> content = const i0.Value.absent(),
i0.Value<int?> category = const i0.Value.absent(),
i0.Value<DateTime?> dueDate = const i0.Value.absent(),
}) =>
i1.TodoItemsCompanion(
id: id,
title: title,
content: content,
category: category,
dueDate: dueDate,
),
getInsertCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
required String title,
required String content,
i0.Value<int?> category = const i0.Value.absent(),
i0.Value<DateTime?> dueDate = const i0.Value.absent(),
}) =>
i1.TodoItemsCompanion.insert(
id: id,
title: title,
content: content,
category: category,
dueDate: dueDate,
)));
}
class $CategoriesTable extends i2.Categories class $CategoriesTable extends i2.Categories
with i0.TableInfo<$CategoriesTable, i1.Category> { with i0.TableInfo<$CategoriesTable, i1.Category> {
@override @override
@ -471,6 +599,79 @@ class CategoriesCompanion extends i0.UpdateCompanion<i1.Category> {
} }
} }
class $$CategoriesTableFilterComposer
extends i0.FilterComposer<i0.GeneratedDatabase, i1.$CategoriesTable> {
$$CategoriesTableFilterComposer(super.db, super.table);
i0.ColumnFilters<int> get id => i0.ColumnFilters($table.id);
i0.ColumnFilters<String> get name => i0.ColumnFilters($table.name);
}
class $$CategoriesTableOrderingComposer
extends i0.OrderingComposer<i0.GeneratedDatabase, i1.$CategoriesTable> {
$$CategoriesTableOrderingComposer(super.db, super.table);
i0.ColumnOrderings<int> get id => i0.ColumnOrderings($table.id);
i0.ColumnOrderings<String> get name => i0.ColumnOrderings($table.name);
}
class $$CategoriesTableProcessedTableManager extends i0.ProcessedTableManager<
i0.GeneratedDatabase,
i1.$CategoriesTable,
i1.Category,
$$CategoriesTableFilterComposer,
$$CategoriesTableOrderingComposer,
$$CategoriesTableProcessedTableManager,
$$CategoriesTableInsertCompanionBuilder,
$$CategoriesTableUpdateCompanionBuilder> {
const $$CategoriesTableProcessedTableManager(super.$state);
}
typedef $$CategoriesTableInsertCompanionBuilder = i1.CategoriesCompanion
Function({
i0.Value<int> id,
required String name,
});
typedef $$CategoriesTableUpdateCompanionBuilder = i1.CategoriesCompanion
Function({
i0.Value<int> id,
i0.Value<String> name,
});
class $$CategoriesTableTableManager extends i0.RootTableManager<
i0.GeneratedDatabase,
i1.$CategoriesTable,
i1.Category,
$$CategoriesTableFilterComposer,
$$CategoriesTableOrderingComposer,
$$CategoriesTableProcessedTableManager,
$$CategoriesTableInsertCompanionBuilder,
$$CategoriesTableUpdateCompanionBuilder> {
$$CategoriesTableTableManager(
i0.GeneratedDatabase db, i1.$CategoriesTable table)
: super(i0.TableManagerState(
db: db,
table: table,
filteringComposer: $$CategoriesTableFilterComposer(db, table),
orderingComposer: $$CategoriesTableOrderingComposer(db, table),
getChildManagerBuilder: (p0) =>
$$CategoriesTableProcessedTableManager(p0),
getUpdateCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
i0.Value<String> name = const i0.Value.absent(),
}) =>
i1.CategoriesCompanion(
id: id,
name: name,
),
getInsertCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
required String name,
}) =>
i1.CategoriesCompanion.insert(
id: id,
name: name,
)));
}
class $UsersTable extends i2.Users with i0.TableInfo<$UsersTable, i1.User> { class $UsersTable extends i2.Users with i0.TableInfo<$UsersTable, i1.User> {
@override @override
final i0.GeneratedDatabase attachedDatabase; final i0.GeneratedDatabase attachedDatabase;
@ -643,3 +844,75 @@ class UsersCompanion extends i0.UpdateCompanion<i1.User> {
.toString(); .toString();
} }
} }
class $$UsersTableFilterComposer
extends i0.FilterComposer<i0.GeneratedDatabase, i1.$UsersTable> {
$$UsersTableFilterComposer(super.db, super.table);
i0.ColumnFilters<int> get id => i0.ColumnFilters($table.id);
i0.ColumnFilters<DateTime> get birthDate =>
i0.ColumnFilters($table.birthDate);
}
class $$UsersTableOrderingComposer
extends i0.OrderingComposer<i0.GeneratedDatabase, i1.$UsersTable> {
$$UsersTableOrderingComposer(super.db, super.table);
i0.ColumnOrderings<int> get id => i0.ColumnOrderings($table.id);
i0.ColumnOrderings<DateTime> get birthDate =>
i0.ColumnOrderings($table.birthDate);
}
class $$UsersTableProcessedTableManager extends i0.ProcessedTableManager<
i0.GeneratedDatabase,
i1.$UsersTable,
i1.User,
$$UsersTableFilterComposer,
$$UsersTableOrderingComposer,
$$UsersTableProcessedTableManager,
$$UsersTableInsertCompanionBuilder,
$$UsersTableUpdateCompanionBuilder> {
const $$UsersTableProcessedTableManager(super.$state);
}
typedef $$UsersTableInsertCompanionBuilder = i1.UsersCompanion Function({
i0.Value<int> id,
required DateTime birthDate,
});
typedef $$UsersTableUpdateCompanionBuilder = i1.UsersCompanion Function({
i0.Value<int> id,
i0.Value<DateTime> birthDate,
});
class $$UsersTableTableManager extends i0.RootTableManager<
i0.GeneratedDatabase,
i1.$UsersTable,
i1.User,
$$UsersTableFilterComposer,
$$UsersTableOrderingComposer,
$$UsersTableProcessedTableManager,
$$UsersTableInsertCompanionBuilder,
$$UsersTableUpdateCompanionBuilder> {
$$UsersTableTableManager(i0.GeneratedDatabase db, i1.$UsersTable table)
: super(i0.TableManagerState(
db: db,
table: table,
filteringComposer: $$UsersTableFilterComposer(db, table),
orderingComposer: $$UsersTableOrderingComposer(db, table),
getChildManagerBuilder: (p0) =>
$$UsersTableProcessedTableManager(p0),
getUpdateCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
i0.Value<DateTime> birthDate = const i0.Value.absent(),
}) =>
i1.UsersCompanion(
id: id,
birthDate: birthDate,
),
getInsertCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
required DateTime birthDate,
}) =>
i1.UsersCompanion.insert(
id: id,
birthDate: birthDate,
)));
}

View File

@ -1,7 +1,6 @@
// ignore_for_file: type=lint // ignore_for_file: type=lint
import 'package:drift/drift.dart' as i0; import 'package:drift/drift.dart' as i0;
import 'package:drift_docs/snippets/_shared/todo_tables.drift.dart' as i1; import 'package:drift_docs/snippets/_shared/todo_tables.drift.dart' as i1;
import 'package:drift/internal/modular.dart' as i2;
abstract class $MyDatabase extends i0.GeneratedDatabase { abstract class $MyDatabase extends i0.GeneratedDatabase {
$MyDatabase(i0.QueryExecutor e) : super(e); $MyDatabase(i0.QueryExecutor e) : super(e);
@ -30,225 +29,13 @@ abstract class $MyDatabase extends i0.GeneratedDatabase {
[categories, todoItems]; [categories, todoItems];
} }
class $$CategoriesTableFilterComposer
extends i0.FilterComposer<i0.GeneratedDatabase, i1.$CategoriesTable> {
$$CategoriesTableFilterComposer(super.db, super.table);
i0.ColumnFilters<int> get id => i0.ColumnFilters($table.id);
i0.ColumnFilters<String> get name => i0.ColumnFilters($table.name);
i0.ComposableFilter todoItemsRefs(
i0.ComposableFilter Function($$TodoItemsTableFilterComposer f) f) {
return $composeWithJoins(
$db: $db,
$table: $table,
referencedTable: i2.ReadDatabaseContainer($db)
.resultSet<i1.$TodoItemsTable>('todo_items'),
getCurrentColumn: (f) => f.id,
getReferencedColumn: (f) => f.category,
getReferencedComposer: (db, table) =>
$$TodoItemsTableFilterComposer(db, table),
builder: f);
}
}
class $$CategoriesTableOrderingComposer
extends i0.OrderingComposer<i0.GeneratedDatabase, i1.$CategoriesTable> {
$$CategoriesTableOrderingComposer(super.db, super.table);
i0.ColumnOrderings<int> get id => i0.ColumnOrderings($table.id);
i0.ColumnOrderings<String> get name => i0.ColumnOrderings($table.name);
}
class $$CategoriesTableProcessedTableManager extends i0.ProcessedTableManager<
i0.GeneratedDatabase,
i1.$CategoriesTable,
i1.Category,
$$CategoriesTableFilterComposer,
$$CategoriesTableOrderingComposer,
$$CategoriesTableProcessedTableManager,
$$CategoriesTableInsertCompanionBuilder,
$$CategoriesTableUpdateCompanionBuilder> {
const $$CategoriesTableProcessedTableManager(super.$state);
}
typedef $$CategoriesTableInsertCompanionBuilder = i1.CategoriesCompanion
Function({
i0.Value<int> id,
required String name,
});
typedef $$CategoriesTableUpdateCompanionBuilder = i1.CategoriesCompanion
Function({
i0.Value<int> id,
i0.Value<String> name,
});
class $$CategoriesTableTableManager extends i0.RootTableManager<
i0.GeneratedDatabase,
i1.$CategoriesTable,
i1.Category,
$$CategoriesTableFilterComposer,
$$CategoriesTableOrderingComposer,
$$CategoriesTableProcessedTableManager,
$$CategoriesTableInsertCompanionBuilder,
$$CategoriesTableUpdateCompanionBuilder> {
$$CategoriesTableTableManager(
i0.GeneratedDatabase db, i1.$CategoriesTable table)
: super(i0.TableManagerState(
db: db,
table: table,
filteringComposer: $$CategoriesTableFilterComposer(db, table),
orderingComposer: $$CategoriesTableOrderingComposer(db, table),
getChildManagerBuilder: (p0) =>
$$CategoriesTableProcessedTableManager(p0),
getUpdateCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
i0.Value<String> name = const i0.Value.absent(),
}) =>
i1.CategoriesCompanion(
id: id,
name: name,
),
getInsertCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
required String name,
}) =>
i1.CategoriesCompanion.insert(
id: id,
name: name,
)));
}
class $$TodoItemsTableFilterComposer
extends i0.FilterComposer<i0.GeneratedDatabase, i1.$TodoItemsTable> {
$$TodoItemsTableFilterComposer(super.db, super.table);
i0.ColumnFilters<int> get id => i0.ColumnFilters($table.id);
i0.ColumnFilters<String> get title => i0.ColumnFilters($table.title);
i0.ColumnFilters<String> get content => i0.ColumnFilters($table.content);
i0.ColumnFilters<int> get categoryId => i0.ColumnFilters($table.category);
i0.ComposableFilter category(
i0.ComposableFilter Function($$CategoriesTableFilterComposer f) f) {
return $composeWithJoins(
$db: $db,
$table: $table,
referencedTable: i2.ReadDatabaseContainer($db)
.resultSet<i1.$CategoriesTable>('categories'),
getCurrentColumn: (f) => f.category,
getReferencedColumn: (f) => f.id,
getReferencedComposer: (db, table) =>
$$CategoriesTableFilterComposer(db, table),
builder: f);
}
i0.ColumnFilters<DateTime> get dueDate => i0.ColumnFilters($table.dueDate);
}
class $$TodoItemsTableOrderingComposer
extends i0.OrderingComposer<i0.GeneratedDatabase, i1.$TodoItemsTable> {
$$TodoItemsTableOrderingComposer(super.db, super.table);
i0.ColumnOrderings<int> get id => i0.ColumnOrderings($table.id);
i0.ColumnOrderings<String> get title => i0.ColumnOrderings($table.title);
i0.ColumnOrderings<String> get content => i0.ColumnOrderings($table.content);
i0.ColumnOrderings<int> get categoryId => i0.ColumnOrderings($table.category);
i0.ComposableOrdering category(
i0.ComposableOrdering Function($$CategoriesTableOrderingComposer o) o) {
return $composeWithJoins(
$db: $db,
$table: $table,
referencedTable: i2.ReadDatabaseContainer($db)
.resultSet<i1.$CategoriesTable>('categories'),
getCurrentColumn: (f) => f.category,
getReferencedColumn: (f) => f.id,
getReferencedComposer: (db, table) =>
$$CategoriesTableOrderingComposer(db, table),
builder: o);
}
i0.ColumnOrderings<DateTime> get dueDate =>
i0.ColumnOrderings($table.dueDate);
}
class $$TodoItemsTableProcessedTableManager extends i0.ProcessedTableManager<
i0.GeneratedDatabase,
i1.$TodoItemsTable,
i1.TodoItem,
$$TodoItemsTableFilterComposer,
$$TodoItemsTableOrderingComposer,
$$TodoItemsTableProcessedTableManager,
$$TodoItemsTableInsertCompanionBuilder,
$$TodoItemsTableUpdateCompanionBuilder> {
const $$TodoItemsTableProcessedTableManager(super.$state);
}
typedef $$TodoItemsTableInsertCompanionBuilder = i1.TodoItemsCompanion
Function({
i0.Value<int> id,
required String title,
required String content,
i0.Value<int?> category,
i0.Value<DateTime?> dueDate,
});
typedef $$TodoItemsTableUpdateCompanionBuilder = i1.TodoItemsCompanion
Function({
i0.Value<int> id,
i0.Value<String> title,
i0.Value<String> content,
i0.Value<int?> category,
i0.Value<DateTime?> dueDate,
});
class $$TodoItemsTableTableManager extends i0.RootTableManager<
i0.GeneratedDatabase,
i1.$TodoItemsTable,
i1.TodoItem,
$$TodoItemsTableFilterComposer,
$$TodoItemsTableOrderingComposer,
$$TodoItemsTableProcessedTableManager,
$$TodoItemsTableInsertCompanionBuilder,
$$TodoItemsTableUpdateCompanionBuilder> {
$$TodoItemsTableTableManager(
i0.GeneratedDatabase db, i1.$TodoItemsTable table)
: super(i0.TableManagerState(
db: db,
table: table,
filteringComposer: $$TodoItemsTableFilterComposer(db, table),
orderingComposer: $$TodoItemsTableOrderingComposer(db, table),
getChildManagerBuilder: (p0) =>
$$TodoItemsTableProcessedTableManager(p0),
getUpdateCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
i0.Value<String> title = const i0.Value.absent(),
i0.Value<String> content = const i0.Value.absent(),
i0.Value<int?> category = const i0.Value.absent(),
i0.Value<DateTime?> dueDate = const i0.Value.absent(),
}) =>
i1.TodoItemsCompanion(
id: id,
title: title,
content: content,
category: category,
dueDate: dueDate,
),
getInsertCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
required String title,
required String content,
i0.Value<int?> category = const i0.Value.absent(),
i0.Value<DateTime?> dueDate = const i0.Value.absent(),
}) =>
i1.TodoItemsCompanion.insert(
id: id,
title: title,
content: content,
category: category,
dueDate: dueDate,
)));
}
class $MyDatabaseManager { class $MyDatabaseManager {
final $MyDatabase _db; final $MyDatabase _db;
$MyDatabaseManager(this._db); $MyDatabaseManager(this._db);
$$CategoriesTableTableManager get categories => i1.$$CategoriesTableTableManager get categories =>
$$CategoriesTableTableManager(_db, _db.categories); i1.$$CategoriesTableTableManager(_db, _db.categories);
$$TodoItemsTableTableManager get todoItems => i1.$$TodoItemsTableTableManager get todoItems =>
$$TodoItemsTableTableManager(_db, _db.todoItems); i1.$$TodoItemsTableTableManager(_db, _db.todoItems);
} }
class CategoriesWithCountResult { class CategoriesWithCountResult {

View File

@ -222,3 +222,87 @@ class PeriodicRemindersCompanion
.toString(); .toString();
} }
} }
class $PeriodicRemindersFilterComposer
extends i0.FilterComposer<i0.GeneratedDatabase, i1.PeriodicReminders> {
$PeriodicRemindersFilterComposer(super.db, super.table);
i0.ColumnFilters<int> get id => i0.ColumnFilters($table.id);
i0.ColumnFilters<Duration> get frequency =>
i0.ColumnFilters($table.frequency);
i0.ColumnFilters<String> get reminder => i0.ColumnFilters($table.reminder);
}
class $PeriodicRemindersOrderingComposer
extends i0.OrderingComposer<i0.GeneratedDatabase, i1.PeriodicReminders> {
$PeriodicRemindersOrderingComposer(super.db, super.table);
i0.ColumnOrderings<int> get id => i0.ColumnOrderings($table.id);
i0.ColumnOrderings<Duration> get frequency =>
i0.ColumnOrderings($table.frequency);
i0.ColumnOrderings<String> get reminder =>
i0.ColumnOrderings($table.reminder);
}
class $PeriodicRemindersProcessedTableManager extends i0.ProcessedTableManager<
i0.GeneratedDatabase,
i1.PeriodicReminders,
i1.PeriodicReminder,
$PeriodicRemindersFilterComposer,
$PeriodicRemindersOrderingComposer,
$PeriodicRemindersProcessedTableManager,
$PeriodicRemindersInsertCompanionBuilder,
$PeriodicRemindersUpdateCompanionBuilder> {
const $PeriodicRemindersProcessedTableManager(super.$state);
}
typedef $PeriodicRemindersInsertCompanionBuilder = i1.PeriodicRemindersCompanion
Function({
i0.Value<int> id,
required Duration frequency,
required String reminder,
});
typedef $PeriodicRemindersUpdateCompanionBuilder = i1.PeriodicRemindersCompanion
Function({
i0.Value<int> id,
i0.Value<Duration> frequency,
i0.Value<String> reminder,
});
class $PeriodicRemindersTableManager extends i0.RootTableManager<
i0.GeneratedDatabase,
i1.PeriodicReminders,
i1.PeriodicReminder,
$PeriodicRemindersFilterComposer,
$PeriodicRemindersOrderingComposer,
$PeriodicRemindersProcessedTableManager,
$PeriodicRemindersInsertCompanionBuilder,
$PeriodicRemindersUpdateCompanionBuilder> {
$PeriodicRemindersTableManager(
i0.GeneratedDatabase db, i1.PeriodicReminders table)
: super(i0.TableManagerState(
db: db,
table: table,
filteringComposer: $PeriodicRemindersFilterComposer(db, table),
orderingComposer: $PeriodicRemindersOrderingComposer(db, table),
getChildManagerBuilder: (p0) =>
$PeriodicRemindersProcessedTableManager(p0),
getUpdateCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
i0.Value<Duration> frequency = const i0.Value.absent(),
i0.Value<String> reminder = const i0.Value.absent(),
}) =>
i1.PeriodicRemindersCompanion(
id: id,
frequency: frequency,
reminder: reminder,
),
getInsertCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
required Duration frequency,
required String reminder,
}) =>
i1.PeriodicRemindersCompanion.insert(
id: id,
frequency: frequency,
reminder: reminder,
)));
}

View File

@ -220,3 +220,90 @@ class PeriodicRemindersCompanion
.toString(); .toString();
} }
} }
class $$PeriodicRemindersTableFilterComposer extends i0
.FilterComposer<i0.GeneratedDatabase, i1.$PeriodicRemindersTable> {
$$PeriodicRemindersTableFilterComposer(super.db, super.table);
i0.ColumnFilters<int> get id => i0.ColumnFilters($table.id);
i0.ColumnFilters<Duration> get frequency =>
i0.ColumnFilters($table.frequency);
i0.ColumnFilters<String> get reminder => i0.ColumnFilters($table.reminder);
}
class $$PeriodicRemindersTableOrderingComposer extends i0
.OrderingComposer<i0.GeneratedDatabase, i1.$PeriodicRemindersTable> {
$$PeriodicRemindersTableOrderingComposer(super.db, super.table);
i0.ColumnOrderings<int> get id => i0.ColumnOrderings($table.id);
i0.ColumnOrderings<Duration> get frequency =>
i0.ColumnOrderings($table.frequency);
i0.ColumnOrderings<String> get reminder =>
i0.ColumnOrderings($table.reminder);
}
class $$PeriodicRemindersTableProcessedTableManager
extends i0.ProcessedTableManager<
i0.GeneratedDatabase,
i1.$PeriodicRemindersTable,
i1.PeriodicReminder,
$$PeriodicRemindersTableFilterComposer,
$$PeriodicRemindersTableOrderingComposer,
$$PeriodicRemindersTableProcessedTableManager,
$$PeriodicRemindersTableInsertCompanionBuilder,
$$PeriodicRemindersTableUpdateCompanionBuilder> {
const $$PeriodicRemindersTableProcessedTableManager(super.$state);
}
typedef $$PeriodicRemindersTableInsertCompanionBuilder
= i1.PeriodicRemindersCompanion Function({
i0.Value<int> id,
i0.Value<Duration> frequency,
required String reminder,
});
typedef $$PeriodicRemindersTableUpdateCompanionBuilder
= i1.PeriodicRemindersCompanion Function({
i0.Value<int> id,
i0.Value<Duration> frequency,
i0.Value<String> reminder,
});
class $$PeriodicRemindersTableTableManager extends i0.RootTableManager<
i0.GeneratedDatabase,
i1.$PeriodicRemindersTable,
i1.PeriodicReminder,
$$PeriodicRemindersTableFilterComposer,
$$PeriodicRemindersTableOrderingComposer,
$$PeriodicRemindersTableProcessedTableManager,
$$PeriodicRemindersTableInsertCompanionBuilder,
$$PeriodicRemindersTableUpdateCompanionBuilder> {
$$PeriodicRemindersTableTableManager(
i0.GeneratedDatabase db, i1.$PeriodicRemindersTable table)
: super(i0.TableManagerState(
db: db,
table: table,
filteringComposer:
$$PeriodicRemindersTableFilterComposer(db, table),
orderingComposer:
$$PeriodicRemindersTableOrderingComposer(db, table),
getChildManagerBuilder: (p0) =>
$$PeriodicRemindersTableProcessedTableManager(p0),
getUpdateCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
i0.Value<Duration> frequency = const i0.Value.absent(),
i0.Value<String> reminder = const i0.Value.absent(),
}) =>
i1.PeriodicRemindersCompanion(
id: id,
frequency: frequency,
reminder: reminder,
),
getInsertCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
i0.Value<Duration> frequency = const i0.Value.absent(),
required String reminder,
}) =>
i1.PeriodicRemindersCompanion.insert(
id: id,
frequency: frequency,
reminder: reminder,
)));
}

View File

@ -259,6 +259,117 @@ class TodosCompanion extends i0.UpdateCompanion<i1.Todo> {
} }
} }
class $TodosFilterComposer
extends i0.FilterComposer<i0.GeneratedDatabase, i1.Todos> {
$TodosFilterComposer(super.db, super.table);
i0.ColumnFilters<int> get id => i0.ColumnFilters($table.id);
i0.ColumnFilters<String> get title => i0.ColumnFilters($table.title);
i0.ColumnFilters<String> get content => i0.ColumnFilters($table.content);
i0.ColumnFilters<int> get categoryId => i0.ColumnFilters($table.category);
i0.ComposableFilter category(
i0.ComposableFilter Function(i1.$CategoriesFilterComposer f) f) {
return $composeWithJoins(
$db: $db,
$table: $table,
referencedTable: i2.ReadDatabaseContainer($db)
.resultSet<i1.Categories>('categories'),
getCurrentColumn: (f) => f.category,
getReferencedColumn: (f) => f.id,
getReferencedComposer: (db, table) =>
i1.$CategoriesFilterComposer(db, table),
builder: f);
}
}
class $TodosOrderingComposer
extends i0.OrderingComposer<i0.GeneratedDatabase, i1.Todos> {
$TodosOrderingComposer(super.db, super.table);
i0.ColumnOrderings<int> get id => i0.ColumnOrderings($table.id);
i0.ColumnOrderings<String> get title => i0.ColumnOrderings($table.title);
i0.ColumnOrderings<String> get content => i0.ColumnOrderings($table.content);
i0.ColumnOrderings<int> get categoryId => i0.ColumnOrderings($table.category);
i0.ComposableOrdering category(
i0.ComposableOrdering Function(i1.$CategoriesOrderingComposer o) o) {
return $composeWithJoins(
$db: $db,
$table: $table,
referencedTable: i2.ReadDatabaseContainer($db)
.resultSet<i1.Categories>('categories'),
getCurrentColumn: (f) => f.category,
getReferencedColumn: (f) => f.id,
getReferencedComposer: (db, table) =>
i1.$CategoriesOrderingComposer(db, table),
builder: o);
}
}
class $TodosProcessedTableManager extends i0.ProcessedTableManager<
i0.GeneratedDatabase,
i1.Todos,
i1.Todo,
$TodosFilterComposer,
$TodosOrderingComposer,
$TodosProcessedTableManager,
$TodosInsertCompanionBuilder,
$TodosUpdateCompanionBuilder> {
const $TodosProcessedTableManager(super.$state);
}
typedef $TodosInsertCompanionBuilder = i1.TodosCompanion Function({
i0.Value<int> id,
required String title,
required String content,
i0.Value<int?> category,
});
typedef $TodosUpdateCompanionBuilder = i1.TodosCompanion Function({
i0.Value<int> id,
i0.Value<String> title,
i0.Value<String> content,
i0.Value<int?> category,
});
class $TodosTableManager extends i0.RootTableManager<
i0.GeneratedDatabase,
i1.Todos,
i1.Todo,
$TodosFilterComposer,
$TodosOrderingComposer,
$TodosProcessedTableManager,
$TodosInsertCompanionBuilder,
$TodosUpdateCompanionBuilder> {
$TodosTableManager(i0.GeneratedDatabase db, i1.Todos table)
: super(i0.TableManagerState(
db: db,
table: table,
filteringComposer: $TodosFilterComposer(db, table),
orderingComposer: $TodosOrderingComposer(db, table),
getChildManagerBuilder: (p0) => $TodosProcessedTableManager(p0),
getUpdateCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
i0.Value<String> title = const i0.Value.absent(),
i0.Value<String> content = const i0.Value.absent(),
i0.Value<int?> category = const i0.Value.absent(),
}) =>
i1.TodosCompanion(
id: id,
title: title,
content: content,
category: category,
),
getInsertCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
required String title,
required String content,
i0.Value<int?> category = const i0.Value.absent(),
}) =>
i1.TodosCompanion.insert(
id: id,
title: title,
content: content,
category: category,
)));
}
class Categories extends i0.Table with i0.TableInfo<Categories, i1.Category> { class Categories extends i0.Table with i0.TableInfo<Categories, i1.Category> {
@override @override
final i0.GeneratedDatabase attachedDatabase; final i0.GeneratedDatabase attachedDatabase;
@ -436,6 +547,78 @@ class CategoriesCompanion extends i0.UpdateCompanion<i1.Category> {
} }
} }
class $CategoriesFilterComposer
extends i0.FilterComposer<i0.GeneratedDatabase, i1.Categories> {
$CategoriesFilterComposer(super.db, super.table);
i0.ColumnFilters<int> get id => i0.ColumnFilters($table.id);
i0.ColumnFilters<String> get description =>
i0.ColumnFilters($table.description);
}
class $CategoriesOrderingComposer
extends i0.OrderingComposer<i0.GeneratedDatabase, i1.Categories> {
$CategoriesOrderingComposer(super.db, super.table);
i0.ColumnOrderings<int> get id => i0.ColumnOrderings($table.id);
i0.ColumnOrderings<String> get description =>
i0.ColumnOrderings($table.description);
}
class $CategoriesProcessedTableManager extends i0.ProcessedTableManager<
i0.GeneratedDatabase,
i1.Categories,
i1.Category,
$CategoriesFilterComposer,
$CategoriesOrderingComposer,
$CategoriesProcessedTableManager,
$CategoriesInsertCompanionBuilder,
$CategoriesUpdateCompanionBuilder> {
const $CategoriesProcessedTableManager(super.$state);
}
typedef $CategoriesInsertCompanionBuilder = i1.CategoriesCompanion Function({
i0.Value<int> id,
required String description,
});
typedef $CategoriesUpdateCompanionBuilder = i1.CategoriesCompanion Function({
i0.Value<int> id,
i0.Value<String> description,
});
class $CategoriesTableManager extends i0.RootTableManager<
i0.GeneratedDatabase,
i1.Categories,
i1.Category,
$CategoriesFilterComposer,
$CategoriesOrderingComposer,
$CategoriesProcessedTableManager,
$CategoriesInsertCompanionBuilder,
$CategoriesUpdateCompanionBuilder> {
$CategoriesTableManager(i0.GeneratedDatabase db, i1.Categories table)
: super(i0.TableManagerState(
db: db,
table: table,
filteringComposer: $CategoriesFilterComposer(db, table),
orderingComposer: $CategoriesOrderingComposer(db, table),
getChildManagerBuilder: (p0) =>
$CategoriesProcessedTableManager(p0),
getUpdateCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
i0.Value<String> description = const i0.Value.absent(),
}) =>
i1.CategoriesCompanion(
id: id,
description: description,
),
getInsertCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
required String description,
}) =>
i1.CategoriesCompanion.insert(
id: id,
description: description,
)));
}
class ExampleDrift extends i2.ModularAccessor { class ExampleDrift extends i2.ModularAccessor {
ExampleDrift(i0.GeneratedDatabase db) : super(db); ExampleDrift(i0.GeneratedDatabase db) : super(db);
i0.Selectable<i1.Todo> filterTodos(FilterTodos$predicate predicate) { i0.Selectable<i1.Todo> filterTodos(FilterTodos$predicate predicate) {

View File

@ -310,6 +310,81 @@ class FriendsCompanion extends i0.UpdateCompanion<i2.Friend> {
} }
} }
class $FriendsFilterComposer
extends i0.FilterComposer<i0.GeneratedDatabase, i2.Friends> {
$FriendsFilterComposer(super.db, super.table);
i0.ColumnFilters<int> get userAId => i0.ColumnFilters($table.userA);
i0.ColumnFilters<int> get userBId => i0.ColumnFilters($table.userB);
}
class $FriendsOrderingComposer
extends i0.OrderingComposer<i0.GeneratedDatabase, i2.Friends> {
$FriendsOrderingComposer(super.db, super.table);
i0.ColumnOrderings<int> get userAId => i0.ColumnOrderings($table.userA);
i0.ColumnOrderings<int> get userBId => i0.ColumnOrderings($table.userB);
}
class $FriendsProcessedTableManager extends i0.ProcessedTableManager<
i0.GeneratedDatabase,
i2.Friends,
i2.Friend,
$FriendsFilterComposer,
$FriendsOrderingComposer,
$FriendsProcessedTableManager,
$FriendsInsertCompanionBuilder,
$FriendsUpdateCompanionBuilder> {
const $FriendsProcessedTableManager(super.$state);
}
typedef $FriendsInsertCompanionBuilder = i2.FriendsCompanion Function({
required int userA,
required int userB,
i0.Value<int> rowid,
});
typedef $FriendsUpdateCompanionBuilder = i2.FriendsCompanion Function({
i0.Value<int> userA,
i0.Value<int> userB,
i0.Value<int> rowid,
});
class $FriendsTableManager extends i0.RootTableManager<
i0.GeneratedDatabase,
i2.Friends,
i2.Friend,
$FriendsFilterComposer,
$FriendsOrderingComposer,
$FriendsProcessedTableManager,
$FriendsInsertCompanionBuilder,
$FriendsUpdateCompanionBuilder> {
$FriendsTableManager(i0.GeneratedDatabase db, i2.Friends table)
: super(i0.TableManagerState(
db: db,
table: table,
filteringComposer: $FriendsFilterComposer(db, table),
orderingComposer: $FriendsOrderingComposer(db, table),
getChildManagerBuilder: (p0) => $FriendsProcessedTableManager(p0),
getUpdateCompanionBuilder: ({
i0.Value<int> userA = const i0.Value.absent(),
i0.Value<int> userB = const i0.Value.absent(),
i0.Value<int> rowid = const i0.Value.absent(),
}) =>
i2.FriendsCompanion(
userA: userA,
userB: userB,
rowid: rowid,
),
getInsertCompanionBuilder: ({
required int userA,
required int userB,
i0.Value<int> rowid = const i0.Value.absent(),
}) =>
i2.FriendsCompanion.insert(
userA: userA,
userB: userB,
rowid: rowid,
)));
}
class WithExistingDrift extends i3.ModularAccessor { class WithExistingDrift extends i3.ModularAccessor {
WithExistingDrift(i0.GeneratedDatabase db) : super(db); WithExistingDrift(i0.GeneratedDatabase db) : super(db);
i0.Selectable<i1.UserWithFriends> allFriendsOf(int id) { i0.Selectable<i1.UserWithFriends> allFriendsOf(int id) {

View File

@ -19,175 +19,13 @@ abstract class $JsonBasedDatabase extends i0.GeneratedDatabase {
[buyableItems, shoppingCarts]; [buyableItems, shoppingCarts];
} }
class $$BuyableItemsTableFilterComposer
extends i0.FilterComposer<i0.GeneratedDatabase, i1.$BuyableItemsTable> {
$$BuyableItemsTableFilterComposer(super.db, super.table);
i0.ColumnFilters<int> get id => i0.ColumnFilters($table.id);
i0.ColumnFilters<String> get description =>
i0.ColumnFilters($table.description);
i0.ColumnFilters<int> get price => i0.ColumnFilters($table.price);
}
class $$BuyableItemsTableOrderingComposer
extends i0.OrderingComposer<i0.GeneratedDatabase, i1.$BuyableItemsTable> {
$$BuyableItemsTableOrderingComposer(super.db, super.table);
i0.ColumnOrderings<int> get id => i0.ColumnOrderings($table.id);
i0.ColumnOrderings<String> get description =>
i0.ColumnOrderings($table.description);
i0.ColumnOrderings<int> get price => i0.ColumnOrderings($table.price);
}
class $$BuyableItemsTableProcessedTableManager extends i0.ProcessedTableManager<
i0.GeneratedDatabase,
i1.$BuyableItemsTable,
i1.BuyableItem,
$$BuyableItemsTableFilterComposer,
$$BuyableItemsTableOrderingComposer,
$$BuyableItemsTableProcessedTableManager,
$$BuyableItemsTableInsertCompanionBuilder,
$$BuyableItemsTableUpdateCompanionBuilder> {
const $$BuyableItemsTableProcessedTableManager(super.$state);
}
typedef $$BuyableItemsTableInsertCompanionBuilder = i1.BuyableItemsCompanion
Function({
i0.Value<int> id,
required String description,
required int price,
});
typedef $$BuyableItemsTableUpdateCompanionBuilder = i1.BuyableItemsCompanion
Function({
i0.Value<int> id,
i0.Value<String> description,
i0.Value<int> price,
});
class $$BuyableItemsTableTableManager extends i0.RootTableManager<
i0.GeneratedDatabase,
i1.$BuyableItemsTable,
i1.BuyableItem,
$$BuyableItemsTableFilterComposer,
$$BuyableItemsTableOrderingComposer,
$$BuyableItemsTableProcessedTableManager,
$$BuyableItemsTableInsertCompanionBuilder,
$$BuyableItemsTableUpdateCompanionBuilder> {
$$BuyableItemsTableTableManager(
i0.GeneratedDatabase db, i1.$BuyableItemsTable table)
: super(i0.TableManagerState(
db: db,
table: table,
filteringComposer: $$BuyableItemsTableFilterComposer(db, table),
orderingComposer: $$BuyableItemsTableOrderingComposer(db, table),
getChildManagerBuilder: (p0) =>
$$BuyableItemsTableProcessedTableManager(p0),
getUpdateCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
i0.Value<String> description = const i0.Value.absent(),
i0.Value<int> price = const i0.Value.absent(),
}) =>
i1.BuyableItemsCompanion(
id: id,
description: description,
price: price,
),
getInsertCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
required String description,
required int price,
}) =>
i1.BuyableItemsCompanion.insert(
id: id,
description: description,
price: price,
)));
}
class $$ShoppingCartsTableFilterComposer
extends i0.FilterComposer<i0.GeneratedDatabase, i2.$ShoppingCartsTable> {
$$ShoppingCartsTableFilterComposer(super.db, super.table);
i0.ColumnFilters<int> get id => i0.ColumnFilters($table.id);
i0.ColumnFilters<String> get entriesValue => i0.ColumnFilters($table.entries);
i0.ColumnWithTypeConverterFilters<
i3.ShoppingCartEntries,
i3.ShoppingCartEntries,
String> get entries => i0.ColumnWithTypeConverterFilters($table.entries);
}
class $$ShoppingCartsTableOrderingComposer
extends i0.OrderingComposer<i0.GeneratedDatabase, i2.$ShoppingCartsTable> {
$$ShoppingCartsTableOrderingComposer(super.db, super.table);
i0.ColumnOrderings<int> get id => i0.ColumnOrderings($table.id);
i0.ColumnOrderings<String> get entries => i0.ColumnOrderings($table.entries);
}
class $$ShoppingCartsTableProcessedTableManager
extends i0.ProcessedTableManager<
i0.GeneratedDatabase,
i2.$ShoppingCartsTable,
i2.ShoppingCart,
$$ShoppingCartsTableFilterComposer,
$$ShoppingCartsTableOrderingComposer,
$$ShoppingCartsTableProcessedTableManager,
$$ShoppingCartsTableInsertCompanionBuilder,
$$ShoppingCartsTableUpdateCompanionBuilder> {
const $$ShoppingCartsTableProcessedTableManager(super.$state);
}
typedef $$ShoppingCartsTableInsertCompanionBuilder = i2.ShoppingCartsCompanion
Function({
i0.Value<int> id,
required i3.ShoppingCartEntries entries,
});
typedef $$ShoppingCartsTableUpdateCompanionBuilder = i2.ShoppingCartsCompanion
Function({
i0.Value<int> id,
i0.Value<i3.ShoppingCartEntries> entries,
});
class $$ShoppingCartsTableTableManager extends i0.RootTableManager<
i0.GeneratedDatabase,
i2.$ShoppingCartsTable,
i2.ShoppingCart,
$$ShoppingCartsTableFilterComposer,
$$ShoppingCartsTableOrderingComposer,
$$ShoppingCartsTableProcessedTableManager,
$$ShoppingCartsTableInsertCompanionBuilder,
$$ShoppingCartsTableUpdateCompanionBuilder> {
$$ShoppingCartsTableTableManager(
i0.GeneratedDatabase db, i2.$ShoppingCartsTable table)
: super(i0.TableManagerState(
db: db,
table: table,
filteringComposer: $$ShoppingCartsTableFilterComposer(db, table),
orderingComposer: $$ShoppingCartsTableOrderingComposer(db, table),
getChildManagerBuilder: (p0) =>
$$ShoppingCartsTableProcessedTableManager(p0),
getUpdateCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
i0.Value<i3.ShoppingCartEntries> entries =
const i0.Value.absent(),
}) =>
i2.ShoppingCartsCompanion(
id: id,
entries: entries,
),
getInsertCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
required i3.ShoppingCartEntries entries,
}) =>
i2.ShoppingCartsCompanion.insert(
id: id,
entries: entries,
)));
}
class $JsonBasedDatabaseManager { class $JsonBasedDatabaseManager {
final $JsonBasedDatabase _db; final $JsonBasedDatabase _db;
$JsonBasedDatabaseManager(this._db); $JsonBasedDatabaseManager(this._db);
$$BuyableItemsTableTableManager get buyableItems => i1.$$BuyableItemsTableTableManager get buyableItems =>
$$BuyableItemsTableTableManager(_db, _db.buyableItems); i1.$$BuyableItemsTableTableManager(_db, _db.buyableItems);
$$ShoppingCartsTableTableManager get shoppingCarts => i2.$$ShoppingCartsTableTableManager get shoppingCarts =>
$$ShoppingCartsTableTableManager(_db, _db.shoppingCarts); i2.$$ShoppingCartsTableTableManager(_db, _db.shoppingCarts);
} }
class $ShoppingCartsTable extends i3.ShoppingCarts class $ShoppingCartsTable extends i3.ShoppingCarts
@ -373,3 +211,82 @@ class ShoppingCartsCompanion extends i0.UpdateCompanion<i2.ShoppingCart> {
.toString(); .toString();
} }
} }
class $$ShoppingCartsTableFilterComposer
extends i0.FilterComposer<i0.GeneratedDatabase, i2.$ShoppingCartsTable> {
$$ShoppingCartsTableFilterComposer(super.db, super.table);
i0.ColumnFilters<int> get id => i0.ColumnFilters($table.id);
i0.ColumnFilters<String> get entriesValue => i0.ColumnFilters($table.entries);
i0.ColumnWithTypeConverterFilters<
i3.ShoppingCartEntries,
i3.ShoppingCartEntries,
String> get entries => i0.ColumnWithTypeConverterFilters($table.entries);
}
class $$ShoppingCartsTableOrderingComposer
extends i0.OrderingComposer<i0.GeneratedDatabase, i2.$ShoppingCartsTable> {
$$ShoppingCartsTableOrderingComposer(super.db, super.table);
i0.ColumnOrderings<int> get id => i0.ColumnOrderings($table.id);
i0.ColumnOrderings<String> get entries => i0.ColumnOrderings($table.entries);
}
class $$ShoppingCartsTableProcessedTableManager
extends i0.ProcessedTableManager<
i0.GeneratedDatabase,
i2.$ShoppingCartsTable,
i2.ShoppingCart,
$$ShoppingCartsTableFilterComposer,
$$ShoppingCartsTableOrderingComposer,
$$ShoppingCartsTableProcessedTableManager,
$$ShoppingCartsTableInsertCompanionBuilder,
$$ShoppingCartsTableUpdateCompanionBuilder> {
const $$ShoppingCartsTableProcessedTableManager(super.$state);
}
typedef $$ShoppingCartsTableInsertCompanionBuilder = i2.ShoppingCartsCompanion
Function({
i0.Value<int> id,
required i3.ShoppingCartEntries entries,
});
typedef $$ShoppingCartsTableUpdateCompanionBuilder = i2.ShoppingCartsCompanion
Function({
i0.Value<int> id,
i0.Value<i3.ShoppingCartEntries> entries,
});
class $$ShoppingCartsTableTableManager extends i0.RootTableManager<
i0.GeneratedDatabase,
i2.$ShoppingCartsTable,
i2.ShoppingCart,
$$ShoppingCartsTableFilterComposer,
$$ShoppingCartsTableOrderingComposer,
$$ShoppingCartsTableProcessedTableManager,
$$ShoppingCartsTableInsertCompanionBuilder,
$$ShoppingCartsTableUpdateCompanionBuilder> {
$$ShoppingCartsTableTableManager(
i0.GeneratedDatabase db, i2.$ShoppingCartsTable table)
: super(i0.TableManagerState(
db: db,
table: table,
filteringComposer: $$ShoppingCartsTableFilterComposer(db, table),
orderingComposer: $$ShoppingCartsTableOrderingComposer(db, table),
getChildManagerBuilder: (p0) =>
$$ShoppingCartsTableProcessedTableManager(p0),
getUpdateCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
i0.Value<i3.ShoppingCartEntries> entries =
const i0.Value.absent(),
}) =>
i2.ShoppingCartsCompanion(
id: id,
entries: entries,
),
getInsertCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
required i3.ShoppingCartEntries entries,
}) =>
i2.ShoppingCartsCompanion.insert(
id: id,
entries: entries,
)));
}

View File

@ -4,8 +4,8 @@ import 'package:drift_docs/snippets/modular/many_to_many/shared.drift.dart'
as i1; as i1;
import 'package:drift_docs/snippets/modular/many_to_many/relational.drift.dart' import 'package:drift_docs/snippets/modular/many_to_many/relational.drift.dart'
as i2; as i2;
import 'package:drift/internal/modular.dart' as i3; import 'package:drift_docs/snippets/modular/many_to_many/relational.dart' as i3;
import 'package:drift_docs/snippets/modular/many_to_many/relational.dart' as i4; import 'package:drift/internal/modular.dart' as i4;
abstract class $RelationalDatabase extends i0.GeneratedDatabase { abstract class $RelationalDatabase extends i0.GeneratedDatabase {
$RelationalDatabase(i0.QueryExecutor e) : super(e); $RelationalDatabase(i0.QueryExecutor e) : super(e);
@ -23,334 +23,18 @@ abstract class $RelationalDatabase extends i0.GeneratedDatabase {
[buyableItems, shoppingCarts, shoppingCartEntries]; [buyableItems, shoppingCarts, shoppingCartEntries];
} }
class $$BuyableItemsTableFilterComposer
extends i0.FilterComposer<i0.GeneratedDatabase, i1.$BuyableItemsTable> {
$$BuyableItemsTableFilterComposer(super.db, super.table);
i0.ColumnFilters<int> get id => i0.ColumnFilters($table.id);
i0.ColumnFilters<String> get description =>
i0.ColumnFilters($table.description);
i0.ColumnFilters<int> get price => i0.ColumnFilters($table.price);
i0.ComposableFilter shoppingCartEntriesRefs(
i0.ComposableFilter Function($$ShoppingCartEntriesTableFilterComposer f)
f) {
return $composeWithJoins(
$db: $db,
$table: $table,
referencedTable: i3.ReadDatabaseContainer($db)
.resultSet<i2.$ShoppingCartEntriesTable>('shopping_cart_entries'),
getCurrentColumn: (f) => f.id,
getReferencedColumn: (f) => f.item,
getReferencedComposer: (db, table) =>
$$ShoppingCartEntriesTableFilterComposer(db, table),
builder: f);
}
}
class $$BuyableItemsTableOrderingComposer
extends i0.OrderingComposer<i0.GeneratedDatabase, i1.$BuyableItemsTable> {
$$BuyableItemsTableOrderingComposer(super.db, super.table);
i0.ColumnOrderings<int> get id => i0.ColumnOrderings($table.id);
i0.ColumnOrderings<String> get description =>
i0.ColumnOrderings($table.description);
i0.ColumnOrderings<int> get price => i0.ColumnOrderings($table.price);
}
class $$BuyableItemsTableProcessedTableManager extends i0.ProcessedTableManager<
i0.GeneratedDatabase,
i1.$BuyableItemsTable,
i1.BuyableItem,
$$BuyableItemsTableFilterComposer,
$$BuyableItemsTableOrderingComposer,
$$BuyableItemsTableProcessedTableManager,
$$BuyableItemsTableInsertCompanionBuilder,
$$BuyableItemsTableUpdateCompanionBuilder> {
const $$BuyableItemsTableProcessedTableManager(super.$state);
}
typedef $$BuyableItemsTableInsertCompanionBuilder = i1.BuyableItemsCompanion
Function({
i0.Value<int> id,
required String description,
required int price,
});
typedef $$BuyableItemsTableUpdateCompanionBuilder = i1.BuyableItemsCompanion
Function({
i0.Value<int> id,
i0.Value<String> description,
i0.Value<int> price,
});
class $$BuyableItemsTableTableManager extends i0.RootTableManager<
i0.GeneratedDatabase,
i1.$BuyableItemsTable,
i1.BuyableItem,
$$BuyableItemsTableFilterComposer,
$$BuyableItemsTableOrderingComposer,
$$BuyableItemsTableProcessedTableManager,
$$BuyableItemsTableInsertCompanionBuilder,
$$BuyableItemsTableUpdateCompanionBuilder> {
$$BuyableItemsTableTableManager(
i0.GeneratedDatabase db, i1.$BuyableItemsTable table)
: super(i0.TableManagerState(
db: db,
table: table,
filteringComposer: $$BuyableItemsTableFilterComposer(db, table),
orderingComposer: $$BuyableItemsTableOrderingComposer(db, table),
getChildManagerBuilder: (p0) =>
$$BuyableItemsTableProcessedTableManager(p0),
getUpdateCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
i0.Value<String> description = const i0.Value.absent(),
i0.Value<int> price = const i0.Value.absent(),
}) =>
i1.BuyableItemsCompanion(
id: id,
description: description,
price: price,
),
getInsertCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
required String description,
required int price,
}) =>
i1.BuyableItemsCompanion.insert(
id: id,
description: description,
price: price,
)));
}
class $$ShoppingCartsTableFilterComposer
extends i0.FilterComposer<i0.GeneratedDatabase, i2.$ShoppingCartsTable> {
$$ShoppingCartsTableFilterComposer(super.db, super.table);
i0.ColumnFilters<int> get id => i0.ColumnFilters($table.id);
i0.ComposableFilter shoppingCartEntriesRefs(
i0.ComposableFilter Function($$ShoppingCartEntriesTableFilterComposer f)
f) {
return $composeWithJoins(
$db: $db,
$table: $table,
referencedTable: i3.ReadDatabaseContainer($db)
.resultSet<i2.$ShoppingCartEntriesTable>('shopping_cart_entries'),
getCurrentColumn: (f) => f.id,
getReferencedColumn: (f) => f.shoppingCart,
getReferencedComposer: (db, table) =>
$$ShoppingCartEntriesTableFilterComposer(db, table),
builder: f);
}
}
class $$ShoppingCartsTableOrderingComposer
extends i0.OrderingComposer<i0.GeneratedDatabase, i2.$ShoppingCartsTable> {
$$ShoppingCartsTableOrderingComposer(super.db, super.table);
i0.ColumnOrderings<int> get id => i0.ColumnOrderings($table.id);
}
class $$ShoppingCartsTableProcessedTableManager
extends i0.ProcessedTableManager<
i0.GeneratedDatabase,
i2.$ShoppingCartsTable,
i2.ShoppingCart,
$$ShoppingCartsTableFilterComposer,
$$ShoppingCartsTableOrderingComposer,
$$ShoppingCartsTableProcessedTableManager,
$$ShoppingCartsTableInsertCompanionBuilder,
$$ShoppingCartsTableUpdateCompanionBuilder> {
const $$ShoppingCartsTableProcessedTableManager(super.$state);
}
typedef $$ShoppingCartsTableInsertCompanionBuilder = i2.ShoppingCartsCompanion
Function({
i0.Value<int> id,
});
typedef $$ShoppingCartsTableUpdateCompanionBuilder = i2.ShoppingCartsCompanion
Function({
i0.Value<int> id,
});
class $$ShoppingCartsTableTableManager extends i0.RootTableManager<
i0.GeneratedDatabase,
i2.$ShoppingCartsTable,
i2.ShoppingCart,
$$ShoppingCartsTableFilterComposer,
$$ShoppingCartsTableOrderingComposer,
$$ShoppingCartsTableProcessedTableManager,
$$ShoppingCartsTableInsertCompanionBuilder,
$$ShoppingCartsTableUpdateCompanionBuilder> {
$$ShoppingCartsTableTableManager(
i0.GeneratedDatabase db, i2.$ShoppingCartsTable table)
: super(i0.TableManagerState(
db: db,
table: table,
filteringComposer: $$ShoppingCartsTableFilterComposer(db, table),
orderingComposer: $$ShoppingCartsTableOrderingComposer(db, table),
getChildManagerBuilder: (p0) =>
$$ShoppingCartsTableProcessedTableManager(p0),
getUpdateCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
}) =>
i2.ShoppingCartsCompanion(
id: id,
),
getInsertCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
}) =>
i2.ShoppingCartsCompanion.insert(
id: id,
)));
}
class $$ShoppingCartEntriesTableFilterComposer extends i0
.FilterComposer<i0.GeneratedDatabase, i2.$ShoppingCartEntriesTable> {
$$ShoppingCartEntriesTableFilterComposer(super.db, super.table);
i0.ColumnFilters<int> get shoppingCartId =>
i0.ColumnFilters($table.shoppingCart);
i0.ComposableFilter shoppingCart(
i0.ComposableFilter Function($$ShoppingCartsTableFilterComposer f) f) {
return $composeWithJoins(
$db: $db,
$table: $table,
referencedTable: i3.ReadDatabaseContainer($db)
.resultSet<i2.$ShoppingCartsTable>('shopping_carts'),
getCurrentColumn: (f) => f.shoppingCart,
getReferencedColumn: (f) => f.id,
getReferencedComposer: (db, table) =>
$$ShoppingCartsTableFilterComposer(db, table),
builder: f);
}
i0.ColumnFilters<int> get itemId => i0.ColumnFilters($table.item);
i0.ComposableFilter item(
i0.ComposableFilter Function($$BuyableItemsTableFilterComposer f) f) {
return $composeWithJoins(
$db: $db,
$table: $table,
referencedTable: i3.ReadDatabaseContainer($db)
.resultSet<i1.$BuyableItemsTable>('buyable_items'),
getCurrentColumn: (f) => f.item,
getReferencedColumn: (f) => f.id,
getReferencedComposer: (db, table) =>
$$BuyableItemsTableFilterComposer(db, table),
builder: f);
}
}
class $$ShoppingCartEntriesTableOrderingComposer extends i0
.OrderingComposer<i0.GeneratedDatabase, i2.$ShoppingCartEntriesTable> {
$$ShoppingCartEntriesTableOrderingComposer(super.db, super.table);
i0.ColumnOrderings<int> get shoppingCartId =>
i0.ColumnOrderings($table.shoppingCart);
i0.ComposableOrdering shoppingCart(
i0.ComposableOrdering Function($$ShoppingCartsTableOrderingComposer o)
o) {
return $composeWithJoins(
$db: $db,
$table: $table,
referencedTable: i3.ReadDatabaseContainer($db)
.resultSet<i2.$ShoppingCartsTable>('shopping_carts'),
getCurrentColumn: (f) => f.shoppingCart,
getReferencedColumn: (f) => f.id,
getReferencedComposer: (db, table) =>
$$ShoppingCartsTableOrderingComposer(db, table),
builder: o);
}
i0.ColumnOrderings<int> get itemId => i0.ColumnOrderings($table.item);
i0.ComposableOrdering item(
i0.ComposableOrdering Function($$BuyableItemsTableOrderingComposer o) o) {
return $composeWithJoins(
$db: $db,
$table: $table,
referencedTable: i3.ReadDatabaseContainer($db)
.resultSet<i1.$BuyableItemsTable>('buyable_items'),
getCurrentColumn: (f) => f.item,
getReferencedColumn: (f) => f.id,
getReferencedComposer: (db, table) =>
$$BuyableItemsTableOrderingComposer(db, table),
builder: o);
}
}
class $$ShoppingCartEntriesTableProcessedTableManager
extends i0.ProcessedTableManager<
i0.GeneratedDatabase,
i2.$ShoppingCartEntriesTable,
i2.ShoppingCartEntry,
$$ShoppingCartEntriesTableFilterComposer,
$$ShoppingCartEntriesTableOrderingComposer,
$$ShoppingCartEntriesTableProcessedTableManager,
$$ShoppingCartEntriesTableInsertCompanionBuilder,
$$ShoppingCartEntriesTableUpdateCompanionBuilder> {
const $$ShoppingCartEntriesTableProcessedTableManager(super.$state);
}
typedef $$ShoppingCartEntriesTableInsertCompanionBuilder
= i2.ShoppingCartEntriesCompanion Function({
required int shoppingCart,
required int item,
i0.Value<int> rowid,
});
typedef $$ShoppingCartEntriesTableUpdateCompanionBuilder
= i2.ShoppingCartEntriesCompanion Function({
i0.Value<int> shoppingCart,
i0.Value<int> item,
i0.Value<int> rowid,
});
class $$ShoppingCartEntriesTableTableManager extends i0.RootTableManager<
i0.GeneratedDatabase,
i2.$ShoppingCartEntriesTable,
i2.ShoppingCartEntry,
$$ShoppingCartEntriesTableFilterComposer,
$$ShoppingCartEntriesTableOrderingComposer,
$$ShoppingCartEntriesTableProcessedTableManager,
$$ShoppingCartEntriesTableInsertCompanionBuilder,
$$ShoppingCartEntriesTableUpdateCompanionBuilder> {
$$ShoppingCartEntriesTableTableManager(
i0.GeneratedDatabase db, i2.$ShoppingCartEntriesTable table)
: super(i0.TableManagerState(
db: db,
table: table,
filteringComposer:
$$ShoppingCartEntriesTableFilterComposer(db, table),
orderingComposer:
$$ShoppingCartEntriesTableOrderingComposer(db, table),
getChildManagerBuilder: (p0) =>
$$ShoppingCartEntriesTableProcessedTableManager(p0),
getUpdateCompanionBuilder: ({
i0.Value<int> shoppingCart = const i0.Value.absent(),
i0.Value<int> item = const i0.Value.absent(),
i0.Value<int> rowid = const i0.Value.absent(),
}) =>
i2.ShoppingCartEntriesCompanion(
shoppingCart: shoppingCart,
item: item,
rowid: rowid,
),
getInsertCompanionBuilder: ({
required int shoppingCart,
required int item,
i0.Value<int> rowid = const i0.Value.absent(),
}) =>
i2.ShoppingCartEntriesCompanion.insert(
shoppingCart: shoppingCart,
item: item,
rowid: rowid,
)));
}
class $RelationalDatabaseManager { class $RelationalDatabaseManager {
final $RelationalDatabase _db; final $RelationalDatabase _db;
$RelationalDatabaseManager(this._db); $RelationalDatabaseManager(this._db);
$$BuyableItemsTableTableManager get buyableItems => i1.$$BuyableItemsTableTableManager get buyableItems =>
$$BuyableItemsTableTableManager(_db, _db.buyableItems); i1.$$BuyableItemsTableTableManager(_db, _db.buyableItems);
$$ShoppingCartsTableTableManager get shoppingCarts => i2.$$ShoppingCartsTableTableManager get shoppingCarts =>
$$ShoppingCartsTableTableManager(_db, _db.shoppingCarts); i2.$$ShoppingCartsTableTableManager(_db, _db.shoppingCarts);
$$ShoppingCartEntriesTableTableManager get shoppingCartEntries => i2.$$ShoppingCartEntriesTableTableManager get shoppingCartEntries =>
$$ShoppingCartEntriesTableTableManager(_db, _db.shoppingCartEntries); i2.$$ShoppingCartEntriesTableTableManager(_db, _db.shoppingCartEntries);
} }
class $ShoppingCartsTable extends i4.ShoppingCarts class $ShoppingCartsTable extends i3.ShoppingCarts
with i0.TableInfo<$ShoppingCartsTable, i2.ShoppingCart> { with i0.TableInfo<$ShoppingCartsTable, i2.ShoppingCart> {
@override @override
final i0.GeneratedDatabase attachedDatabase; final i0.GeneratedDatabase attachedDatabase;
@ -492,7 +176,73 @@ class ShoppingCartsCompanion extends i0.UpdateCompanion<i2.ShoppingCart> {
} }
} }
class $ShoppingCartEntriesTable extends i4.ShoppingCartEntries class $$ShoppingCartsTableFilterComposer
extends i0.FilterComposer<i0.GeneratedDatabase, i2.$ShoppingCartsTable> {
$$ShoppingCartsTableFilterComposer(super.db, super.table);
i0.ColumnFilters<int> get id => i0.ColumnFilters($table.id);
}
class $$ShoppingCartsTableOrderingComposer
extends i0.OrderingComposer<i0.GeneratedDatabase, i2.$ShoppingCartsTable> {
$$ShoppingCartsTableOrderingComposer(super.db, super.table);
i0.ColumnOrderings<int> get id => i0.ColumnOrderings($table.id);
}
class $$ShoppingCartsTableProcessedTableManager
extends i0.ProcessedTableManager<
i0.GeneratedDatabase,
i2.$ShoppingCartsTable,
i2.ShoppingCart,
$$ShoppingCartsTableFilterComposer,
$$ShoppingCartsTableOrderingComposer,
$$ShoppingCartsTableProcessedTableManager,
$$ShoppingCartsTableInsertCompanionBuilder,
$$ShoppingCartsTableUpdateCompanionBuilder> {
const $$ShoppingCartsTableProcessedTableManager(super.$state);
}
typedef $$ShoppingCartsTableInsertCompanionBuilder = i2.ShoppingCartsCompanion
Function({
i0.Value<int> id,
});
typedef $$ShoppingCartsTableUpdateCompanionBuilder = i2.ShoppingCartsCompanion
Function({
i0.Value<int> id,
});
class $$ShoppingCartsTableTableManager extends i0.RootTableManager<
i0.GeneratedDatabase,
i2.$ShoppingCartsTable,
i2.ShoppingCart,
$$ShoppingCartsTableFilterComposer,
$$ShoppingCartsTableOrderingComposer,
$$ShoppingCartsTableProcessedTableManager,
$$ShoppingCartsTableInsertCompanionBuilder,
$$ShoppingCartsTableUpdateCompanionBuilder> {
$$ShoppingCartsTableTableManager(
i0.GeneratedDatabase db, i2.$ShoppingCartsTable table)
: super(i0.TableManagerState(
db: db,
table: table,
filteringComposer: $$ShoppingCartsTableFilterComposer(db, table),
orderingComposer: $$ShoppingCartsTableOrderingComposer(db, table),
getChildManagerBuilder: (p0) =>
$$ShoppingCartsTableProcessedTableManager(p0),
getUpdateCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
}) =>
i2.ShoppingCartsCompanion(
id: id,
),
getInsertCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
}) =>
i2.ShoppingCartsCompanion.insert(
id: id,
)));
}
class $ShoppingCartEntriesTable extends i3.ShoppingCartEntries
with i0.TableInfo<$ShoppingCartEntriesTable, i2.ShoppingCartEntry> { with i0.TableInfo<$ShoppingCartEntriesTable, i2.ShoppingCartEntry> {
@override @override
final i0.GeneratedDatabase attachedDatabase; final i0.GeneratedDatabase attachedDatabase;
@ -690,3 +440,143 @@ class ShoppingCartEntriesCompanion
.toString(); .toString();
} }
} }
class $$ShoppingCartEntriesTableFilterComposer extends i0
.FilterComposer<i0.GeneratedDatabase, i2.$ShoppingCartEntriesTable> {
$$ShoppingCartEntriesTableFilterComposer(super.db, super.table);
i0.ColumnFilters<int> get shoppingCartId =>
i0.ColumnFilters($table.shoppingCart);
i0.ComposableFilter shoppingCart(
i0.ComposableFilter Function(i2.$$ShoppingCartsTableFilterComposer f) f) {
return $composeWithJoins(
$db: $db,
$table: $table,
referencedTable: i4.ReadDatabaseContainer($db)
.resultSet<i2.$ShoppingCartsTable>('shopping_carts'),
getCurrentColumn: (f) => f.shoppingCart,
getReferencedColumn: (f) => f.id,
getReferencedComposer: (db, table) =>
i2.$$ShoppingCartsTableFilterComposer(db, table),
builder: f);
}
i0.ColumnFilters<int> get itemId => i0.ColumnFilters($table.item);
i0.ComposableFilter item(
i0.ComposableFilter Function(i1.$$BuyableItemsTableFilterComposer f) f) {
return $composeWithJoins(
$db: $db,
$table: $table,
referencedTable: i4.ReadDatabaseContainer($db)
.resultSet<i1.$BuyableItemsTable>('buyable_items'),
getCurrentColumn: (f) => f.item,
getReferencedColumn: (f) => f.id,
getReferencedComposer: (db, table) =>
i1.$$BuyableItemsTableFilterComposer(db, table),
builder: f);
}
}
class $$ShoppingCartEntriesTableOrderingComposer extends i0
.OrderingComposer<i0.GeneratedDatabase, i2.$ShoppingCartEntriesTable> {
$$ShoppingCartEntriesTableOrderingComposer(super.db, super.table);
i0.ColumnOrderings<int> get shoppingCartId =>
i0.ColumnOrderings($table.shoppingCart);
i0.ComposableOrdering shoppingCart(
i0.ComposableOrdering Function(i2.$$ShoppingCartsTableOrderingComposer o)
o) {
return $composeWithJoins(
$db: $db,
$table: $table,
referencedTable: i4.ReadDatabaseContainer($db)
.resultSet<i2.$ShoppingCartsTable>('shopping_carts'),
getCurrentColumn: (f) => f.shoppingCart,
getReferencedColumn: (f) => f.id,
getReferencedComposer: (db, table) =>
i2.$$ShoppingCartsTableOrderingComposer(db, table),
builder: o);
}
i0.ColumnOrderings<int> get itemId => i0.ColumnOrderings($table.item);
i0.ComposableOrdering item(
i0.ComposableOrdering Function(i1.$$BuyableItemsTableOrderingComposer o)
o) {
return $composeWithJoins(
$db: $db,
$table: $table,
referencedTable: i4.ReadDatabaseContainer($db)
.resultSet<i1.$BuyableItemsTable>('buyable_items'),
getCurrentColumn: (f) => f.item,
getReferencedColumn: (f) => f.id,
getReferencedComposer: (db, table) =>
i1.$$BuyableItemsTableOrderingComposer(db, table),
builder: o);
}
}
class $$ShoppingCartEntriesTableProcessedTableManager
extends i0.ProcessedTableManager<
i0.GeneratedDatabase,
i2.$ShoppingCartEntriesTable,
i2.ShoppingCartEntry,
$$ShoppingCartEntriesTableFilterComposer,
$$ShoppingCartEntriesTableOrderingComposer,
$$ShoppingCartEntriesTableProcessedTableManager,
$$ShoppingCartEntriesTableInsertCompanionBuilder,
$$ShoppingCartEntriesTableUpdateCompanionBuilder> {
const $$ShoppingCartEntriesTableProcessedTableManager(super.$state);
}
typedef $$ShoppingCartEntriesTableInsertCompanionBuilder
= i2.ShoppingCartEntriesCompanion Function({
required int shoppingCart,
required int item,
i0.Value<int> rowid,
});
typedef $$ShoppingCartEntriesTableUpdateCompanionBuilder
= i2.ShoppingCartEntriesCompanion Function({
i0.Value<int> shoppingCart,
i0.Value<int> item,
i0.Value<int> rowid,
});
class $$ShoppingCartEntriesTableTableManager extends i0.RootTableManager<
i0.GeneratedDatabase,
i2.$ShoppingCartEntriesTable,
i2.ShoppingCartEntry,
$$ShoppingCartEntriesTableFilterComposer,
$$ShoppingCartEntriesTableOrderingComposer,
$$ShoppingCartEntriesTableProcessedTableManager,
$$ShoppingCartEntriesTableInsertCompanionBuilder,
$$ShoppingCartEntriesTableUpdateCompanionBuilder> {
$$ShoppingCartEntriesTableTableManager(
i0.GeneratedDatabase db, i2.$ShoppingCartEntriesTable table)
: super(i0.TableManagerState(
db: db,
table: table,
filteringComposer:
$$ShoppingCartEntriesTableFilterComposer(db, table),
orderingComposer:
$$ShoppingCartEntriesTableOrderingComposer(db, table),
getChildManagerBuilder: (p0) =>
$$ShoppingCartEntriesTableProcessedTableManager(p0),
getUpdateCompanionBuilder: ({
i0.Value<int> shoppingCart = const i0.Value.absent(),
i0.Value<int> item = const i0.Value.absent(),
i0.Value<int> rowid = const i0.Value.absent(),
}) =>
i2.ShoppingCartEntriesCompanion(
shoppingCart: shoppingCart,
item: item,
rowid: rowid,
),
getInsertCompanionBuilder: ({
required int shoppingCart,
required int item,
i0.Value<int> rowid = const i0.Value.absent(),
}) =>
i2.ShoppingCartEntriesCompanion.insert(
shoppingCart: shoppingCart,
item: item,
rowid: rowid,
)));
}

View File

@ -218,3 +218,86 @@ class BuyableItemsCompanion extends i0.UpdateCompanion<i1.BuyableItem> {
.toString(); .toString();
} }
} }
class $$BuyableItemsTableFilterComposer
extends i0.FilterComposer<i0.GeneratedDatabase, i1.$BuyableItemsTable> {
$$BuyableItemsTableFilterComposer(super.db, super.table);
i0.ColumnFilters<int> get id => i0.ColumnFilters($table.id);
i0.ColumnFilters<String> get description =>
i0.ColumnFilters($table.description);
i0.ColumnFilters<int> get price => i0.ColumnFilters($table.price);
}
class $$BuyableItemsTableOrderingComposer
extends i0.OrderingComposer<i0.GeneratedDatabase, i1.$BuyableItemsTable> {
$$BuyableItemsTableOrderingComposer(super.db, super.table);
i0.ColumnOrderings<int> get id => i0.ColumnOrderings($table.id);
i0.ColumnOrderings<String> get description =>
i0.ColumnOrderings($table.description);
i0.ColumnOrderings<int> get price => i0.ColumnOrderings($table.price);
}
class $$BuyableItemsTableProcessedTableManager extends i0.ProcessedTableManager<
i0.GeneratedDatabase,
i1.$BuyableItemsTable,
i1.BuyableItem,
$$BuyableItemsTableFilterComposer,
$$BuyableItemsTableOrderingComposer,
$$BuyableItemsTableProcessedTableManager,
$$BuyableItemsTableInsertCompanionBuilder,
$$BuyableItemsTableUpdateCompanionBuilder> {
const $$BuyableItemsTableProcessedTableManager(super.$state);
}
typedef $$BuyableItemsTableInsertCompanionBuilder = i1.BuyableItemsCompanion
Function({
i0.Value<int> id,
required String description,
required int price,
});
typedef $$BuyableItemsTableUpdateCompanionBuilder = i1.BuyableItemsCompanion
Function({
i0.Value<int> id,
i0.Value<String> description,
i0.Value<int> price,
});
class $$BuyableItemsTableTableManager extends i0.RootTableManager<
i0.GeneratedDatabase,
i1.$BuyableItemsTable,
i1.BuyableItem,
$$BuyableItemsTableFilterComposer,
$$BuyableItemsTableOrderingComposer,
$$BuyableItemsTableProcessedTableManager,
$$BuyableItemsTableInsertCompanionBuilder,
$$BuyableItemsTableUpdateCompanionBuilder> {
$$BuyableItemsTableTableManager(
i0.GeneratedDatabase db, i1.$BuyableItemsTable table)
: super(i0.TableManagerState(
db: db,
table: table,
filteringComposer: $$BuyableItemsTableFilterComposer(db, table),
orderingComposer: $$BuyableItemsTableOrderingComposer(db, table),
getChildManagerBuilder: (p0) =>
$$BuyableItemsTableProcessedTableManager(p0),
getUpdateCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
i0.Value<String> description = const i0.Value.absent(),
i0.Value<int> price = const i0.Value.absent(),
}) =>
i1.BuyableItemsCompanion(
id: id,
description: description,
price: price,
),
getInsertCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
required String description,
required int price,
}) =>
i1.BuyableItemsCompanion.insert(
id: id,
description: description,
price: price,
)));
}

View File

@ -187,6 +187,82 @@ class WordsCompanion extends i0.UpdateCompanion<i1.Word> {
} }
} }
class $$WordsTableFilterComposer
extends i0.FilterComposer<i0.GeneratedDatabase, i1.$WordsTable> {
$$WordsTableFilterComposer(super.db, super.table);
i0.ColumnFilters<String> get word => i0.ColumnFilters($table.word);
i0.ColumnFilters<int> get usages => i0.ColumnFilters($table.usages);
}
class $$WordsTableOrderingComposer
extends i0.OrderingComposer<i0.GeneratedDatabase, i1.$WordsTable> {
$$WordsTableOrderingComposer(super.db, super.table);
i0.ColumnOrderings<String> get word => i0.ColumnOrderings($table.word);
i0.ColumnOrderings<int> get usages => i0.ColumnOrderings($table.usages);
}
class $$WordsTableProcessedTableManager extends i0.ProcessedTableManager<
i0.GeneratedDatabase,
i1.$WordsTable,
i1.Word,
$$WordsTableFilterComposer,
$$WordsTableOrderingComposer,
$$WordsTableProcessedTableManager,
$$WordsTableInsertCompanionBuilder,
$$WordsTableUpdateCompanionBuilder> {
const $$WordsTableProcessedTableManager(super.$state);
}
typedef $$WordsTableInsertCompanionBuilder = i1.WordsCompanion Function({
required String word,
i0.Value<int> usages,
i0.Value<int> rowid,
});
typedef $$WordsTableUpdateCompanionBuilder = i1.WordsCompanion Function({
i0.Value<String> word,
i0.Value<int> usages,
i0.Value<int> rowid,
});
class $$WordsTableTableManager extends i0.RootTableManager<
i0.GeneratedDatabase,
i1.$WordsTable,
i1.Word,
$$WordsTableFilterComposer,
$$WordsTableOrderingComposer,
$$WordsTableProcessedTableManager,
$$WordsTableInsertCompanionBuilder,
$$WordsTableUpdateCompanionBuilder> {
$$WordsTableTableManager(i0.GeneratedDatabase db, i1.$WordsTable table)
: super(i0.TableManagerState(
db: db,
table: table,
filteringComposer: $$WordsTableFilterComposer(db, table),
orderingComposer: $$WordsTableOrderingComposer(db, table),
getChildManagerBuilder: (p0) =>
$$WordsTableProcessedTableManager(p0),
getUpdateCompanionBuilder: ({
i0.Value<String> word = const i0.Value.absent(),
i0.Value<int> usages = const i0.Value.absent(),
i0.Value<int> rowid = const i0.Value.absent(),
}) =>
i1.WordsCompanion(
word: word,
usages: usages,
rowid: rowid,
),
getInsertCompanionBuilder: ({
required String word,
i0.Value<int> usages = const i0.Value.absent(),
i0.Value<int> rowid = const i0.Value.absent(),
}) =>
i1.WordsCompanion.insert(
word: word,
usages: usages,
rowid: rowid,
)));
}
class $MatchResultsTable extends i2.MatchResults class $MatchResultsTable extends i2.MatchResults
with i0.TableInfo<$MatchResultsTable, i1.MatchResult> { with i0.TableInfo<$MatchResultsTable, i1.MatchResult> {
@override @override
@ -444,3 +520,92 @@ class MatchResultsCompanion extends i0.UpdateCompanion<i1.MatchResult> {
.toString(); .toString();
} }
} }
class $$MatchResultsTableFilterComposer
extends i0.FilterComposer<i0.GeneratedDatabase, i1.$MatchResultsTable> {
$$MatchResultsTableFilterComposer(super.db, super.table);
i0.ColumnFilters<int> get id => i0.ColumnFilters($table.id);
i0.ColumnFilters<String> get teamA => i0.ColumnFilters($table.teamA);
i0.ColumnFilters<String> get teamB => i0.ColumnFilters($table.teamB);
i0.ColumnFilters<bool> get teamAWon => i0.ColumnFilters($table.teamAWon);
}
class $$MatchResultsTableOrderingComposer
extends i0.OrderingComposer<i0.GeneratedDatabase, i1.$MatchResultsTable> {
$$MatchResultsTableOrderingComposer(super.db, super.table);
i0.ColumnOrderings<int> get id => i0.ColumnOrderings($table.id);
i0.ColumnOrderings<String> get teamA => i0.ColumnOrderings($table.teamA);
i0.ColumnOrderings<String> get teamB => i0.ColumnOrderings($table.teamB);
i0.ColumnOrderings<bool> get teamAWon => i0.ColumnOrderings($table.teamAWon);
}
class $$MatchResultsTableProcessedTableManager extends i0.ProcessedTableManager<
i0.GeneratedDatabase,
i1.$MatchResultsTable,
i1.MatchResult,
$$MatchResultsTableFilterComposer,
$$MatchResultsTableOrderingComposer,
$$MatchResultsTableProcessedTableManager,
$$MatchResultsTableInsertCompanionBuilder,
$$MatchResultsTableUpdateCompanionBuilder> {
const $$MatchResultsTableProcessedTableManager(super.$state);
}
typedef $$MatchResultsTableInsertCompanionBuilder = i1.MatchResultsCompanion
Function({
i0.Value<int> id,
required String teamA,
required String teamB,
required bool teamAWon,
});
typedef $$MatchResultsTableUpdateCompanionBuilder = i1.MatchResultsCompanion
Function({
i0.Value<int> id,
i0.Value<String> teamA,
i0.Value<String> teamB,
i0.Value<bool> teamAWon,
});
class $$MatchResultsTableTableManager extends i0.RootTableManager<
i0.GeneratedDatabase,
i1.$MatchResultsTable,
i1.MatchResult,
$$MatchResultsTableFilterComposer,
$$MatchResultsTableOrderingComposer,
$$MatchResultsTableProcessedTableManager,
$$MatchResultsTableInsertCompanionBuilder,
$$MatchResultsTableUpdateCompanionBuilder> {
$$MatchResultsTableTableManager(
i0.GeneratedDatabase db, i1.$MatchResultsTable table)
: super(i0.TableManagerState(
db: db,
table: table,
filteringComposer: $$MatchResultsTableFilterComposer(db, table),
orderingComposer: $$MatchResultsTableOrderingComposer(db, table),
getChildManagerBuilder: (p0) =>
$$MatchResultsTableProcessedTableManager(p0),
getUpdateCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
i0.Value<String> teamA = const i0.Value.absent(),
i0.Value<String> teamB = const i0.Value.absent(),
i0.Value<bool> teamAWon = const i0.Value.absent(),
}) =>
i1.MatchResultsCompanion(
id: id,
teamA: teamA,
teamB: teamB,
teamAWon: teamAWon,
),
getInsertCompanionBuilder: ({
i0.Value<int> id = const i0.Value.absent(),
required String teamA,
required String teamB,
required bool teamAWon,
}) =>
i1.MatchResultsCompanion.insert(
id: id,
teamA: teamA,
teamB: teamB,
teamAWon: teamAWon,
)));
}

View File

@ -497,7 +497,7 @@ class _TableManagerWriter {
/// If this column is a foreign key to another table, add a filter and ordering /// If this column is a foreign key to another table, add a filter and ordering
/// for the referenced table /// for the referenced table
if (referenced != null) { if (referenced != null && !referenced.$1.hasExistingRowClass) {
final (referencedTable, referencedCol) = referenced; final (referencedTable, referencedCol) = referenced;
final referencedTableNames = _TableManagerWriter( final referencedTableNames = _TableManagerWriter(
referencedTable, scope, dbScope, databaseGenericName); referencedTable, scope, dbScope, databaseGenericName);