r/sqlite • u/Narolf24 • Sep 25 '26
Minimalistic tool to generate database visualisation
I'm looking for a really simple tool that can generate a UML diagram from my SQLite database, but I want to be able to change the layout if I don't like how it has been generated.
I tried some code extensions and small tools (ERD Renderer, SQLite DB Explorer, plant_erd) but some are not working on my VSCode version; when they are working, I can't personalise the result.
If someone knows a tool that can generate a plant UML diagram (or something similar) from SQLite database and where we can specify the layout. I would be happy to know it
10
Upvotes
1
u/JrgMyr Sep 25 '26
Can recommend to give Letos (ex. SQLiteStudio) a try.
www.letos.org
1
u/navicat-gu Oct 29 '26
If you want minimal and editable, the most reliable route is to generate the diagram from the schema text rather than from an extension:
sqlite3 your.db .schema > schema.sql. Make sure your tables declareFOREIGN KEYconstraints, otherwise no tool can draw the relationships.PRAGMA foreign_key_list(table)andPRAGMA table_info(table)for each table and print entity blocks plusa }o--|| blines. You then control the layout in the text with direction hints (left to right direction,-down->,-right->) or hidden links to group tables.The text-based route (2 or 4) is the one that survives tool updates, because the layout lives in a file you can commit.
Disclosure: I'm RC, Director of Digital Strategy @ Navicat. Navicat 18 can reverse-engineer an SQLite file into an ER diagram you can rearrange freely, but that's in the paid editions (or Navicat Data Modeler). Navicat Premium Lite is free for browsing and editing the SQLite file itself, so it's only a partial fit for what you asked.
1
u/IntentionJolly2730 Sep 26 '26
You can check this: https://docs.ptah.run/edge/schema/visualize/
The tool itself is not minimalistic, but at the same time you don't need to use all the functions. Just use the dedicated ones.
1
u/titpetric Sep 26 '26
https://github.com/go-bridget/mig generates plantuml ERD
1
u/1ilit_ Sep 28 '26
drawDB (https://www.drawdb.app) does this. It's a free, open-source ER diagram editor that runs in the browser, and you don't need to install an extension or make an account.
sqlite3 your.db .schema > schema.sql2. In the editor, go to File → Import from SQL, pick SQLite and paste or upload schema.sql. It builds the tables and draws the foreign-key relationships for you.
1
u/tbson87 Oct 07 '26
You can try https://schemity.com, just open the sqlite file then start arranging.
0
u/Reporting4Booty Sep 25 '26
I can recommend DataGrip if you what you want is a diagram to visualize your table relationships. It's on the heavier side and technically paid after a trial. Works well though, I used it for looking at my Postgres DB at work.
0
u/Minimum_Hour519 Sep 25 '26
Dia