Meteor-Community-Packages / Meteor-Community-Packages/ground-db

groundDB: how to add another database?

Open
#201 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
569
Forks
77
PR merge metrics
No merged PRs in 30d

Description

I use groundDB:

`tasks = new Ground.Collection(null)`

I need add another database. I try add new database:

```
tasks = new Ground.Collection(null)
history = new Ground.Collection(null)
```

But i get error:

> Uncaught Error: Storage.localStorage “null” is already in use

If add name:

```
Details = new Ground.Collection("details");
Details.insert({ "title": '111' })
```

And try:

`Details.find({}).fetch()`

in console empty array []

how to add another database?

[git](https://github.com/StekolschikovV/TTD/blob/master/client/main/main.js)

![](https://cdn-enterprise.discourse.org/meteor/uploads/default/optimized/2X/f/fbba6142b36c92b98e82a527b1925d09c18b258a_1_690x388.PNG)

Contributor guide

Open the contributing guide

Research direction

Start with the referenced client/main/main.js and the Ground.Collection usages shown in the issue. Reproduce the storage error with multiple collections, then inspect the GroundDB collection and storage documentation or tests to determine the supported setup. Done should clearly explain or verify how multiple databases or collections are configured.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
database
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.