1.1.2
This commit is contained in:
parent
c82febdf32
commit
de9d9d39d2
3 changed files with 5 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
# angel_mongo
|
# angel_mongo
|
||||||
|
|
||||||
[![version 1.1.1](https://img.shields.io/badge/pub-1.1.1-brightgreen.svg)](https://pub.dartlang.org/packages/angel_mongo)
|
[![version 1.1.2](https://img.shields.io/badge/pub-1.1.2-brightgreen.svg)](https://pub.dartlang.org/packages/angel_mongo)
|
||||||
[![build status](https://travis-ci.org/angel-dart/mongo.svg?branch=master)](https://travis-ci.org/angel-dart/mongo)
|
[![build status](https://travis-ci.org/angel-dart/mongo.svg?branch=master)](https://travis-ci.org/angel-dart/mongo)
|
||||||
|
|
||||||
MongoDB-enabled services for the Angel framework.
|
MongoDB-enabled services for the Angel framework.
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
part of angel_mongo.services;
|
part of angel_mongo.services;
|
||||||
|
|
||||||
class MongoTypedService<T> extends MongoService {
|
class MongoTypedService<T> extends MongoService {
|
||||||
MongoTypedService(DbCollection collection, {bool debug})
|
MongoTypedService(DbCollection collection, {bool allowRemoveAll, bool debug})
|
||||||
: super(collection, debug: debug == true) {
|
: super(collection,
|
||||||
|
allowRemoveAll: allowRemoveAll == true, debug: debug == true) {
|
||||||
if (!reflectType(T).isAssignableTo(reflectType(Model)))
|
if (!reflectType(T).isAssignableTo(reflectType(Model)))
|
||||||
throw new Exception(
|
throw new Exception(
|
||||||
"If you specify a type for MongoService, it must extend Model.");
|
"If you specify a type for MongoService, it must extend Model.");
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: angel_mongo
|
name: angel_mongo
|
||||||
version: 1.1.1
|
version: 1.1.2
|
||||||
description: MongoDB-enabled services for the Angel framework.
|
description: MongoDB-enabled services for the Angel framework.
|
||||||
author: Tobe O <thosakwe@gmail.com>
|
author: Tobe O <thosakwe@gmail.com>
|
||||||
homepage: https://github.com/angel-dart/angel_mongo
|
homepage: https://github.com/angel-dart/angel_mongo
|
||||||
|
|
Loading…
Reference in a new issue