News for hackers. Stuff that matters.
Re:Graphviz: Open-source graph visualization software by enter-haken on Monday January 17, 2022 @09:01AM (#29966596)
I use graphviz to get a quick postgresql schema overview (good for small to medium databases)

https://github.com/enter-haken/schema

Re:Graphviz: Open-source graph visualization software by ccakes on Monday January 17, 2022 @08:00PM (#29973580)
Autogenerated database documentation is often pretty hit and miss but tbls[1] does a pretty good job in that space. Especially when you comment on your tables, fields, views, functions etc (which is a good habit anyway!) the output is quite useful

[1] https://github.com/k1LoW/tbls

Re:Graphviz: Open-source graph visualization software by magicpointer on Monday January 17, 2022 @03:27PM (#29971328)
In a similar vein there is Schemaspy[1]. It generates a static documentation website for your DB, which also uses GraphViz to build ER diagrams.

[1] https://github.com/schemaspy/schemaspy

Re:Graphviz: Open-source graph visualization software by kh1 on Monday January 17, 2022 @10:46AM (#29967703)
That looks really cool. Would you possibly share the script?
Re:Graphviz: Open-source graph visualization software by enter-haken on Monday January 17, 2022 @10:55AM (#29967830)
It's part of the repo.

https://github.com/enter-haken/schema/blob/master/schema.sh

It's a mixture of sed, awk and sql.

Re:Graphviz: Open-source graph visualization software by kh1 on Monday January 17, 2022 @12:15PM (#29968829)
Oh I did take a quick look at the repo but didn't notice it was in the SQL. Thank you!