-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support a URI attribute from created engine #77
Comments
@jameshgrn I don't know the feature. The engine has 'url' attribute. engine = create_engine( 'mysql+pydataapi://', connect_args={ 'resource_arn': 'arn:aws:rds:us-east-1:123456789012:cluster:dummy', 'secret_arn': 'arn:aws:secretsmanager:us-east-1:123456789012:secret:dummy',
'database': 'test'} )
print(engine.url)
# mysql+pydataapi:// |
@koxudaxi thank you for the package! It's great I'm thinking of this example where the engine class has an attribute 'url' |
@jameshgrn What URL should I set? Example: Or, Did you expect traditional DB URI? |
I'm not sure, let's try the traditional DB URI? |
Following up, let me try each of these out in a use case and get back to you |
@jameshgrn |
Is your feature request related to a problem? Please describe.
SQL Alchemy allows users to grab the URI of the sql engine (sql_engine.url) for example. Some packages require the URI instead of an engine object.
Describe the solution you'd like
I would like the engine created to have a URI attribute that returns the string representation of the connection
Describe alternatives you've considered
No way to get past this as far as I can tell.
The text was updated successfully, but these errors were encountered: