typeorm-model-generator icon indicating copy to clipboard operation
typeorm-model-generator copied to clipboard

Add option to specify database url

Open maxpain opened this issue 6 years ago • 4 comments

maxpain avatar Jan 29 '19 07:01 maxpain

What exactly are you reffering to? Is it some db engine specific feature?

Kononnable avatar Feb 06 '19 15:02 Kononnable

@Kononnable for example: postgresql://other@localhost/otherdb?connect_timeout=10&application_name=myapp mongodb://myDBReader:D1fficultP%[email protected]:27017/admin

maxpain avatar Feb 06 '19 15:02 maxpain

Azure sql server example: DB_NAME.database.windows.net

saostad avatar Jan 10 '20 14:01 saostad

@Kononnable Also allow query parameters in the url such as: sqlite://c:\\path\\to\\local.db?connect_timeout=10&entityPrefix=app_&synchronize=true&name=usedForMultipleConnectionsConfigs , new URL will interpret most of these links quite nice.

And the query parameters that are valid for typeorm should go in ormconfig.json at the final output.

darklightcode avatar May 24 '21 09:05 darklightcode