AlexCovizzi / vscode-sqlite

VSCode extension to explore and query SQLite databases.
Apache License 2.0
202 stars 23 forks source link

Extension syntax error #251

Open ThomasKFitzgerald opened 2 months ago

ThomasKFitzgerald commented 2 months ago

Terminal window:

PS C:\DevOps\Python\Learning\Databases> sqlite3 SQLite version 3.46.1 2024-08-13 09:16:08 (UTF-16 console I/O) Enter ".help" for usage hints. Connected to a transient in-memory database. Use ".open FILENAME" to reopen on a persistent database. sqlite> .open test.db sqlite> CREATE TABLE investments (coin_id TEXT, currency TEXT, anount REAL); sqlite> .tables investments sqlite> .headers on sqlite> .mode column sqlite> pragma table_info('investments'); cid name type notnull dflt_value pk


0 coin_id TEXT 0 0 1 currency TEXT 0 0 2 anount REAL 0 0 sqlite> INSERT INTO investments VALUES ('bitcoin', 1.0, 'usd'); sqlite> SELECT * FROM investments; coin_id currency anount


bitcoin 1.0 usd sqlite> .exit PS C:\DevOps\Python\Learning\Databases>

This is a new DB.

image

When clicking open database this is the error:
" [9:58:20 AM][vscode-sqlite][INFO] Activating extension vscode-sqlite v0.14.1... [9:58:20 AM][vscode-sqlite][INFO] Extension activated. [10:03:05 AM][vscode-sqlite][ERROR] Failed to open database 'c:\DevOps\Python\Learning\Databases\test.db': Parse error near line 4: no such column: "table" - should this be a string literal in single-quotes? aster WHERE (type="table" OR type="view")
error here ---^ "

Chisrra commented 2 months ago

I have the same issue

surbina85 commented 2 months ago

Currently having the same issue, I'm on Mac (Silicon) and can't open any .sqlite file despite being able to open them in other apps or extensions. I get the exact error about parson in line 4

yayformojo commented 2 months ago

Same issue - VSCode version is: Version: 1.93.1 Commit: 38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40 Date: 2024-09-11T17:20:05.685Z Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Code/1.93.1 Chrome/124.0.6367.243 Electron/30.4.0 Safari/537.36

readandwrite864 commented 1 month ago

same here

possible duplicate of this