Skip to content

Commit 74b2faf

Browse files
committed
Bump duckdb version
1 parent 79e9a33 commit 74b2faf

File tree

3 files changed

+22
-24
lines changed

3 files changed

+22
-24
lines changed

duckdb_engine/__init__.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import re
21
from dataclasses import dataclass, field
32
from typing import List
43

@@ -13,9 +12,6 @@ class Error(Exception):
1312
pass
1413

1514

16-
DNE = re.compile(r"Catalog: ([^ ]+) with name ([^ ]+) does not exist!")
17-
18-
1915
@dataclass
2016
class ConnectionWrapper:
2117
c: duckdb.DuckDBPyConnection
@@ -43,7 +39,9 @@ def check_existance(connection, function: str, name: str, type_: str) -> bool:
4339
try:
4440
connection.execute(f"{function}('{name}');")
4541
except RuntimeError as e:
46-
if e.args[0] == f"Catalog: {type_} with name {name} does not exist!":
42+
if e.args[0].startswith(
43+
f"Catalog Error: {type_} with name {name} does not exist!"
44+
):
4745
return False
4846
else:
4947
raise

poetry.lock

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repository = "https://github.com/Mause/duckdb_engine"
99

1010
[tool.poetry.dependencies]
1111
python = "^3.8"
12-
duckdb = "^0.2.1"
12+
duckdb = "0.2.2.dev655"
1313
sqlalchemy = "^1.3.19"
1414

1515
[tool.poetry.dev-dependencies]

0 commit comments

Comments
 (0)