Generate DDL Files
See original GitHub issueIssue type:
[X] question [ ] bug report [ ] feature request [ ] documentation issue
Database system/driver:
[ ] cordova
[ ] mongodb
[ ] mssql
[ ] mysql
/ mariadb
[ ] oracle
[ ] postgres
[ ] cockroachdb
[ ] sqlite
[ ] sqljs
[ ] react-native
[ ] expo
TypeORM version:
[X] latest
[ ] @next
[ ] 0.x.x
(or put your version here)
Steps to reproduce or a small repository showing the problem:
Is there a way to generate a DDL file from the source code / or the database? I’m not able to find anything like it.
Our goal is to generate the schema from the source code for a specific database. Then pass those files to our DBs for creating the schema + tables on the production db. (there is no other way for us to do it 😦 )
Any ideas on how this can be done?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:8
- Comments:6 (3 by maintainers)
Top Results From Across the Web
4.2 Generating DDL
4.2 Generating DDL ; On the Workspace home page, click the SQL Workshop ; Click Utilities ; Click Generate DDL ; Click Create...
Read more >Generate DDL - Advanced query tool
Use this window to generate DDL statements for your database objects. ... This option allows you to generate your DDL into separate files...
Read more >Generate a DDL file - Amazon S3
To generate DDL statements in a file using the Entity Relationship Diagram (ERD) Creation utility: Click Tailoring > Tailoring Tools > ERD Create...
Read more >DDL File (What It Is & How to Open One) - Lifewire
DDL files can be opened with EclipseLink or IntelliJ IDEA. Another method is to use an application that supports reading text files, like...
Read more >How to Export an SQL DDL File From SQL Server ... - Vertabelo
Now, to export an SQL DDL file from SQL Server Management Studio for this entire database, right-click the database name and select Tasks ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We’re always accepting pull requests 😃
Our team would also love to see this feature. We have been using a workaround by launching our application and telling TypeOrm to synchronize the database. But this is clunky for us, and would also love the ability to generate the DDLs.
I assume this is possible since TypeORM executes create table statements for you, but I’m not sure of the scope of code change involved that would allow this behavior.
@pleerock @AlexMesser @daniel-lang @rustamwin @iz-iznogood