←back to thread

464 points sqliteonline | 2 comments | | HN request time: 0.014s | source
1. hoherd ◴[] No.45574179[source]
I immediately tried to run .schema and a syntax error was returned.
replies(1): >>45575384 #
2. tuveson ◴[] No.45575384[source]
I assume this is because sqliteonline is using the sqlite library, not running the literal sqlite command line application. Per item 7 in the faq (https://sqlite.org/faq.html), the way to get that info would be to run something like the following:

SELECT * FROM sqlite_schema WHERE type='table' ORDER BY name;

The website does seem to correctly return the names/schemas of whatever tables you've created if you run the command above, but the editor (incorrectly) adds red squigglies around the command, since I guess it doesn't realize this is allowed.