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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
# https://pip.pypa.io/en/stable/reference/build-system/pyproject-toml/
name = 'questdb-connect'
version = '1.1.4' # Standalone production version (with engine)
version = '1.1.5' # Standalone production version (with engine)
# version = '0.0.113' # testing version
authors = [{ name = 'questdb.io', email = 'support@questdb.io' }]
description = "SqlAlchemy library"
Expand Down
2 changes: 1 addition & 1 deletion src/questdb_connect/dialect.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def get_schema_names(self, conn, **kw):
def get_table_names(self, conn, schema=None, **kw):
return [row.table_name for row in self._exec(conn, "SHOW tables")]

def has_table(self, conn, table_name, schema=None):
def has_table(self, conn, table_name, schema=None, **kw):
return table_name in set(self.get_table_names(conn, schema))

@sqlalchemy.engine.reflection.cache
Expand Down
2 changes: 2 additions & 0 deletions tests/test_dialect.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,8 @@ def test_dialect_has_table(test_engine):
raise AssertionError()
if not dialect.has_table(conn, table_name, schema="public"):
raise AssertionError()
if not dialect.has_table(conn, table_name, schema="questdb", kw={'key': "value"}):
raise AssertionError()


def test_functions(test_engine):
Expand Down