github / github/codeql

Javascript Sqlite database opening

Aperta
#7,597 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
acknowledged JS question
Lingua principale
CodeQL
Stelle
10.1k
Fork
2.1k
Merge medio
2g 15h
PR unite (30g)
141

Descrizione

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 😅

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.