Update README.md --output values

On *nix  systems `-o .\ -s public` `\ ` will escape empty space and the result of this command will be not specifying schema, but creating a dot folder with name `. -s public` where entities are generated.
I have not tested this change on windows machine, where I guess the former syntax is perfectly OK.
This commit is contained in:
Nikita Moshensky 2018-01-21 13:25:10 +02:00 committed by GitHub
parent 3656a41cdc
commit 4af802267d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,18 +51,18 @@ Options:
* Creating model from local MSSQL database
* Global module
```
typeorm-model-generator -h localhost -d tempdb -u sa -x !Passw0rd -e mssql -o .\
typeorm-model-generator -h localhost -d tempdb -u sa -x !Passw0rd -e mssql -o .
````
* Npx Way
```
npx typeorm-model-generator -h localhost -d tempdb -u sa -x !Passw0rd -e mssql -o .\
npx typeorm-model-generator -h localhost -d tempdb -u sa -x !Passw0rd -e mssql -o .
````
* Creating model from local Postgres database, public schema with ssl connection
* Global module
```
typeorm-model-generator -h localhost -d postgres -u postgres -x !Passw0rd -e postgres -o .\ -s public --ssl
typeorm-model-generator -h localhost -d postgres -u postgres -x !Passw0rd -e postgres -o . -s public --ssl
````
* Npx Way
```
npx typeorm-model-generator -h localhost -d postgres -u postgres -x !Passw0rd -e postgres -o .\ -s public --ssl
npx typeorm-model-generator -h localhost -d postgres -u postgres -x !Passw0rd -e postgres -o . -s public --ssl
````