From df136add69fcb1982a05661efd2d365bc154898f Mon Sep 17 00:00:00 2001 From: Tobe O Date: Fri, 24 Aug 2018 10:18:43 -0400 Subject: [PATCH] Added constant annotations --- angel_orm/lib/src/annotations.dart | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/angel_orm/lib/src/annotations.dart b/angel_orm/lib/src/annotations.dart index a4611b47..c5ac0266 100644 --- a/angel_orm/lib/src/annotations.dart +++ b/angel_orm/lib/src/annotations.dart @@ -1,9 +1,16 @@ -const Orm orm = const Orm(); +const Orm mongoDBOrm = const Orm(OrmType.mongoDB); + +const Orm rethinkDBOrm = const Orm(OrmType.rethinkDB); + +const Orm postgreSqlOrm = const Orm(OrmType.postgreSql); + +const Orm mySqlOrm = const Orm(OrmType.mySql); class Orm { + final OrmType type; final String tableName; - const Orm({this.tableName}); + const Orm(this.type, {this.tableName}); } enum OrmType {