Irrelon / ForerunnerDB

A JavaScript database with mongo-like query language, data-binding support, runs in browsers and hybrid mobile apps as a client-side DB or on the server via Node.js!
http://www.irrelon.com
721 stars 72 forks source link

Add customdriver method to Persist module #249

Closed fohletex closed 4 years ago

fohletex commented 4 years ago

I recently ran into issues, where I wanted to use ForerunnerDB, but had no access to either window.Storage nor IndexedDB, WebSQL and localStorage. I further didn't want to use NodePersist. Hence, some research brought me to the localforage#defineDriver-API. Thus, I extended the Persist module with a customdriver method, which allows you to import a custom localforage driver for any other storage destinations, than the available ones.

fohletex commented 4 years ago

hmmm ... testbear fails by travis CI - on my machine it perfectly passes .... - seems as if there is a version conflict in the setup configuration - could that be?

                    _     _
                   ( \---/ )   
                    ( . . )
             ___,--.(__Y__),--.___
            |   `--'       `--'   |
            | Test Bear is HAPPY! |
            |    _,-.     ,-._    |
            |___(ooO )___( Ooo)___|
                 `--'     `--' 

EDIT: Saw, that the error is already documented: https://github.com/Irrelon/ForerunnerDB/pull/246

Irrelon commented 4 years ago

If testbear is happy, I am happy :)

Irrelon commented 4 years ago

Actually that's some nice work there, thanks for documenting as well!

Irrelon commented 4 years ago

Merged!