Added constant annotations
This commit is contained in:
parent
849c4281bc
commit
df136add69
1 changed files with 9 additions and 2 deletions
|
@ -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 {
|
class Orm {
|
||||||
|
final OrmType type;
|
||||||
final String tableName;
|
final String tableName;
|
||||||
|
|
||||||
const Orm({this.tableName});
|
const Orm(this.type, {this.tableName});
|
||||||
}
|
}
|
||||||
|
|
||||||
enum OrmType {
|
enum OrmType {
|
||||||
|
|
Loading…
Reference in a new issue