Skip to content
Merged
Show file tree
Hide file tree
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
9 changes: 9 additions & 0 deletions pyathena/sqlalchemy/arrow.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# -*- coding: utf-8 -*-
from typing import TYPE_CHECKING

from pyathena.sqlalchemy.base import AthenaDialect
from pyathena.util import strtobool

if TYPE_CHECKING:
from types import ModuleType


class AthenaArrowDialect(AthenaDialect):
driver = "arrow"
Expand All @@ -18,3 +23,7 @@ def create_connect_args(self, url):
if cursor_kwargs:
opts.update({"cursor_kwargs": cursor_kwargs})
return [[], opts]

@classmethod
def import_dbapi(cls) -> "ModuleType":
return super().import_dbapi()
9 changes: 9 additions & 0 deletions pyathena/sqlalchemy/pandas.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# -*- coding: utf-8 -*-
from typing import TYPE_CHECKING

from pyathena.sqlalchemy.base import AthenaDialect
from pyathena.util import strtobool

if TYPE_CHECKING:
from types import ModuleType


class AthenaPandasDialect(AthenaDialect):
driver = "pandas"
Expand All @@ -22,3 +27,7 @@ def create_connect_args(self, url):
if cursor_kwargs:
opts.update({"cursor_kwargs": cursor_kwargs})
return [[], opts]

@classmethod
def import_dbapi(cls) -> "ModuleType":
return super().import_dbapi()
9 changes: 9 additions & 0 deletions pyathena/sqlalchemy/rest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
# -*- coding: utf-8 -*-
from typing import TYPE_CHECKING

from pyathena.sqlalchemy.base import AthenaDialect

if TYPE_CHECKING:
from types import ModuleType


class AthenaRestDialect(AthenaDialect):
driver = "rest"
supports_statement_cache = True

@classmethod
def import_dbapi(cls) -> "ModuleType":
return super().import_dbapi()