Network Printer Manager

    @teamwork/sharedb-mingo-memory

    3.0.1 • Public • Published

    ShareDBMingo

    NPM Version Build Status Coverage Status

    A database adapter for sharedb that implements a subset of Mongo operations using an in-memory database. This adapter can be useful for running application tests faster by not requiring a full database. It is also used by tests for sharedb itself.

    Usage

    var ShareDBMingo = require('@teamwork/sharedb-mingo-memory');
    var db = new ShareDBMingo();

    Another form is useful at times: ShareDBMingo.extendMemoryDB(MemoryDB). This creates a new ShareDBMingo class that extends from a particular MemoryDB class, in case there are more than one available. This is particularly important to ensure sharedb tests aren't testing the version of sharedb being used by sharedb-mingo-memory.

    Queries

    sharedb-mingo-memory uses mingo and supports the same queries mingo supports. In addition, some special top-level fields are supported, and map to Mongo cursor methods:

    • $orderby (TODO: rename to $sort)
    • $skip
    • $limit
    • $count

    Other special operators that are supported in sharedb-mongo such as $mapReduce and $aggregate aren't supported and will throw an error if used.

    Keywords

    none

    Install

    npm i @teamwork/sharedb-mingo-memory

    DownloadsWeekly Downloads

    9

    Version

    3.0.1

    License

    MIT

    Unpacked Size

    16.6 kB

    Total Files

    9

    Last publish

    Collaborators

    • peter.lazarov94
    • kclaur
    • yonson2
    • xlerida
    • pktw
    • jesushorcajo
    • eddieg152
    • decob
    • pinkkis
    • tigh
    • ilserodriguez
    • jamesh182
    • k823
    • imrafalman
    • jimbei
    • ryanlacey
    • tod11
    • pmatiukas
    • glebory
    • osexton1
    • tadhgmccarthy
    • devnikolz
    • nimitzpro
    • jamesbowen5
    • klaidas
    • crssn
    • mdziedzinski
    • chrisjtwomey
    • simonbb
    • bmurphy2019
    • saurabhgaglani
    • vg500
    • devdk404
    • ma-jerez
    • callumsteedman
    • fergalbittles
    • monika.piotrowska
    • ivayloovcharov
    • ismaelpenalver
    • kadenn
    • nathanmcclelland
    • sinderpl
    • fatihunlu
    • caelum119
    • nathandennis
    • smusick
    • stevenr84
    • lmcaree
    • jordanteamwork
    • mjteamwork
    • matteobandiera
    • stdiopt
    • jacknev
    • felipemrodrigues
    • roryok
    • duncan1a
    • garycremen
    • dommurphytw
    • shaydoc75
    • bmckay397
    • sineadcullinane
    • miccc
    • shanepm
    • sheyla.marhuenda
    • eamonnmg
    • techfort
    • rafaeljusto
    • 1001hz
    • ryanlync
    • michaelwebcork
    • felixls
    • 4ver
    • emmetcampion
    • bakaat
    • smithalan2
    • aetheon
    • dawidmyslak
    • mike182uk
    • teamwork-dev
    • cianwoods
    • miralize
    • kersh
    • jamesdraper5
    • aodhom
    • ripexz
    • morethanaprogrammer
    • jatochnietdan
    • yannig
    • samternent
    • pshad0w
    • irltopper
    • dmackey
    • yawlhead91
    • gordonmurray
    • daveohalloran
    • gkubisa
    • neayto
    • i.dobrovolskyi
    • hollymc
    • jessicaaferraz
    • arielpiecha-teamwork
    • cesartw
    • miquel.vallespir
    • jasoncheung94
    • jamesmccullough
    • garymcbay
    • ekm1908
    • romanodesouzatw
    • adamcarroll-teamwork
    • hmarron
    • asajaroff
    • bradderz
    • patrickaodh
    • rossi99
    • vercadium
    • cristian.teamwork
    • andyantrim
    • steve.walsh
    • victoriasloan1995
    • guillermofgorostidi
    • donnchadhcoffey
    • lucasleandro1204
    • atilkan
    • ktopouzi
    • aidancasey
    • gear54rus
    • viniciussaran
    • samyuktasreekanth
    • valerio-farriciello
    • ozhi
    • netoramalhotw
    • ap7t
    • luketynan
    • marciliotw
    • alekaei
    • twsanjay
    • chrismccormack
    • jaspiertw