How do you get create table statement given a specific pgTable programmatically?
Seems that using drizzle-kit and migration file generation is required.
1 Reply
Seems that this was an issue before, https://github.com/drizzle-team/drizzle-orm/discussions/331 but no solution yet
GitHub
Make simple migration statements available on table objects · drizz...
I have a use case where it would be really nice if a table object had a method similar to query.toSQL() that returned (or executed) the SQL query required to create that table and any indices. From...