sqlalchemy-query-helpers 1.0.7__tar.gz → 1.0.8__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.

Potentially problematic release.


This version of sqlalchemy-query-helpers might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sqlalchemy-query-helpers
3
- Version: 1.0.7
3
+ Version: 1.0.8
4
4
  Summary: Some helpers for SQLAlchemy
5
5
  Author-email: vladiscripts <blagopoluchie12@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/vladiscripts/sqlalchemy-query-helpers
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "sqlalchemy-query-helpers"
7
- version = "1.0.7"
7
+ version = "1.0.8"
8
8
  authors = [
9
9
  { name = "vladiscripts", email = "blagopoluchie12@gmail.com" },
10
10
  ]
@@ -224,7 +224,7 @@ class DB:
224
224
  self.session.commit()
225
225
  return is_updated, is_inserted
226
226
 
227
- def upsert(self, t, rows: Union[list[dict], tuple[dict]], mfields=None, do_commit=False):
227
+ def upsert(self, t, rows: Union[list[dict], tuple[dict]], mfields=None, do_commit=True):
228
228
  rows_to_insert = [self.__to_dict(row, mfields) for row in rows]
229
229
  stmt = insert(t).values(rows_to_insert)
230
230
  update_dict = {x.name: x for x in stmt.inserted}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sqlalchemy-query-helpers
3
- Version: 1.0.7
3
+ Version: 1.0.8
4
4
  Summary: Some helpers for SQLAlchemy
5
5
  Author-email: vladiscripts <blagopoluchie12@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/vladiscripts/sqlalchemy-query-helpers