ozum / pg-generator

Template Based Scaffolding Tool for PostgreSQL. Create files and ORM models automatically.
http://www.pg-generator.com
MIT License
91 stars 21 forks source link

Question: Could this be used to generate markdown from any table? #109

Open richard-edwards opened 6 months ago

richard-edwards commented 6 months ago

I am looking for a way to query a postgres table and generate a set of markdown files based on one or more templates. I understand that this currently uses the database meta data of tables, fields etc. to generate code files etc. but I was wondering if it had the ability to take a table or view, say 'select * from my_document_view" and run against a generator to build a directory of markdown files that would be consumed by a site builder.

ozum commented 6 months ago

No, this is a database reverse engineering tool, so it only supports meta-data (table names, column names, view names, column data types, etc.). It can't use data from table rows.

richard-edwards commented 6 months ago

Ok thank you for the quick reply. Any suggestions for something like that? I could probably knock something together quickly but I imagine there has to be something out there already.

ozum commented 6 months ago

Unfortunately, I don't know any tool for this purpose.