-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FeatureRequest] generate defineTable ts code with mammoth-cli #191
Comments
And based on what should the defineTable() calls be generated? Your database schema or your migrations or what are you thinking? |
> mammoth generate -c postgres://localhost/my_db -o src/tables.ts
# Now my_db should have a table 'migration' and with a migration record. And comes out two files 'migrations/001.sql' and 'src/tables.ts' Well, in this use case, we don't need to include it in ci. |
Right, so you want to generate all your defineTable() calls based your existing schema. Question: when you introduce a new table, how do you do that? Do you not write your own defineTable call? Or do you only want to generate the defineTable calls once so you can more easily start using Mammoth? |
There are just 2 development mode:
|
So we can include it in our build process.
The text was updated successfully, but these errors were encountered: