Skip to content

Support for Multiple Databases - Breaking Change Since v1.3.36 #44

@Irrelon

Description

@Irrelon

In order to support multiple named databases Forerunner's instantiation has changed slightly. In previous versions you only had access to a single database that you instantiated via:

var db = new ForerunnerDB();

Now you have access to multiple databases via from the main forerunner instance but this requires that you change your instantiation code to:

var fdb = new ForerunnerDB();
var db = fdb.db('myDatabaseName');

Multiple database support is a key requirement that unfortunately requires we change the instantiation pattern as detailed above. Although this is a fundamental change to the way ForerunnerDB is instantiated we believe the impact to your projects will be minimal as it should only require you to update at most 2 lines of your project's code in order to "get it working" again.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions