mongo_dart library

Server-side driver library for MongoDb implemented in pure Dart. As most of IO in Dart, mongo_dart is totally async -using Futures and Streams. .

Classes

Abs
$abs operator [...]
Accumulator
Basic accumulation operator
Add
$add operator [...]
AddFields
$addFields aggregation stage [...]
AddToSet
$addToSet operator
AEList
Aggregation expression's list [...]
AEObject
Aggregation expression's object [...]
AggregateCursor
AggregationExpr
Aggregation expression
AggregationPipelineBuilder
Aggregation pipeline builder
AggregationStage
Aggregation stage base
And
$and operator
ArrayElemAt
$arrayElemAt operator [...]
ArrayToObject
$arrayToObject operator [...]
Authenticator
Avg
$avg operator
BSON
BsonArray
BsonBinary
BsonBoolean
BsonCode
BsonCString
BsonDate
BsonDecimal128
format 1° bit sign (0 positive - 1 negative) (S) 17 2°-18° Combination field (G) [...]
BsonDouble
BsonInt
BsonLong
BsonMap
BsonNull
BsonObject
BsonRegexp
BsonString
Bucket
$bucket aggregation stage [...]
BucketAuto
$bucketAuto aggregation stage [...]
Builder
Builder interface
Case
Case branch for Switch operator
Ceil
$ceil operator [...]
ChunkHandler
ClientFirst
ClientLast
Cmp
$cmp operator [...]
CommandCursor
CompletedStep
Concat
$concat operator
ConcatArrays
$concatArrays operator [...]
Cond
$cond operator [...]
ConnectionPool
A connection pool that limits the number of concurrent connections to a MongoDB server. [...]
Const
Constant expression
Convert
$convert operator
Count
$count aggregation stage [...]
CryptoStrengthStringGenerator
Cursor
DateFromParts
$dateFromParts
DateFromString
$dateFromString operator
DateToParts
$dateToParts operator
DayOfMonth
$dayOfMonth operator
DayOfWeek
$dayOfWeek operator
DayOfYear
$dayOfYear operator
Db
DbCollection
DbCommand
DBPointer
DbRef
Divide
$divide operator [...]
Eq
$eq operator [...]
Exp
$exp operator [...]
Expr
$expr operator
Facet
$facet aggregation stage [...]
Field
Field path expression
Filter
$filter operator [...]
First
$first operator
Floor
$floor operator [...]
Granularity
Granularity for BucketAuto [...]
GridFS
GridFSFile
GridIn
GridOut
Group
$group aggregation stage [...]
Gt
$gt operator [...]
Gte
$gte operator [...]
Hour
$hour operator
IfNull
$ifNull operator [...]
In
$in operator [...]
IndexOfArray
$indexOfArray operator [...]
IndexOfBytes
$indexOfBytes operator
IndexOfCP
$indexOfCP operator
IsArray
$isArray operator [...]
IsoDateFromParts
ISO date from parts [...]
IsoDayOfWeek
$isoDayOfWeek operator
IsoWeek
$isoWeek operator
IsoWeekYear
$isoWeekYear operator
Last
$last operator
Let
$let operator
Limit
$limit aggregation stage [...]
ListCollectionsCursor
ListIndexesCursor
Literal
Literal expression [...]
Ln
$ln operator [...]
Log
$log operator [...]
Log10
$log10 operator [...]
Lookup
$lookup aggregation stage [...]
Lt
$lt operator [...]
Lte
lte operator [...]
Ltrim
$ltrim operator
MapOp
$map operator [...]
Match
$match aggregation stage [...]
Max
$max operator
MaxKey
MergeObjects
$mergeObjects operator [...]
Millisecond
$millisecond operator
Min
$min operator
MinKey
Minute
$minute operator
Mod
$mod operator [...]
ModifierBuilder
MongoDbCRAuthenticator
MongoGetMoreMessage
MongoInsertMessage
MongoKillCursorsMessage
MongoMessage
MongoMessageHandler
MongoQueryMessage
MongoRemoveMessage
MongoReplyMessage
MongoUpdateMessage
Month
$month operator
Multiply
$multiply operator [...]
Ne
$ne operator [...]
Not
$not operator
ObjectId
ObjectToArray
$objectToArray [...]
Operator
Basic aggregation operator
Or
$or operator
PacketConverter
Pow
$pow operator [...]
Project
$project aggragation stage [...]
Push
$push operator
RandomStringGenerator
Range
$range operator [...]
Reduce
$reduce operator [...]
RegexFind
$regexFind operator
RegexFindAll
$regexFindAll operator
RegexMatch
$regexMatch operator
ReplaceRoot
$replaceRoot aggregation stage [...]
ReplaceWith
$replaceWith aggregation stage [...]
ReverseArray
$reverseArray operator [...]
Round
$round operator [...]
Rtrim
$rtrim operator
SaslAuthenticator
SaslConversation
SaslMechanism
SaslStep
ScramSha1Authenticator
ScramSha1Mechanism
Second
$second operator
SelectorBuilder
ServerConfig
SetStage
$set aggregation stage [...]
Size
$size operator [...]
Skip
$skip aggregation stage [...]
Slice
$slice operator [...]
Sort
$sort aggregation stage [...]
SortByCount
$sortByCount [...]
Split
$split operator
Sqrt
$sqrt operator [...]
State
StdDevPop
$stdDevPop operator
StdDevSamp
$stdDevSamp operator
StrCaseCmp
$strcasecmp operator
StrLenBytes
$strLenBytes operator
StrLenCP
$strLenCP operator
SubstrBytes
$substrBytes operator
SubstrCP
$substrCP operator
Subtract
$subtract operator [...]
Sum
$sum operator
Switch
$switch operator [...]
Timestamp
ToBool
$toBool operator
ToDate
$toDate operator
ToDecimal
$toDecimal operator
ToDouble
$toDouble operator
ToInt
$toInt operator
ToLong
$toLong operator
ToLower
$toLower operator
ToObjectId
$toObjectId operator
ToString
$toString operator
ToUpper
$toUpper operator
Trim
$trim operator
Trunc
$trunc operator [...]
Type
$type operator
Unset
$unset aggregation stage [...]
Unwind
$unwind aggregation stage [...]
UsernamePasswordCredential
Var
Aggregation expression's variable [...]
Week
$week operator
WriteConcern
WriteConcern control the acknowledgment of write operations with various paramaters.
Year
$year operator
Zip
$zip operator [...]

Extensions

RationalExtension

Constants

bsonDecimal128 → const int
19
keyQuery → const String
r'$query'
noSecureRequestError → const String
'The socket connection has been reset by peer.' '\nPossible causes:' '\n- Trying to connect to an ssl/tls encrypted database without specifiyng' '\n either the query p…

Properties

exponent1Mask Int64
final
exponent2Mask Int64
final
finite2Mask Int64
mask for finite - case 2 (01100000)
final
infinityMask Int64
mask for infinity (01111000)
final
infinityValue Rational
final
maxExponent Int64
final
maxInt64 Rational
final
maxSignificand Rational
final
maxUInt64 Rational
final
modify ModifierBuilder
read-only
naNMask Int64
mask for NaN (01111100)
final
significand1Mask Int64
final
significand2impliedMask Int64
final
significand2Mask Int64
final
signMask Int64
mask for Sign (10000000)
final
where SelectorBuilder
read-only

Functions

bsonObjectFrom(dynamic value) BsonObject
bsonObjectFromTypeByte(int typeByte) BsonObject
createAuthenticator(AuthenticationScheme authenticationScheme, Db db, UsernamePasswordCredential credentials) Authenticator
elementSize(String name, dynamic value) int
parsePayload(String payload) Map<String, String>

Enums

AuthenticationScheme

Typedefs

MonadicBlock(Map<String, dynamic> value) → void

Exceptions / Errors

ConnectionException
MongoDartError