Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions sqlalchemy_redshift/dialect.py
Original file line number Diff line number Diff line change
Expand Up @@ -1222,7 +1222,10 @@ def create_connect_args(self, *args, **kwargs):
return cargs, default_args

@classmethod
def dbapi(cls):
def import_dbapi(cls):
"""
Import the DBAPI module for this dialect.
"""
try:
return importlib.import_module(cls.driver)
except ImportError:
Expand Down Expand Up @@ -1305,7 +1308,10 @@ def __init__(self, client_encoding=None, **kwargs):
self.client_encoding = client_encoding

@classmethod
def dbapi(cls):
def import_dbapi(cls):
"""
Import the DBAPI module for this dialect.
"""
try:
driver_module = importlib.import_module(cls.driver)

Expand Down