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
| schema | PgSchema | An object containing Postgres dialect tables, enums and relations |
194
-
| out | string | The output directory and file name. Uses the current working directory as the root|
194
+
| out?| string | The output directory and file name. Uses the current working directory as the root. If not set, it will not write the DBML file.|
195
195
| relational | boolean? | If set to true, it will create references based on the relations generated with the `relations` function instead of foreign keys. Useful for databases that don't support foreign keys. Default: `false`. |
| schema | MySqlSchema | An object containing MySQL dialect tables and relations |
202
-
| out | string | The output directory and file name. Uses the current working directory as the root|
202
+
| out?| string | The output directory and file name. Uses the current working directory as the root. If not set, it will not write the DBML file.|
203
203
| relational | boolean? | If set to true, it will create references based on the relations generated with the `relations` function instead of foreign keys. Useful for databases that don't support foreign keys. Default: `false`. |
| schema | SQLiteSchema | An object containing SQLite dialect tables and relations |
210
-
| out | string | The output directory and file name. Uses the current working directory as the root|
210
+
| out?| string | The output directory and file name. Uses the current working directory as the root. If not set, it will not write the DBML file.|
211
211
| relational | boolean? | If set to true, it will create references based on the relations generated with the `relations` function instead of foreign keys. Useful for databases that don't support foreign keys. Default: `false`. |
212
+
213
+
All generate functions return the DBML as a string regardless if a file is written or not, in case you want to do something with the generated DBML.
0 commit comments