soda-postgres 4.2.0__tar.gz → 4.7.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: soda-postgres
3
- Version: 4.2.0
3
+ Version: 4.7.0
4
4
  Summary: Soda Postgres V4
5
5
  Author-email: "Soda Data N.V." <info@soda.io>
6
6
  License: Proprietary
7
7
  Requires-Python: >=3.10
8
- Requires-Dist: soda-core==4.2.0
8
+ Requires-Dist: soda-core==4.7.0
9
9
  Requires-Dist: psycopg[binary]>=3.2
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "soda-postgres"
3
- version = "4.2.0"
3
+ version = "4.7.0"
4
4
  description = "Soda Postgres V4"
5
5
  requires-python = ">=3.10"
6
6
  license = {text = "Proprietary"}
@@ -8,7 +8,7 @@ authors = [
8
8
  {name = "Soda Data N.V.", email = "info@soda.io"}
9
9
  ]
10
10
  dependencies = [
11
- "soda-core==4.2.0",
11
+ "soda-core==4.7.0",
12
12
  "psycopg[binary]>=3.2",
13
13
  ]
14
14
 
@@ -8,7 +8,7 @@ from typing import Callable, ClassVar, Dict, Literal, Optional, Union
8
8
  import psycopg
9
9
  from pydantic import Field, IPvAnyAddress, SecretStr, field_validator
10
10
  from soda_core.common.data_source_connection import DataSourceConnection
11
- from soda_core.common.data_source_results import QueryResult, UpdateResult
11
+ from soda_core.common.data_source_results import QueryResult
12
12
  from soda_core.common.logging_constants import soda_logger
13
13
  from soda_core.model.data_source.data_source import DataSourceBase
14
14
  from soda_core.model.data_source.data_source_connection_properties import (
@@ -95,7 +95,7 @@ class PostgresDataSourceConnection(DataSourceConnection):
95
95
  self.rollback()
96
96
  raise e
97
97
 
98
- def execute_update(self, sql: str, log_query: bool = True) -> UpdateResult:
98
+ def execute_update(self, sql: str, log_query: bool = True) -> int:
99
99
  try:
100
100
  return super().execute_update(sql, log_query=log_query)
101
101
  except psycopg.errors.Error as e: # Catch the error and roll back the transaction
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: soda-postgres
3
- Version: 4.2.0
3
+ Version: 4.7.0
4
4
  Summary: Soda Postgres V4
5
5
  Author-email: "Soda Data N.V." <info@soda.io>
6
6
  License: Proprietary
7
7
  Requires-Python: >=3.10
8
- Requires-Dist: soda-core==4.2.0
8
+ Requires-Dist: soda-core==4.7.0
9
9
  Requires-Dist: psycopg[binary]>=3.2
@@ -1,2 +1,2 @@
1
- soda-core==4.2.0
1
+ soda-core==4.7.0
2
2
  psycopg[binary]>=3.2
File without changes