Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

Add option to specify database url #140

Open
maxpain opened this issue Jan 29, 2019 · 4 comments
Open

Add option to specify database url #140

maxpain opened this issue Jan 29, 2019 · 4 comments
Labels
enhancement new feature or bug with easy workaround

Comments

@maxpain
Copy link

maxpain commented Jan 29, 2019

No description provided.

@Kononnable
Copy link
Owner

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

@maxpain
Copy link
Author

maxpain commented Feb 6, 2019

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

@Kononnable Kononnable added the enhancement new feature or bug with easy workaround label Feb 6, 2019
@saostad
Copy link

saostad commented Jan 10, 2020

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

@darklightcode
Copy link

@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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement new feature or bug with easy workaround
Projects
None yet
Development

No branches or pull requests

4 participants