Skip to content

Commit

Permalink
Merge pull request #216 from netglade/safe_mapping
Browse files Browse the repository at this point in the history
Safe mapping
  • Loading branch information
PfeiJit authored May 14, 2024
2 parents 6c956ae + 5ea35d3 commit b00ad8f
Show file tree
Hide file tree
Showing 42 changed files with 1,345 additions and 248 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 b00ad8f

Please sign in to comment.