donut-party / dbxray

view your database's metadata skeleton and generate schemas from it 🩻
MIT License
120 stars 11 forks source link

Simple output #7

Closed NoahTheDuke closed 1 year ago

NoahTheDuke commented 1 year ago

I really like schema.rb as a documentation method and want to use dbxray as a way to replicate it. The current output of dbxray is extremely detailed and verbose (specifically the :raw part of each entry).

I would like to get a less detailed output somehow, one that retains the basics (column name and type and uniqueness and defaults etc), and maybe puts foreign keys or indexes or constraints in a single line or a two entry map (which columns, title).

Thank you so much, this tool is very very cool.

flyingmachine commented 1 year ago

This is a great suggestion! I will find a way to work it in.

flyingmachine commented 1 year ago

OK, I've added an :include-raw? option so that the raw output is opt-in. How's that work for you? It's available in 0.0.70

NoahTheDuke commented 1 year ago

Looking great! I think there are some ways to make it work better for my use-case but I can do that with normal Clojure function-writing.

flyingmachine commented 1 year ago

awesome! but also feel free to share your ideas, the library's very alpha so I love hearing what folks would like to see