Mongo 2.1.6
A pure Fantom driver for MongoDB

Mongo is a pure Fantom driver for MongoDB.

Mongo driver features:

  • Developed against the MongoDB Stable API v1 from MongoDB 5.2+ (compatible with MongoDB 3.6+)
  • Support for multi-document, multi-collection transactions
  • Support for retryable read and write operations
  • Support for Replica Set connection URLs
  • Pooled Connection Manager for multi-threaded use and automatic topology scanning and connection fail over
  • Pluggable authentication with a default SCRAM-SHA-1 over SASL implementation
  • zlib wire compression

Mongo API features:

  • Standard CRUD commands: insert(), find(), update(), replace(), and delete()
  • Special commands: count(), aggregate(), findAndUpdate(), findAndDelete()
  • Index support commands: create(), ensure() and drop()
  • Large query cursor support
  • Text indexes and text searching
  • Simplified Query DSL syntax

    ALIEN-AID: See Morphia for a complete Fantom to MongoDB object mapping library!

Read more...

Install

To install Mongo with Fantom Pod Manager, cut'n'paste the following into a cmd prompt, terminal or shell:

Or to install Mongo with the Fantom Repository Manager (fanr), cut'n'paste the following into a cmd prompt, terminal or shell:

Or to install manually, download the pod file and copy it to the %FAN_HOME%/lib/fan/ directory.

afMongo.pod (142.45 kB)

Use

To use Mongo in a Fantom project, add a dependency to the project's build.fan:

depends = ["sys 1.0", ..., "afMongo 2.1.6 - 2.1"]

Documentation

Information

Meta information on the Mongo pod:

Published by
Steve Eynon
Organisation
Fantom-Factory Ltd
Pod file size
142.45 kB
Licence
ISC
Built on
30th Jun 2022
Source code
via Git at https://github.com/Fantom-Factory/afMongo
Depends on
afBson, afConcurrent, concurrent, inet, sys, util
Referenced by
afEggbox, afMorphia, afMorphiaIoc
Javascript Compatible
No

Dependency Graph

  Use mouse to re-position pods

Release History

There have been 21 releases of Mongo: