Add Query class
This commit is contained in:
parent
6c2894a06c
commit
bf24371932
12 changed files with 108 additions and 0 deletions
|
@ -50,6 +50,16 @@ class OrmGenerator extends GeneratorForAnnotation<ORM> {
|
||||||
clazz
|
clazz
|
||||||
..name = '${rc.pascalCase}Orm'
|
..name = '${rc.pascalCase}Orm'
|
||||||
..abstract = true;
|
..abstract = true;
|
||||||
|
|
||||||
|
// Next, add method stubs.
|
||||||
|
// * getAll
|
||||||
|
// * getById
|
||||||
|
// *
|
||||||
|
}));
|
||||||
|
|
||||||
|
// Create `FooQuery` class
|
||||||
|
lib.body.add(new Class((clazz) {
|
||||||
|
clazz..name = '${rc.pascalCase}Query';
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
10
angel_orm_generator/test/models/author.orm.g.dart
Normal file
10
angel_orm_generator/test/models/author.orm.g.dart
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
|
||||||
|
// **************************************************************************
|
||||||
|
// OrmGenerator
|
||||||
|
// **************************************************************************
|
||||||
|
|
||||||
|
import 'dart:async';
|
||||||
|
import 'author.dart';
|
||||||
|
|
||||||
|
abstract class AuthorOrm {}
|
7
angel_orm_generator/test/models/book.orm.g.dart
Normal file
7
angel_orm_generator/test/models/book.orm.g.dart
Normal 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".
|
10
angel_orm_generator/test/models/car.orm.g.dart
Normal file
10
angel_orm_generator/test/models/car.orm.g.dart
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
|
||||||
|
// **************************************************************************
|
||||||
|
// OrmGenerator
|
||||||
|
// **************************************************************************
|
||||||
|
|
||||||
|
import 'dart:async';
|
||||||
|
import 'car.dart';
|
||||||
|
|
||||||
|
abstract class CarOrm {}
|
10
angel_orm_generator/test/models/customer.orm.g.dart
Normal file
10
angel_orm_generator/test/models/customer.orm.g.dart
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
|
||||||
|
// **************************************************************************
|
||||||
|
// OrmGenerator
|
||||||
|
// **************************************************************************
|
||||||
|
|
||||||
|
import 'dart:async';
|
||||||
|
import 'customer.dart';
|
||||||
|
|
||||||
|
abstract class CustomerOrm {}
|
10
angel_orm_generator/test/models/foot.orm.g.dart
Normal file
10
angel_orm_generator/test/models/foot.orm.g.dart
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
|
||||||
|
// **************************************************************************
|
||||||
|
// OrmGenerator
|
||||||
|
// **************************************************************************
|
||||||
|
|
||||||
|
import 'dart:async';
|
||||||
|
import 'foot.dart';
|
||||||
|
|
||||||
|
abstract class FootOrm {}
|
10
angel_orm_generator/test/models/fruit.orm.g.dart
Normal file
10
angel_orm_generator/test/models/fruit.orm.g.dart
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
|
||||||
|
// **************************************************************************
|
||||||
|
// OrmGenerator
|
||||||
|
// **************************************************************************
|
||||||
|
|
||||||
|
import 'dart:async';
|
||||||
|
import 'fruit.dart';
|
||||||
|
|
||||||
|
abstract class FruitOrm {}
|
7
angel_orm_generator/test/models/leg.orm.g.dart
Normal file
7
angel_orm_generator/test/models/leg.orm.g.dart
Normal 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".
|
10
angel_orm_generator/test/models/order.orm.g.dart
Normal file
10
angel_orm_generator/test/models/order.orm.g.dart
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
|
||||||
|
// **************************************************************************
|
||||||
|
// OrmGenerator
|
||||||
|
// **************************************************************************
|
||||||
|
|
||||||
|
import 'dart:async';
|
||||||
|
import 'order.dart';
|
||||||
|
|
||||||
|
abstract class OrderOrm {}
|
10
angel_orm_generator/test/models/role.orm.g.dart
Normal file
10
angel_orm_generator/test/models/role.orm.g.dart
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
|
||||||
|
// **************************************************************************
|
||||||
|
// OrmGenerator
|
||||||
|
// **************************************************************************
|
||||||
|
|
||||||
|
import 'dart:async';
|
||||||
|
import 'role.dart';
|
||||||
|
|
||||||
|
abstract class RoleOrm {}
|
7
angel_orm_generator/test/models/tree.orm.g.dart
Normal file
7
angel_orm_generator/test/models/tree.orm.g.dart
Normal 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".
|
7
angel_orm_generator/test/models/user.orm.g.dart
Normal file
7
angel_orm_generator/test/models/user.orm.g.dart
Normal 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".
|
Loading…
Reference in a new issue