I want to get "create table clause" by a sql.
Or can I use Knex.js to get "create table clause"?
I've seen this "How to generate the "create table" sql statement for an existing table in postgreSQL"
However, most of the answers uses pg_dump which I can't use.
And there're some sql answers, but:
- lack of specifying schema
- lack of indexes or primay key
So, I asked the question again but differently:
- no use of pg_dump