Skip to content

Commit

Permalink
Safe mapping implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
PfeiJit committed May 10, 2024
1 parent 6c956ae commit 7ff2127
Show file tree
Hide file tree
Showing 37 changed files with 1,301 additions and 243 deletions.
10 changes: 6 additions & 4 deletions examples/drift/lib/db.drift.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ class $TodosTable extends Todos with TableInfo<$TodosTable, Todo> {
@override
List<GeneratedColumn> get $columns => [id, title, content, category];
@override
String get aliasedName => _alias ?? 'todos';
String get aliasedName => _alias ?? actualTableName;
@override
String get actualTableName => 'todos';
String get actualTableName => $name;
static const String $name = 'todos';
@override
VerificationContext validateIntegrity(Insertable<Todo> instance,
{bool isInserting = false}) {
Expand Down Expand Up @@ -278,9 +279,10 @@ class $CategoriesTable extends Categories
@override
List<GeneratedColumn> get $columns => [id, description];
@override
String get aliasedName => _alias ?? 'categories';
String get aliasedName => _alias ?? actualTableName;
@override
String get actualTableName => 'categories';
String get actualTableName => $name;
static const String $name = 'categories';
@override
VerificationContext validateIntegrity(Insertable<Category> instance,
{bool isInserting = false}) {
Expand Down
90 changes: 77 additions & 13 deletions examples/drift/lib/mappr.auto_mappr.dart

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

90 changes: 77 additions & 13 deletions examples/example/lib/enum.auto_mappr.dart

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

Loading

0 comments on commit 7ff2127

Please sign in to comment.