pg-generator icon indicating copy to clipboard operation
pg-generator copied to clipboard

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

Open richard-edwards opened this issue 10 months ago • 3 comments

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.

richard-edwards avatar Apr 15 '24 17:04 richard-edwards

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.

ozum avatar Apr 15 '24 17:04 ozum

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.

richard-edwards avatar Apr 15 '24 17:04 richard-edwards

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

ozum avatar Apr 16 '24 04:04 ozum