Skip to content

Commit 84b2540

Browse files
committed
Supported new psqlpy version
1 parent c146142 commit 84b2540

File tree

6 files changed

+108
-44
lines changed

6 files changed

+108
-44
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
_test.py
12
# Byte-compiled / optimized / DLL files
23
__pycache__/
34
*.py[cod]

otlp_psqlpy/__init__.py

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,27 +28,26 @@
2828
"fetch_val",
2929
]
3030
TRANSACTION_METHODS = [
31+
"begin",
3132
"commit",
3233
"rollback",
3334
"execute",
3435
"execute_batch",
36+
"execute_many",
3537
"fetch",
3638
"fetch_row",
3739
"fetch_val",
38-
"execute_many",
40+
"pipeline",
41+
"create_savepoint",
42+
"rollback_savepoint",
43+
"release_savepoint",
3944
]
4045
CURSOR_METHODS = [
4146
"__anext__",
42-
"fetch",
43-
"fetch_next",
44-
"fetch_prior",
45-
"fetch_first",
46-
"fetch_last",
47-
"fetch_absolute",
48-
"fetch_relative",
49-
"fetch_forward_all",
50-
"fetch_backward",
51-
"fetch_backward_all",
47+
"execute",
48+
"fetchone",
49+
"fetchmany",
50+
"fetchall",
5251
]
5352

5453

@@ -229,7 +228,7 @@ async def _do_cursor_execute(self, func, instance, args, kwargs):
229228

230229
stop = False
231230
with self._tracer.start_as_current_span(
232-
f"CURSOR: {instance.cursor_name}",
231+
f"CURSOR",
233232
kind=SpanKind.CLIENT,
234233
) as span:
235234
if span.is_recording():

otlp_psqlpy/package.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
_instruments = ("psqlpy >= 0.9.1",)
15+
_instruments = ("psqlpy >= 0.11.6",)

otlp_psqlpy/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
__version__ = "0.1.4"
15+
__version__ = "0.2.0"

0 commit comments

Comments
 (0)