I\'m new to Django
and try to see a SQLite3
file.
I\'m looking for a way to open and view a database content with visual studio code
For anyone stumbling upon this and is still confused..
Follow the first 3 steps in Puya's answer, and at the very bottom of the Explorer panel there should be a tab called: > SQLITE EXPLORER
(mine was minimised, even after clicking 'Open Database' - making it hard to notice)
In here, you should be able to see the contents of your database file. You can then right click a table and 'Show Table':
Obviously, there is not yet a corresponding extension for vscode. Me, if necessary, I use "SQLite-Database-Browser". Very simple and sufficient for my purposes.
If you want to give it a try: SQLite-Database-Browser
By the way, using Django with another database, such as PostgreSQL
or MySQL
, is not too difficult.
I published an extension to query and explore sqlite3 databases
vscode-sqlite