In backends.sql:resource.sql function, utils.filter_kwargs always filters all keywords when creating the engine since create_engine's signature doesn't have any keyword arguments.
|
@resource.register(r'(.*sql.*|oracle|redshift)(\+\w+)?://.+') |
|
def resource_sql(uri, *args, **kwargs): |
|
engine = create_engine( |
|
uri, |
|
# roundtrip through a frozenset of tuples so we can cache the dict |
|
connect_args=kwargs.pop('connect_args', {}), |
|
**filter_kwargs(sa.create_engine, kwargs) |
|
) |
In
backends.sql:resource.sqlfunction,utils.filter_kwargsalways filters all keywords when creating the engine sincecreate_engine's signature doesn't have any keyword arguments.odo/odo/backends/sql.py
Lines 633 to 640 in 9fce669