I have worked with PostgreSQL, primarily using the Django ORM (started with MySQL and migrated to PostgreSQL) and using pgAdmin for maintenance tasks.
I am now working on an open source project developing an alternative Q&A engine, ( Codidact.org if anyone is interested). We will be using PostgreSQL but are still working out a lot of details and no ORM has been selected yet.
Can anyone recommend a way to iteratively develop a database structure - tables, fields, FK relationships, etc. - in a way that would make it easy to produce both:
- A development (detailed) and/or management (higher level) diagram of the functional components of the database.
- CREATE TABLE commands compatible with PostgreSQL.
The goal is to have a schema definition that effectively generates both human-useful (diagram - i.e., not just "read the SQL code") and machine-readable code.
sed
andawk
scripts on them to convert them to PostgreSQL? There's also the (again excellent) Data Modeller from Oracle - you might be able to take the same approach? You will have to do some "legwork" - but depending on the size of your project, it might be a worthwhile approach. This might be of interest? p.s. welcome to the forum! 👍