sequelize-typescript-generator 11.0.2 → 11.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -423,12 +423,12 @@ Define a `1:1` association with the following entry in the associations file:
|
|
|
423
423
|
|
|
424
424
|
Then pass the associations file path to the `cli`:
|
|
425
425
|
```shell
|
|
426
|
-
npx stg -D mysql -h localhost -p 3306 -d myDatabase -u myUsername -x myPassword --
|
|
426
|
+
npx stg -D mysql -h localhost -p 3306 -d myDatabase -u myUsername -x myPassword --associations-file path/to/associations.csv --out-dir models --clean
|
|
427
427
|
```
|
|
428
428
|
|
|
429
429
|
Global:
|
|
430
430
|
```shell
|
|
431
|
-
stg -D mysql -h localhost -p 3306 -d myDatabase -u myUsername -x myPassword --
|
|
431
|
+
stg -D mysql -h localhost -p 3306 -d myDatabase -u myUsername -x myPassword --associations-file path/to/associations.csv --out-dir models --clean
|
|
432
432
|
```
|
|
433
433
|
|
|
434
434
|
Or programmatically:
|
|
@@ -445,7 +445,7 @@ import { IConfig, ModelBuilder, DialectMySQL } from 'sequelize-typescript-genera
|
|
|
445
445
|
password: 'myPassword'
|
|
446
446
|
},
|
|
447
447
|
metadata: {
|
|
448
|
-
indices:
|
|
448
|
+
indices: false,
|
|
449
449
|
associationsFile: 'path/to/associations.csv',
|
|
450
450
|
},
|
|
451
451
|
output: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sequelize-typescript-generator",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.3",
|
|
4
4
|
"description": "Automatically generates typescript models compatible with sequelize-typescript library (https://www.npmjs.com/package/sequelize-typescript) directly from your source database.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|