Skip to content

nSQL: Can't do a query before the database is connected! #214

@LearningProcesss

Description

@LearningProcesss

Which version are you using?
"@nano-sql/core": "^2.3.7"
"snap-db": "^1.1.6"

Describe the bug
Query "select" throw exception

Expected behavior
Get data from specified table

Example
`const dbList = nSQL().listDatabases();

console.log('dblist', dbList); //-> display one database : "organizer"

nSQL().useDatabase("organizer");

nSQL("watchings").query("select").exec().then((rows) => {
console.log(rows)
});`

strange fact: upsert works well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions