Skip to content
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

Resolve SQLAlchemy deprecation warnings #214

Open
bastienboutonnet opened this issue Apr 15, 2021 · 0 comments
Open

Resolve SQLAlchemy deprecation warnings #214

bastienboutonnet opened this issue Apr 15, 2021 · 0 comments

Comments

@bastienboutonnet
Copy link
Member

The following warnings have been popping up and are pretty easy to fix:

  /Users/bastienboutonnet/repos/dbt-sugar/dbt_sugar/core/connectors/postgres_connector.py:31: SADeprecationWarning: Calling URL() directly is deprecated and will be disabled in a future release.  The public constructor for URL is now the URL.create() method.
    self.connection_url = sqlalchemy.engine.url.URL(

tests/postgres_test.py::test_get_columns_from_table
  /Users/bastienboutonnet/repos/dbt-sugar/dbt_sugar/core/connectors/base.py:47: SADeprecationWarning: The from_engine() method on Inspector is deprecated and will be removed in a future release.  Please use the sqlalchemy.inspect() function on an Engine or Connection in order to acquire an Inspector. (deprecated since: 1.4)
    inspector = sqlalchemy.engine.reflection.Inspector.from_engine(self.engine)

-- Docs: https://docs.pytest.org/en/stable/warnings.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant