Skip to content

Commit

Permalink
managers extends public classes
Browse files Browse the repository at this point in the history
  • Loading branch information
dickermoshe committed Oct 28, 2024
1 parent e92c32b commit eb6433d
Show file tree
Hide file tree
Showing 24 changed files with 446 additions and 133 deletions.
1 change: 0 additions & 1 deletion docs/lib/snippets/drift_files/custom_queries.drift.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import 'package:drift_docs/snippets/_shared/todo_tables.drift.dart' as i1;

abstract class $MyDatabase extends i0.GeneratedDatabase {
$MyDatabase(i0.QueryExecutor e) : super(e);
$MyDatabaseManager get managers => $MyDatabaseManager(this);
late final i1.$CategoriesTable categories = i1.$CategoriesTable(this);
late final i1.$TodoItemsTable todoItems = i1.$TodoItemsTable(this);
i0.Selectable<CategoriesWithCountResult> categoriesWithCount() {
Expand Down
1 change: 0 additions & 1 deletion docs/lib/snippets/modular/many_to_many/json.drift.dart
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ typedef $$ShoppingCartsTableProcessedTableManager = i0.ProcessedTableManager<

abstract class $JsonBasedDatabase extends i0.GeneratedDatabase {
$JsonBasedDatabase(i0.QueryExecutor e) : super(e);
$JsonBasedDatabaseManager get managers => $JsonBasedDatabaseManager(this);
late final i1.$BuyableItemsTable buyableItems = i1.$BuyableItemsTable(this);
late final i2.$ShoppingCartsTable shoppingCarts =
i2.$ShoppingCartsTable(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,6 @@ typedef $$ShoppingCartEntriesTableProcessedTableManager

abstract class $RelationalDatabase extends i0.GeneratedDatabase {
$RelationalDatabase(i0.QueryExecutor e) : super(e);
$RelationalDatabaseManager get managers => $RelationalDatabaseManager(this);
late final i1.$BuyableItemsTable buyableItems = i1.$BuyableItemsTable(this);
late final i2.$ShoppingCartsTable shoppingCarts =
i2.$ShoppingCartsTable(this);
Expand Down
5 changes: 4 additions & 1 deletion drift/example/main.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions drift/test/extensions/geopoly_integration_test.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion drift/test/generated/custom_tables.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion drift/test/generated/todos.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'package:mockito/annotations.dart';
import 'package:uuid/uuid.dart';

// Generate mocks for drift
@GenerateNiceMocks([MockSpec<TodoDb>()])
@GenerateNiceMocks([MockSpec<TodoDb>(), MockSpec<$TodoDbManager>()])
// ignore: unused_import
import 'todos.mocks.dart';

Expand Down
5 changes: 4 additions & 1 deletion drift/test/generated/todos.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit eb6433d

Please sign in to comment.