Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Database nSQL_DB doesn't exist! #156

Closed
plentylife opened this issue Jul 6, 2019 · 2 comments
Closed

Error: Database nSQL_DB doesn't exist! #156

plentylife opened this issue Jul 6, 2019 · 2 comments
Labels
bug

Comments

@plentylife
Copy link

@plentylife plentylife commented Jul 6, 2019

Which version are you using?
2.3.4

Describe the bug
When trying to listen to the 'ready' event to perform actions once the db is ready, the following error occurs Error: Database nSQL_DB doesn't exist!

Example
nSQL().on('ready', nsqlReadyResolver)

Expected behavior
NanoSQL should wait until the database is ready

I've tried to change the DB id using .useDatabase, but that makes no difference since this.dbs object is empty when nSQL().on executes

Perhaps there's a new way to wait for a database to be ready for operations?

@ClickSimply

This comment has been minimized.

Copy link
Owner

@ClickSimply ClickSimply commented Jul 9, 2019

Hmm, looks like a bug in the event system. Will try to get this patched sometime this week.

Thanks for letting me know!

ClickSimply pushed a commit that referenced this issue Jul 23, 2019
@ClickSimply

This comment has been minimized.

Copy link
Owner

@ClickSimply ClickSimply commented Jul 23, 2019

This is resolved in 2.3.5.

@ClickSimply ClickSimply added the bug label Aug 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.