sqlobjects 2.1.0__py3-none-any.whl → 2.1.1__py3-none-any.whl

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.
Files changed (19) hide show
  1. sqlobjects/__init__.py +1 -1
  2. sqlobjects/_compat.py +61 -0
  3. sqlobjects/fields/core.py +2 -2
  4. sqlobjects/metadata.py +4 -7
  5. sqlobjects/sql_logging.py +9 -2
  6. {sqlobjects-2.1.0.data → sqlobjects-2.1.1.data}/data/share/sqlobjects/rules/01-database-session-guide.md +12 -4
  7. {sqlobjects-2.1.0.data → sqlobjects-2.1.1.data}/data/share/sqlobjects/rules/03-query-operations-guide.md +14 -9
  8. {sqlobjects-2.1.0.data → sqlobjects-2.1.1.data}/data/share/sqlobjects/rules/04-crud-operations-guide.md +1 -1
  9. {sqlobjects-2.1.0.data → sqlobjects-2.1.1.data}/data/share/sqlobjects/rules/05-relationships-guide.md +11 -8
  10. {sqlobjects-2.1.0.data → sqlobjects-2.1.1.data}/data/share/sqlobjects/rules/06-validation-signals-guide.md +15 -12
  11. {sqlobjects-2.1.0.data → sqlobjects-2.1.1.data}/data/share/sqlobjects/rules/07-performance-guide.md +3 -3
  12. {sqlobjects-2.1.0.dist-info → sqlobjects-2.1.1.dist-info}/METADATA +9 -7
  13. {sqlobjects-2.1.0.dist-info → sqlobjects-2.1.1.dist-info}/RECORD +19 -18
  14. {sqlobjects-2.1.0.dist-info → sqlobjects-2.1.1.dist-info}/WHEEL +1 -1
  15. {sqlobjects-2.1.0.data → sqlobjects-2.1.1.data}/data/share/sqlobjects/rules/02-model-definition-guide.md +0 -0
  16. {sqlobjects-2.1.0.data → sqlobjects-2.1.1.data}/data/share/sqlobjects/rules/README.md +0 -0
  17. {sqlobjects-2.1.0.dist-info → sqlobjects-2.1.1.dist-info}/entry_points.txt +0 -0
  18. {sqlobjects-2.1.0.dist-info → sqlobjects-2.1.1.dist-info}/licenses/LICENSE +0 -0
  19. {sqlobjects-2.1.0.dist-info → sqlobjects-2.1.1.dist-info}/top_level.txt +0 -0
sqlobjects/__init__.py CHANGED
@@ -19,7 +19,7 @@ from .queryset import Q, QuerySet
19
19
  from .sql_logging import ObjectLogger, get_caller_frame
20
20
 
21
21
 
22
- __version__ = "2.1.0"
22
+ __version__ = "2.1.1"
23
23
 
24
24
  __all__ = [
25
25
  # Core classes
sqlobjects/_compat.py ADDED
@@ -0,0 +1,61 @@
1
+ """SQLAlchemy version compatibility helpers.
2
+
3
+ Everything that depends on SQLAlchemy internals differing between supported
4
+ release series lives here, so that an upgrade breaks in one tested place
5
+ instead of at import time in user code.
6
+
7
+ Supported series: 2.0 (>= 2.0.44) and 2.1.
8
+ """
9
+
10
+ from typing import Any
11
+
12
+ from sqlalchemy import ForeignKey
13
+
14
+
15
+ __all__ = ["foreign_key_copy_target", "foreign_key_target_tokens", "retarget_foreign_key"]
16
+
17
+ # SQLAlchemy 2.1 stores a name-based foreign key target as a
18
+ # ``ForeignKeyTarget(schema, table_name, column_name)`` tuple exposed through
19
+ # the public ``ForeignKey.target_tokens``; ``_colspec`` became a read-only
20
+ # legacy accessor. 2.0 stores the dotted string in a writable ``_colspec``.
21
+ _HAS_TARGET_TOKENS = hasattr(ForeignKey, "target_tokens")
22
+
23
+
24
+ def foreign_key_target_tokens(fk: ForeignKey) -> tuple[str | None, str, str | None]:
25
+ """Return the ``(schema, table_name, column_name)`` target of a foreign key."""
26
+ raw: Any = fk # version-specific attributes; see _HAS_TARGET_TOKENS
27
+ schema, table_name, column_name = raw.target_tokens if _HAS_TARGET_TOKENS else raw._column_tokens # noqa: SLF001
28
+ return schema, table_name, column_name
29
+
30
+
31
+ def foreign_key_copy_target(fk: ForeignKey) -> Any:
32
+ """Return a value that builds an equivalent ``ForeignKey`` when passed to its constructor.
33
+
34
+ A target given as a ``Column`` is returned as that column; a target given
35
+ by name is returned in the form the running SQLAlchemy version stores it,
36
+ so names containing dots survive the copy on 2.1.
37
+ """
38
+ raw: Any = fk
39
+ if _HAS_TARGET_TOKENS:
40
+ column = raw.target_column
41
+ return raw.target_tokens if column is None else column
42
+ return raw._colspec # noqa: SLF001
43
+
44
+
45
+ def retarget_foreign_key(fk: ForeignKey, table_name: str) -> None:
46
+ """Point a name-based foreign key at another table, keeping schema and column.
47
+
48
+ Used to replace a model class name with the model's actual table name once
49
+ the referenced model is registered. SQLAlchemy has no public API for
50
+ changing the target of an existing ``ForeignKey``, so this is the single
51
+ place allowed to rewrite its private state.
52
+ """
53
+ raw: Any = fk
54
+ if _HAS_TARGET_TOKENS:
55
+ raw._given_tokens = raw.target_tokens._replace(table_name=table_name) # noqa: SLF001
56
+ else:
57
+ schema, _, column_name = raw._column_tokens # noqa: SLF001
58
+ prefix = f"{schema}." if schema else ""
59
+ raw._colspec = f"{prefix}{table_name}.{column_name}" # noqa: SLF001
60
+ # Memoized on 2.0; drop it so the new target is parsed again.
61
+ raw.__dict__.pop("_column_tokens", None)
sqlobjects/fields/core.py CHANGED
@@ -10,6 +10,7 @@ from sqlalchemy.sql.elements import ColumnElement
10
10
 
11
11
  from sqlobjects.fields.proxies import RelatedCollection, RelatedObject
12
12
 
13
+ from .._compat import foreign_key_copy_target
13
14
  from ..cascade import OnDelete
14
15
  from ..expressions.mixins import ColumnAttributeFunctionMixin
15
16
  from .types import create_type_instance
@@ -514,9 +515,8 @@ class ColumnAttribute(ColumnAttributeFunctionMixin, Generic[T]):
514
515
  foreign_keys = []
515
516
  if self.__column__.foreign_keys:
516
517
  for fk in self.__column__.foreign_keys:
517
- # Use original string reference instead of column attribute
518
518
  new_fk = ForeignKey(
519
- fk._colspec, # noqa # Use original string reference
519
+ foreign_key_copy_target(fk),
520
520
  name=fk.name,
521
521
  onupdate=fk.onupdate,
522
522
  ondelete=fk.ondelete,
sqlobjects/metadata.py CHANGED
@@ -8,6 +8,7 @@ from sqlalchemy import MetaData as SqlAlchemyMetaData
8
8
  from sqlalchemy.exc import CompileError
9
9
  from sqlalchemy.sql.elements import conv
10
10
 
11
+ from ._compat import foreign_key_target_tokens, retarget_foreign_key
11
12
  from .fields import ColumnAttribute
12
13
  from .fields.relations import M2MTable, RelationshipDescriptor, RelationshipResolver
13
14
  from .fields.utils import get_column_from_field, is_field_definition
@@ -954,7 +955,7 @@ class ModelProcessor(type):
954
955
  def _resolve_class_foreign_keys(mcs, registry):
955
956
  """延迟解析外键引用:优先按类名匹配,匹配不到则视为表名。
956
957
 
957
- foreign_key("User.id") 传入时原样交给 SQLAlchemy(_colspec="User.id")。
958
+ foreign_key("User.id") 传入时原样交给 SQLAlchemy(目标为 "User.id")。
958
959
  每次新模型注册后,此方法遍历所有 FK:
959
960
  1. 取出 info["_fk_ref"](即 "." 前的那段,如 "User")
960
961
  2. 尝试在 registry 中按类名查找模型
@@ -975,13 +976,9 @@ class ModelProcessor(type):
975
976
  continue
976
977
  # Found matching model — rewrite _colspec to actual table name
977
978
  actual_table = model.__table__.name
978
- schema, tname, colname = fk._column_tokens
979
+ _, tname, _ = foreign_key_target_tokens(fk)
979
980
  if tname != actual_table:
980
- if schema:
981
- fk._colspec = f"{schema}.{actual_table}.{colname}"
982
- else:
983
- fk._colspec = f"{actual_table}.{colname}"
984
- fk.__dict__.pop("_column_tokens", None)
981
+ retarget_foreign_key(fk, actual_table)
985
982
  fk_info["_fk_resolved"] = True
986
983
 
987
984
  @classmethod
sqlobjects/sql_logging.py CHANGED
@@ -244,7 +244,7 @@ def _install_query_logging(engine: Engine, db_name: str) -> None:
244
244
  def do_execute_no_params(cursor, statement, context):
245
245
  start(context, statement, None, False)
246
246
 
247
- def emit(context, cursor=None, error=None):
247
+ def emit(context, cursor=None, error=None, driver_error=None):
248
248
  if context is None:
249
249
  return
250
250
  timing = context.__dict__.pop(timing_key, None)
@@ -265,6 +265,7 @@ def _install_query_logging(engine: Engine, db_name: str) -> None:
265
265
  "rowcount": cursor.rowcount if cursor is not None and error is None else None,
266
266
  "success": error is None,
267
267
  "error_type": type(error).__name__ if error is not None else None,
268
+ "driver_error_type": type(driver_error).__name__ if driver_error is not None else None,
268
269
  },
269
270
  )
270
271
  except Exception:
@@ -275,9 +276,15 @@ def _install_query_logging(engine: Engine, db_name: str) -> None:
275
276
  emit(context, cursor)
276
277
 
277
278
  def handle_error(exception_context):
279
+ # The driver exception class differs across drivers and SQLAlchemy versions
280
+ # (asyncpg reports UniqueViolationError on 2.1, IntegrityError on 2.0), so
281
+ # error_type uses SQLAlchemy's own class when the error was wrapped.
282
+ # Non-DBAPI errors such as CancelledError are not wrapped.
283
+ original = exception_context.original_exception
278
284
  emit(
279
285
  exception_context.execution_context,
280
- error=exception_context.original_exception,
286
+ error=exception_context.sqlalchemy_exception or original,
287
+ driver_error=original,
281
288
  )
282
289
 
283
290
  # Dialect events receive each batch's actual SQL/params. For insertmanyvalues,
@@ -48,7 +48,7 @@ from sqlobjects.session import ctx_session, ctx_sessions
48
48
  # Single database transaction
49
49
  async with ctx_session() as session:
50
50
  user = await User.objects.using(session).create(username="bob")
51
- posts = await user.posts.using(session).all()
51
+ posts = await user.load_relation("posts")
52
52
  # Auto-commit on success, rollback on exception
53
53
 
54
54
  # Multi-database transaction
@@ -114,6 +114,11 @@ if has_session("analytics"):
114
114
  - `has_session()` reports only an open session usable by the current task.
115
115
  - A closed session cannot be reused. Background work must open a new context.
116
116
  - Cancellation rolls back request/context transactions and releases their connections.
117
+ - After an SQL error in an explicit transaction, call `rollback()` or wrap the
118
+ risky statement in `async with await session.begin_nested():`; otherwise later
119
+ statements raise `TransactionError`. Readonly sessions are unaffected by a failed
120
+ query. On an implicit (auto-commit) session the transaction opened by
121
+ `begin_nested()` commits when its outermost savepoint ends.
117
122
 
118
123
  ### ✅ Do
119
124
 
@@ -198,7 +203,7 @@ async with ctx_session() as session:
198
203
  # All operations share the same connection
199
204
  users = await User.objects.using(session).all()
200
205
  for user in users:
201
- await user.posts.using(session).all()
206
+ await user.load_relation("posts") # Uses the loading session
202
207
  ```
203
208
 
204
209
  ### Read/Write Separation
@@ -414,10 +419,13 @@ skips timing and frame inspection; enabled logging resolves the user frame
414
419
  across the async greenlet bridge.
415
420
 
416
421
  Each record carries `sql`, driver-format `params`, `duration_ms`, `db_name`,
417
- `dialect`, `executemany`, `rowcount`, `success`, and `error_type`. Parameters may
422
+ `dialect`, `executemany`, `rowcount`, `success`, `error_type`, and
423
+ `driver_error_type`. Parameters may
418
424
  be a dictionary, tuple or a sequence of parameter sets. `hide_parameters=True`
419
425
  in `init_db()` makes `params` null, including on failure; raw SQL literals are
420
- not redacted. Errors include only the exception class, not its message.
426
+ not redacted. Errors include only exception classes, not messages: `error_type` is the
427
+ SQLAlchemy class and is stable across drivers, `driver_error_type` is the
428
+ driver's own class and is not.
421
429
 
422
430
  Records count driver calls, not ORM methods or returned rows. Timing excludes
423
431
  pool checkout, compilation, later fetching, hydration and commit. `rowcount` can
@@ -314,17 +314,22 @@ posts = await Post.objects.outerjoin(
314
314
  ### Row Locking
315
315
 
316
316
  ```python
317
- # Pessimistic locking (FOR UPDATE)
318
- user = await User.objects.filter(
319
- User.id == 1
320
- ).select_for_update(nowait=True).first()
321
-
322
- # Shared locking (FOR SHARE)
323
- users = await User.objects.filter(
324
- User.department == "sales"
325
- ).select_for_share(skip_locked=True).all()
317
+ # Row locks require an explicit transaction on PostgreSQL/MySQL
318
+ async with ctx_session():
319
+ # Pessimistic locking (FOR UPDATE)
320
+ user = await User.objects.filter(
321
+ User.id == 1
322
+ ).select_for_update(nowait=True).first()
323
+
324
+ # Shared locking (FOR SHARE)
325
+ users = await User.objects.filter(
326
+ User.department == "sales"
327
+ ).select_for_share(skip_locked=True).all()
326
328
  ```
327
329
 
330
+ Outside SQLite, `select_for_update()` / `select_for_share()` must run inside an
331
+ explicit transaction; the lock is held until that transaction ends.
332
+
328
333
  ### Date/Time Extraction
329
334
 
330
335
  ```python
@@ -337,7 +337,7 @@ await User.objects.bulk_create(data, batch_size=100) # SQLite
337
337
  async with ctx_session() as session:
338
338
  # Quick database operations only
339
339
  user = await User.objects.using(session).create(username="alice")
340
- await user.posts.using(session).create(title="Post")
340
+ await Post.objects.using(session).create(title="Post", author_id=user.id)
341
341
  # Transaction commits here
342
342
 
343
343
  # Don't hold transactions during I/O
@@ -58,7 +58,7 @@ for post in posts:
58
58
  # prefetch_related (separate query) - for reverse relationships
59
59
  users = await User.objects.prefetch_related("posts").all()
60
60
  for user in users:
61
- posts = await user.posts.fetch() # No N+1 queries
61
+ posts = await user.load_relation("posts") # Prefetched list, no query
62
62
 
63
63
  # Combined loading
64
64
  posts = await Post.objects.select_related("author").prefetch_related("comments").all()
@@ -162,7 +162,9 @@ users = await User.objects.prefetch_related(
162
162
  ### ❌ Don't
163
163
 
164
164
  - **Don't use select_related** for reverse relationships (use prefetch_related)
165
- - **Don't forget to fetch()** lazy-loaded relationships
165
+ - **Don't forget to load** lazy relationships with `load_relation()`; after
166
+ `select_related`/`prefetch_related` the attribute is already an entity or list and
167
+ has no `.fetch()`
166
168
  - **Don't cause N+1 queries** by not using loading strategies
167
169
  - **Don't mix loading strategies** incorrectly
168
170
 
@@ -200,7 +202,7 @@ class Book(ObjectModel):
200
202
 
201
203
  # Usage
202
204
  author = await Author.objects.prefetch_related("books").get(Author.id == 1)
203
- books = await author.books.fetch()
205
+ books = await author.load_relation("books") # Prefetched list, no extra query
204
206
  ```
205
207
 
206
208
  ### One-to-One
@@ -233,7 +235,7 @@ class Course(ObjectModel):
233
235
 
234
236
  # Usage
235
237
  student = await Student.objects.prefetch_related("courses").get(Student.id == 1)
236
- courses = await student.courses.fetch()
238
+ courses = await student.load_relation("courses") # Prefetched list, no extra query
237
239
  ```
238
240
 
239
241
  ### Self-Referential
@@ -369,11 +371,11 @@ posts = await Post.objects.select_related("author").defer(
369
371
  "author__bio" # Heavy field from related model
370
372
  ).all()
371
373
 
372
- # Filter prefetched relationships
374
+ # Filter prefetched relationships (slicing the prefetch queryset is rejected)
373
375
  users = await User.objects.prefetch_related(
374
376
  posts=Post.objects.filter(
375
377
  Post.created_at >= datetime.now(timezone.utc) - timedelta(days=7)
376
- ).order_by('-created_at').limit(10)
378
+ ).order_by('-created_at')
377
379
  ).all()
378
380
  ```
379
381
 
@@ -416,9 +418,10 @@ users = await User.objects.prefetch_related("posts").all()
416
418
 
417
419
  **Solution**:
418
420
  ```python
419
- # Use fetch() for lazy-loaded relationships
421
+ # Use load_relation() for lazy relationships (works whether or not the
422
+ # relationship was eagerly loaded; .fetch() exists only on the lazy proxy)
420
423
  post = await Post.objects.get(Post.id == 1)
421
- author = await post.author.fetch() # Explicit load
424
+ author = await post.load_relation("author") # Explicit load
422
425
 
423
426
  # Or use select_related
424
427
  post = await Post.objects.select_related("author").get(Post.id == 1)
@@ -233,7 +233,9 @@ async def before_save(self, context: SignalContext):
233
233
  self.updated_at = datetime.now(timezone.utc) # Fast
234
234
 
235
235
  async def after_save(self, context: SignalContext):
236
- asyncio.create_task(self.process_large_file()) # Background task
236
+ # after_* hooks run before the transaction commits; defer external side
237
+ # effects until the commit succeeds
238
+ await context.on_commit(self.process_large_file)
237
239
  ```
238
240
 
239
241
  ## Signal Execution Flow
@@ -323,22 +325,23 @@ class User(ObjectModel):
323
325
  ### Signal Performance
324
326
 
325
327
  ```python
326
- # Group related operations
328
+ # ORM writes that belong to the same transaction: await them sequentially.
329
+ # Hooks run inside the operation's session, which belongs to the current task;
330
+ # asyncio.create_task()/gather() would run them in other tasks and raise
331
+ # TransactionError.
327
332
  async def after_create(self, context: SignalContext):
328
- await asyncio.gather(
329
- self.send_welcome_email(),
330
- self.create_default_preferences(),
331
- self.log_user_creation()
332
- )
333
+ await self.create_default_preferences()
334
+ await self.log_user_creation()
333
335
 
334
- # Background tasks for non-critical operations
336
+ # External side effects: defer until the transaction has committed.
337
+ # after_* hooks fire before commit, so a rollback would otherwise leave
338
+ # emails sent or indexes updated for data that never persisted.
335
339
  async def after_save(self, context: SignalContext):
336
- # Critical operations (blocking)
337
340
  self.updated_at = datetime.now(timezone.utc)
338
-
339
- # Non-critical operations (background)
341
+
340
342
  if not context.is_bulk:
341
- asyncio.create_task(self.update_search_index())
343
+ await context.on_commit(self.update_search_index)
344
+ await context.on_commit(self.send_welcome_email)
342
345
  ```
343
346
 
344
347
  ### Validation Performance
@@ -66,7 +66,7 @@ for post in posts:
66
66
  # prefetch_related for reverse relationships (fast - 2 queries)
67
67
  users = await User.objects.prefetch_related("posts").all()
68
68
  for user in users:
69
- posts = await user.posts.fetch() # No N+1 queries
69
+ posts = await user.load_relation("posts") # Returns the prefetched list, no query
70
70
  ```
71
71
 
72
72
  ### Query Optimization
@@ -106,7 +106,7 @@ async with ctx_session() as session:
106
106
  # All operations share the same connection
107
107
  users = await User.objects.using(session).all()
108
108
  for user in users:
109
- await user.posts.using(session).all()
109
+ await user.load_relation("posts") # Uses the loading session
110
110
  ```
111
111
 
112
112
  ## Best Practices
@@ -297,7 +297,7 @@ print(f"Query took {duration:.3f} seconds")
297
297
  start = time.time()
298
298
  posts = await Post.objects.all()
299
299
  for post in posts[:10]:
300
- author = await post.author.fetch()
300
+ author = await post.load_relation("author")
301
301
  time_without = time.time() - start
302
302
 
303
303
  # With select_related
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sqlobjects
3
- Version: 2.1.0
3
+ Version: 2.1.1
4
4
  Summary: Django-style async ORM library based on SQLAlchemy with chainable queries, Q objects, and relationship loading
5
5
  Author-email: XtraVisions <gitadmin@xtravisions.com>, Chen Hao <chenhao@xtravisions.com>
6
6
  Maintainer-email: XtraVisions <gitadmin@xtravisions.com>, Chen Hao <chenhao@xtravisions.com>
@@ -24,7 +24,7 @@ Classifier: Typing :: Typed
24
24
  Requires-Python: >=3.12
25
25
  Description-Content-Type: text/markdown
26
26
  License-File: LICENSE
27
- Requires-Dist: sqlalchemy[asyncio]>=2.0.44
27
+ Requires-Dist: sqlalchemy[asyncio]<2.2,>=2.0.44
28
28
  Provides-Extra: migrations
29
29
  Requires-Dist: alembic>=1.16.5; extra == "migrations"
30
30
  Dynamic: license-file
@@ -178,7 +178,7 @@ from sqlobjects.session import ctx_session, ctx_sessions
178
178
  # Single database transaction
179
179
  async with ctx_session() as session:
180
180
  user = await User.objects.using(session).create(username="bob")
181
- posts = await user.posts.using(session).all()
181
+ posts = await Post.objects.using(session).filter(author_id=user.id).all()
182
182
  # Automatic commit on success, rollback on error
183
183
 
184
184
  # Multi-database transactions
@@ -302,10 +302,12 @@ avg_age = User.objects.aggregate(avg_age=func.avg(User.age)).subquery(query_type
302
302
  older_users = await User.objects.filter(User.age > avg_age).all()
303
303
 
304
304
  # Manual joins and locking
305
- posts = await Post.objects.join(
306
- User, # Using Model class (recommended)
307
- Post.author_id == User.id
308
- ).select_for_update(nowait=True).all()
305
+ # Row locks need an explicit transaction on PostgreSQL/MySQL
306
+ async with ctx_session():
307
+ posts = await Post.objects.join(
308
+ User, # Using Model class (recommended)
309
+ Post.author_id == User.id
310
+ ).select_for_update(nowait=True).all()
309
311
 
310
312
  # Raw SQL when needed
311
313
  users = await User.objects.raw(
@@ -1,15 +1,16 @@
1
- sqlobjects/__init__.py,sha256=9cYmUjT7iS_tXvM9zNeJf68x3w6lt9ppcqiks3ixLlM,1095
1
+ sqlobjects/__init__.py,sha256=NI5wZWG2fKiW6AYqIVdU7SCzwM2Jv1WO8UP5SyxInGs,1095
2
+ sqlobjects/_compat.py,sha256=as7h9l8z8Y17TDf6YpaZwDRAizpoV0tJ5RU0zhxc7TA,2639
2
3
  sqlobjects/_install_rules.py,sha256=qibOEE7d-WvAEmr38Q6a_lhk6M_sUkCZj86QhuvBsho,4661
3
4
  sqlobjects/cascade.py,sha256=Zlf7Y-K-z45V10_8DfDdJxB1KLJGs9LH2GFTTpFFTio,39585
4
5
  sqlobjects/exceptions.py,sha256=vkhuyiLOHltpLnmWaiMKkNsXYZu2IXMpJZ0AxmNAnSI,17214
5
- sqlobjects/metadata.py,sha256=H6uZ7PskuCViJWRGwIB5FHW7E04ppXxTQmYskQYa5BU,50374
6
+ sqlobjects/metadata.py,sha256=pzV6G4OluBdDd51FkQqvH4PxIX3ZdcXW3TM2Wnu4Lpg,50230
6
7
  sqlobjects/mixins.py,sha256=fFKKUTigpfD8pZnKBrvxF5YBdJ7UHHhT7pAsefOWWoI,27010
7
8
  sqlobjects/model.py,sha256=2mRObWQFumCMy_ql7dt0fWoNdb2PcUPBRGcWXQl7wOc,19577
8
9
  sqlobjects/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
10
  sqlobjects/queryset.py,sha256=0VHbrkdCC8xufSey2dS6EJaWj2jYMw6KVollDpvjlCk,52388
10
11
  sqlobjects/session.py,sha256=nYkqUikiRRxOxLHOWmJ0nkukxHU5mVaR-y-Od8jdkrQ,29404
11
12
  sqlobjects/signals.py,sha256=ujSZEKXs18dqO_GTkXThbJ-TetjeGRn3q1OqUxGBo6I,19116
12
- sqlobjects/sql_logging.py,sha256=Gd8GAwgAxViCPF7THTIYU3H_VR5NsS8WVaviun7n1BM,10827
13
+ sqlobjects/sql_logging.py,sha256=fkw5GFgtLGehwAtEzhSD67QGTiY5vjCmU7B7SFdz5Is,11370
13
14
  sqlobjects/validators.py,sha256=aqP7YgCnx-cjthqRo2RD-Iz2lvFsJsDgT73HwLwZGxE,10334
14
15
  sqlobjects/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
16
  sqlobjects/contrib/asgi.py,sha256=kocdZbJwfYgVltqMlRc2Lx8sgO9KVUXdn8sO4zEJbWo,1981
@@ -29,7 +30,7 @@ sqlobjects/expressions/subquery.py,sha256=Jhhcl-EJbCvZmC91f7mZI4yeJqYVEyWtODHgB0
29
30
  sqlobjects/expressions/terminal.py,sha256=vxma0FytPXlfJdea4v5W0i5WwN9VWTnHDuxnoTfEX0c,14650
30
31
  sqlobjects/expressions/window.py,sha256=0Olsi422n04SuemGjhIB_WwA9vTGJvMqOjHPWBFjHOo,7871
31
32
  sqlobjects/fields/__init__.py,sha256=vPfJVLVFkvEhiGp4yZUovpGGRmgCCKPqI22wWTZwhr8,1503
32
- sqlobjects/fields/core.py,sha256=fcUwflZS2fcxYfWInISITXCi57yvK8EchhqzfgjmSxI,38775
33
+ sqlobjects/fields/core.py,sha256=XFGdzydEBUyOogJrP0W7zqQCxliKgRxVWmpbjLuDcxs,38721
33
34
  sqlobjects/fields/functions.py,sha256=5a5I9pwzhz01HTbLw1M-AX_3StROfwwJzinqiFUFEfc,5468
34
35
  sqlobjects/fields/proxies.py,sha256=jBFI9IJKzPfnAWf1u1s6iHzrAjaC5BWx0Ff6fomRccI,20278
35
36
  sqlobjects/fields/shortcuts.py,sha256=euYyW0DliR77jLZDRQLNSsCpIHJBoRc7kzTBOIvHQFo,22794
@@ -59,17 +60,17 @@ sqlobjects/utils/__init__.py,sha256=NsJ52Fl_PaB-2WlOIJVGNPmgOnqPmvYRmp7uaq5zfYs,
59
60
  sqlobjects/utils/inspect.py,sha256=u-Q9VBoSGYCE_3Soy8jMuCAdM-P7IkSzTxqrJop_Ilk,2612
60
61
  sqlobjects/utils/naming.py,sha256=Uk0VxwCEuZXhwIR3l_CALSCqa8Ak7DhhVzLelMyc9Nc,2117
61
62
  sqlobjects/utils/pattern.py,sha256=FGCgobTpnmKjdAtQidHIg4Xa2CQLeP35F0VuX_1T1dk,14740
62
- sqlobjects-2.1.0.data/data/share/sqlobjects/rules/01-database-session-guide.md,sha256=Y95ErZ-JN_jHrNmKX1kVfvGYtWreClORYkmWWpeo_a0,14495
63
- sqlobjects-2.1.0.data/data/share/sqlobjects/rules/02-model-definition-guide.md,sha256=Uc8AUnsF1rzaGvTnHipuRvJyPERzDEGx-7F_zmyvCVc,14035
64
- sqlobjects-2.1.0.data/data/share/sqlobjects/rules/03-query-operations-guide.md,sha256=V-i1i5hLTFOKF37nvSnhXiARjwbqNpK32VsiZPI3HcU,14278
65
- sqlobjects-2.1.0.data/data/share/sqlobjects/rules/04-crud-operations-guide.md,sha256=T8bqxIOztI91dmNP4NVtbGySKqcfRWSCR5y4sEuuoRU,15206
66
- sqlobjects-2.1.0.data/data/share/sqlobjects/rules/05-relationships-guide.md,sha256=bfP6JQYVk2VeRVcFmaaaq7cdxyODcy5coC7ikgWUPAY,17167
67
- sqlobjects-2.1.0.data/data/share/sqlobjects/rules/06-validation-signals-guide.md,sha256=UN0NG75H5y1u3MN9OgPix3Er0YQjerpVGlPvEXL5Wio,16397
68
- sqlobjects-2.1.0.data/data/share/sqlobjects/rules/07-performance-guide.md,sha256=yVeaosseehxR3_IwEqcafIwY_8t5zxPQ4GmHQ93YxeA,12940
69
- sqlobjects-2.1.0.data/data/share/sqlobjects/rules/README.md,sha256=c1jW0hZdvUN3yP_KKO_5oDiT-uxPepBLJK0dbDXJwL0,4233
70
- sqlobjects-2.1.0.dist-info/licenses/LICENSE,sha256=ScFR7nvWIhar0d32Y-LA4vqp9zNmy1HSJia7UX7jU6c,1068
71
- sqlobjects-2.1.0.dist-info/METADATA,sha256=_xUB-QDXYopH9xIaR1f7AzZVLEXVfGm0x6H0U3uTmSI,14664
72
- sqlobjects-2.1.0.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
73
- sqlobjects-2.1.0.dist-info/entry_points.txt,sha256=9Q3Ci55MawxkQhMlR_eLJui00_rYYIVO_Aq_Dm0u5MQ,76
74
- sqlobjects-2.1.0.dist-info/top_level.txt,sha256=brO5vDtCpn4L9dpX0EHpehbu4kcHaK_2Bbnwze35YKc,11
75
- sqlobjects-2.1.0.dist-info/RECORD,,
63
+ sqlobjects-2.1.1.data/data/share/sqlobjects/rules/01-database-session-guide.md,sha256=mv7aQd0LmT6wsZUoQ5AlmXyWmSJxYHTwUADPqkx5aOo,15034
64
+ sqlobjects-2.1.1.data/data/share/sqlobjects/rules/02-model-definition-guide.md,sha256=Uc8AUnsF1rzaGvTnHipuRvJyPERzDEGx-7F_zmyvCVc,14035
65
+ sqlobjects-2.1.1.data/data/share/sqlobjects/rules/03-query-operations-guide.md,sha256=Fk3x8H4tYJTBJsXxlm2vJkY0zK-PVryWZzjBZhphq-I,14549
66
+ sqlobjects-2.1.1.data/data/share/sqlobjects/rules/04-crud-operations-guide.md,sha256=ujG3QPYFqKPqj_XnBlxpxZPXP68d61fDkmH1n2qPqsM,15227
67
+ sqlobjects-2.1.1.data/data/share/sqlobjects/rules/05-relationships-guide.md,sha256=zzhJdJviH_XA3oHpKzwssoFw28zKoB_abYl5JyE_GiI,17545
68
+ sqlobjects-2.1.1.data/data/share/sqlobjects/rules/06-validation-signals-guide.md,sha256=4846hHMB9hj0tU35RV6DhYuz7k9hCErRZvDaCQ5YI4s,16784
69
+ sqlobjects-2.1.1.data/data/share/sqlobjects/rules/07-performance-guide.md,sha256=LQhomnH5sW4naRERHK3TCN4PqVCzBeRsb9g4778e8N4,13005
70
+ sqlobjects-2.1.1.data/data/share/sqlobjects/rules/README.md,sha256=c1jW0hZdvUN3yP_KKO_5oDiT-uxPepBLJK0dbDXJwL0,4233
71
+ sqlobjects-2.1.1.dist-info/licenses/LICENSE,sha256=ScFR7nvWIhar0d32Y-LA4vqp9zNmy1HSJia7UX7jU6c,1068
72
+ sqlobjects-2.1.1.dist-info/METADATA,sha256=OoW4KmCKoAw8Kmd8IpLhM4DuoXxQM6Y4d_5oT5CbVow,14800
73
+ sqlobjects-2.1.1.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
74
+ sqlobjects-2.1.1.dist-info/entry_points.txt,sha256=9Q3Ci55MawxkQhMlR_eLJui00_rYYIVO_Aq_Dm0u5MQ,76
75
+ sqlobjects-2.1.1.dist-info/top_level.txt,sha256=brO5vDtCpn4L9dpX0EHpehbu4kcHaK_2Bbnwze35YKc,11
76
+ sqlobjects-2.1.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (84.0.0)
2
+ Generator: setuptools (84.2.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5