Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jonasmalacofilho/mongo-haxe-managers

MongoDB typed managers for Haxe
https://github.com/jonasmalacofilho/mongo-haxe-managers

Last synced: 25 days ago
JSON representation

MongoDB typed managers for Haxe

Awesome Lists containing this project

README

        

# MongoDB typed managers for Haxe

Specialized macro-built managers for MongoDB collections that work on top of
the [mongodb] library. Please note that the current version expects a
particular [fork] of the mongodb library.

Finally, the manager build macros are only tested on recent Haxe git versions,
[9044292] or newer. Builds for these versions are available on the [hxbuilds]
website.

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

[mongodb]: https://github.com/MattTuttle/mongo-haxe-driver
[fork]: https://github.com/jonasmalacofilho/mongo-haxe-driver/tree/managers
[9044292]: https://github.com/HaxeFoundation/haxe/commit/9044292
[hxbuilds]: http://hxbuilds.s3-website-us-east-1.amazonaws.com/builds/haxe/index.html

## Features

Feature summary:

- Type checking for queries and documents
- Type check queries
- Type check insert/update documents
- Ensure proper types for returned objects (TODO)
- [PLANNED] Support projections; change to `Manager`
- [PLANNED] Shorter syntax for simple queries

Document cache and other possible manager/ORM/SPOD responsibilities are not
planned for the time being.

## Samples

See `test/compile/TestBuilder.hx` and `test/compile/TestTyper.hx`.

## Limitations

It is not possible to build a manager inside the module where its document type
is defined.