You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently a database container has to be started and the SQL-schema has to be imported to read the SQL-schema with sql-ts.
This is quite time consuming in software development.
I suggest an option to read the SQL-schema directly from a file including CREATE TABLE statements.
The text was updated successfully, but these errors were encountered:
I have no intention of importing directly from CREATE statements. However it does support reading from a definition object file so the database doesn't have to be online. This is really meant for an intermediary step, not as the primary way of generating the definitions.
// Fetch database schema once using a config.constasObject=awaitClient.fromConfig(config).fetchDatabase().toObject()// Serialise the output, then the file can be modified and reimported without the db.constdefinition=awaitClient.fromObject(asObject,config).toTypescript()
Currently a database container has to be started and the SQL-schema has to be imported to read the SQL-schema with sql-ts.
This is quite time consuming in software development.
I suggest an option to read the SQL-schema directly from a file including CREATE TABLE statements.
The text was updated successfully, but these errors were encountered: