github / github/codeql

Javascript Sqlite database opening

Open
#7,597 1 comment 0 reactions 0 assignees View on GitHub
acknowledged JS question
Dominant language
CodeQL
Stars
10.1k
Forks
2.1k
Avg merge
2d 15h
Merged PRs (30d)
141

Description

Based on documentation on [npmjs](https://www.npmjs.com/package/sqlite#Usage), the following is a way to open database.

```
(async() => {
// open the database
const db2 = await open({
filename: '/tmp/database.db',
driver: sqlite3.Database
})
})()
```

The current model for sqlite only supports calls like `sqlite3.Database()`. I was wondering if this should be added? I do see that there'll be no end in sight updating models like this 😅

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.