question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Generate DDL Files

See original GitHub issue

Issue 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:closed
  • Created 4 years ago
  • Reactions:8
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
imnotjamescommented, Oct 7, 2020

Is anybody looking into this? Is there a way that we could get this done?

We’re always accepting pull requests 😃

2reactions
nvander1commented, Aug 14, 2019

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found