Skip to content

Commit

Permalink
Fixed docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Pacane committed Feb 12, 2016
1 parent 8d6a101 commit 26046c9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
17 changes: 8 additions & 9 deletions README.md
@@ -1,23 +1,22 @@
#Mongo-dart - MongoDB driver for Dart programming language.

# Mongo-dart - MongoDB driver for Dart programming language.

[![Build Status](https://travis-ci.org/mongo-dart/mongo_dart.svg?branch=master)](https://travis-ci.org/mongo-dart/mongo_dart)

[![Coverage Status](https://coveralls.io/repos/github/mongo-dart/mongo_dart/badge.svg?branch=master)](https://coveralls.io/github/mongo-dart/mongo_dart?branch=master)

Server-side driver library for MongoDb implemented in pure Dart.

##Basic usage
## Basic usage

###Obtaining connection
### Obtaining connection

```dart
Db db = new Db("mongodb://localhost:27017/mongo_dart-blog");
await db.open();
```

###Querying
### Querying


Method `find` returns stream of maps and accept query parameters, usually build by fluent API query builder
Expand Down Expand Up @@ -51,7 +50,7 @@ Method `findOne` take the same parameter and returns `Future` of just one map (m
Take notice in these samples that unlike mongo shell such parameters as projection (`fields`), `limit` and `skip`
are passed as part of regular query through query builder

###Inserting documents
### Inserting documents

```dart
Expand All @@ -61,7 +60,7 @@ are passed as part of regular query through query builder
]);
```

###Updating documents
### Updating documents

You can update whole document with method `save`

Expand All @@ -80,7 +79,7 @@ or you can perform field level updates with method `update` and top level getter
```

###Removing documents
### Removing documents

```dart
Expand Down Expand Up @@ -127,7 +126,7 @@ main() async {
}
```

###See also:
### See also

- [API Doc](http://www.dartdocs.org/documentation/mongo_dart/0.1.39)

Expand Down
3 changes: 3 additions & 0 deletions changelog.md
@@ -1,5 +1,8 @@
#Recent change notes

###0.2.5+1
Fixed markdown for pub.

###0.2.5
- Moved mongo_dart project to a new organization on [GitHub](https://github.com/mongo-dart/mongo_dart).
- Authentication schemes now use Secure Random coming from `dart:math` since 1.14. ** Note that this version now
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
@@ -1,5 +1,5 @@
name: mongo_dart
version: 0.2.5
version: 0.2.5+1
authors:
- Vadim Tsushko <vadimtsushko@gmail.com>
- Ted Sander <ted@tedsander.com>
Expand Down

0 comments on commit 26046c9

Please sign in to comment.