Add Query class

This commit is contained in:
Tobe O 2018-08-24 10:01:21 -04:00
parent 6c2894a06c
commit bf24371932
12 changed files with 108 additions and 0 deletions

View file

@ -50,6 +50,16 @@ class OrmGenerator extends GeneratorForAnnotation<ORM> {
clazz
..name = '${rc.pascalCase}Orm'
..abstract = true;
// Next, add method stubs.
// * getAll
// * getById
// *
}));
// Create `FooQuery` class
lib.body.add(new Class((clazz) {
clazz..name = '${rc.pascalCase}Query';
}));
});
}

View file

@ -0,0 +1,10 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
// **************************************************************************
// OrmGenerator
// **************************************************************************
import 'dart:async';
import 'author.dart';
abstract class AuthorOrm {}

View file

@ -0,0 +1,7 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
// **************************************************************************
// OrmGenerator
// **************************************************************************
// Error: Cannot infer SQL column type for field "author" with type "Author".

View file

@ -0,0 +1,10 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
// **************************************************************************
// OrmGenerator
// **************************************************************************
import 'dart:async';
import 'car.dart';
abstract class CarOrm {}

View file

@ -0,0 +1,10 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
// **************************************************************************
// OrmGenerator
// **************************************************************************
import 'dart:async';
import 'customer.dart';
abstract class CustomerOrm {}

View file

@ -0,0 +1,10 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
// **************************************************************************
// OrmGenerator
// **************************************************************************
import 'dart:async';
import 'foot.dart';
abstract class FootOrm {}

View file

@ -0,0 +1,10 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
// **************************************************************************
// OrmGenerator
// **************************************************************************
import 'dart:async';
import 'fruit.dart';
abstract class FruitOrm {}

View file

@ -0,0 +1,7 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
// **************************************************************************
// OrmGenerator
// **************************************************************************
// Error: Cannot infer SQL column type for field "foot" with type "Foot".

View file

@ -0,0 +1,10 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
// **************************************************************************
// OrmGenerator
// **************************************************************************
import 'dart:async';
import 'order.dart';
abstract class OrderOrm {}

View file

@ -0,0 +1,10 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
// **************************************************************************
// OrmGenerator
// **************************************************************************
import 'dart:async';
import 'role.dart';
abstract class RoleOrm {}

View file

@ -0,0 +1,7 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
// **************************************************************************
// OrmGenerator
// **************************************************************************
// Error: Cannot infer SQL column type for field "fruits" with type "List".

View file

@ -0,0 +1,7 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
// **************************************************************************
// OrmGenerator
// **************************************************************************
// Error: Cannot infer SQL column type for field "roles" with type "List".