How to see a SQLite database content with Visual Studio Code

前端 未结 4 607
情话喂你
情话喂你 2020-12-29 21:32

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

相关标签:
4条回答
  • 2020-12-29 21:54
    1. Just install the sqlite extension in your visual studio code: VSCode-SQLite
    2. Then you can right-click on the database file and click "Open Database". SQLite database in visual studio code
    3. Expand the database. expanded sqlite database in vscode
    4. Click the play button in front of each table to view table contents. SQLite table in visual studio code
    0 讨论(0)
  • 2020-12-29 21:54

    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':

    0 讨论(0)
  • 2020-12-29 22:13

    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.

    0 讨论(0)
  • 2020-12-29 22:19

    I published an extension to query and explore sqlite3 databases

    vscode-sqlite

    0 讨论(0)
提交回复
热议问题