You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linux 5.15.167.4-microsoft-standard-WSL2 x86_64 x86_64
What steps can reproduce the bug?
import{Database}from'bun:sqlite';newDatabase('first.sqlite',{create: true});console.log('database was created');try{newDatabase('first.sqlite',{create: false});}catch(err){console.error('but fails to open',err)}
runs with following output
database was created
but fails to open 2 |
3 | new Database('first.sqlite', { create: true });
4 | console.log('database was created');
5 |
6 | try {
7 | new Database('first.sqlite', { create: false });
^
SQLiteError: bad parameter or other API misuse
errno: 21
code: "SQLITE_MISUSE"
at new Database (bun:sqlite:236:28)
at /home/galaxy/askuai/test.ts:7:5
The text was updated successfully, but these errors were encountered:
What version of Bun is running?
1.1.38+bf2f153f5
What platform is your computer?
Linux 5.15.167.4-microsoft-standard-WSL2 x86_64 x86_64
What steps can reproduce the bug?
runs with following output
The text was updated successfully, but these errors were encountered: