sqlobjects 2.0.1__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 (43) hide show
  1. sqlobjects/__init__.py +1 -1
  2. sqlobjects/_compat.py +61 -0
  3. sqlobjects/cascade.py +22 -31
  4. sqlobjects/contrib/asgi.py +5 -3
  5. sqlobjects/database/manager.py +44 -30
  6. sqlobjects/expressions/aggregate.py +144 -83
  7. sqlobjects/expressions/scalar.py +5 -9
  8. sqlobjects/fields/__init__.py +2 -0
  9. sqlobjects/fields/core.py +5 -4
  10. sqlobjects/fields/proxies.py +78 -30
  11. sqlobjects/fields/relations/descriptors.py +4 -2
  12. sqlobjects/fields/relations/prefetch.py +62 -63
  13. sqlobjects/fields/relations/utils.py +50 -11
  14. sqlobjects/internal/results.py +1 -1
  15. sqlobjects/metadata.py +110 -37
  16. sqlobjects/mixins.py +24 -5
  17. sqlobjects/model.py +45 -72
  18. sqlobjects/objects/bulk.py +159 -245
  19. sqlobjects/objects/core.py +62 -58
  20. sqlobjects/objects/upsert.py +85 -8
  21. sqlobjects/queries/builder.py +77 -145
  22. sqlobjects/queries/dialect.py +4 -4
  23. sqlobjects/queries/executor.py +105 -209
  24. sqlobjects/queryset.py +64 -45
  25. sqlobjects/session.py +342 -38
  26. sqlobjects/signals.py +60 -33
  27. sqlobjects/sql_logging.py +107 -11
  28. sqlobjects/utils/naming.py +17 -1
  29. {sqlobjects-2.0.1.data → sqlobjects-2.1.1.data}/data/share/sqlobjects/rules/01-database-session-guide.md +54 -7
  30. {sqlobjects-2.0.1.data → sqlobjects-2.1.1.data}/data/share/sqlobjects/rules/02-model-definition-guide.md +25 -0
  31. {sqlobjects-2.0.1.data → sqlobjects-2.1.1.data}/data/share/sqlobjects/rules/03-query-operations-guide.md +47 -13
  32. {sqlobjects-2.0.1.data → sqlobjects-2.1.1.data}/data/share/sqlobjects/rules/04-crud-operations-guide.md +1 -1
  33. {sqlobjects-2.0.1.data → sqlobjects-2.1.1.data}/data/share/sqlobjects/rules/05-relationships-guide.md +48 -23
  34. {sqlobjects-2.0.1.data → sqlobjects-2.1.1.data}/data/share/sqlobjects/rules/06-validation-signals-guide.md +47 -12
  35. {sqlobjects-2.0.1.data → sqlobjects-2.1.1.data}/data/share/sqlobjects/rules/07-performance-guide.md +3 -3
  36. {sqlobjects-2.0.1.dist-info → sqlobjects-2.1.1.dist-info}/METADATA +17 -8
  37. sqlobjects-2.1.1.dist-info/RECORD +76 -0
  38. {sqlobjects-2.0.1.dist-info → sqlobjects-2.1.1.dist-info}/WHEEL +1 -1
  39. sqlobjects-2.0.1.dist-info/RECORD +0 -75
  40. {sqlobjects-2.0.1.data → sqlobjects-2.1.1.data}/data/share/sqlobjects/rules/README.md +0 -0
  41. {sqlobjects-2.0.1.dist-info → sqlobjects-2.1.1.dist-info}/entry_points.txt +0 -0
  42. {sqlobjects-2.0.1.dist-info → sqlobjects-2.1.1.dist-info}/licenses/LICENSE +0 -0
  43. {sqlobjects-2.0.1.dist-info → sqlobjects-2.1.1.dist-info}/top_level.txt +0 -0
@@ -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()
@@ -69,26 +69,48 @@ comments = await Comment.objects.select_related("post__author").all()
69
69
 
70
70
  ### Advanced prefetch_related
71
71
 
72
+ Dynamic relationships (`lazy="dynamic"`) cannot be eagerly loaded. See the
73
+ dynamic collection contract below before choosing this strategy.
74
+
75
+ Custom queryset keys must name declared relationships. Filtering and ordering are
76
+ supported; sliced querysets and arbitrary output aliases are rejected.
77
+
72
78
  ```python
73
- # Custom QuerySet for filtering and ordering
74
79
  users = await User.objects.prefetch_related(
75
- published_posts=Post.objects.filter(Post.is_published == True)
76
- .order_by('-created_at')
77
- .limit(5)
80
+ posts=Post.objects.filter(Post.is_published == True).order_by('-created_at')
78
81
  ).all()
79
82
 
80
- # Access prefetched data
81
83
  for user in users:
82
- recent_posts = await user.published_posts.fetch()
84
+ published_posts = await user.load_relation("posts")
83
85
 
84
- # Multiple advanced prefetch configurations
85
86
  users = await User.objects.prefetch_related(
86
- active_posts=Post.objects.filter(Post.status == "active"),
87
- draft_posts=Post.objects.filter(Post.status == "draft"),
88
- recent_comments=Comment.objects.order_by('-created_at').limit(10)
87
+ posts=Post.objects.filter(Post.status == "active"),
88
+ comments=Comment.objects.order_by('-created_at')
89
89
  ).all()
90
90
  ```
91
91
 
92
+ ### Dynamic Collections
93
+
94
+ - Define a one-to-many or many-to-many relationship with `lazy="dynamic"`; use
95
+ `RelatedQuerySet["Model"]` from `sqlobjects.fields` for its annotation.
96
+ - Query with `await parent.children.filter(...).all()`, `.count()`, `.exists()`,
97
+ projections, slices or `async for`. Query construction does not execute SQL.
98
+ - `.fetch()` and `load_relation()` requery without caching a list. Synchronous
99
+ iteration, `len()` and truthiness are rejected.
100
+ - New queries use the parent's current keys and database/session binding.
101
+ Existing QuerySets keep their original conditions and binding.
102
+ - A complete parent primary key is required. Load deferred relation keys before
103
+ constructing a query; null reference values yield an empty query.
104
+ - `remote_fields` selects the child FK when several point to the parent. Composite
105
+ FK mappings and non-primary references are supported. Existing M2M tables use
106
+ membership subqueries to prevent duplicate targets.
107
+ - Custom join conditions and scalar dynamic relationships are rejected. Use
108
+ `uselist=True` with `remote_fields` for self-referential child collections.
109
+ - QuerySet writes affect target rows, not M2M links. This proxy does not supply
110
+ relationship add/remove/set or manager creation methods.
111
+
112
+ See the [dynamic collection examples](../features/05-relationships.md#dynamic-collections).
113
+
92
114
  ### Accessing Relationships
93
115
 
94
116
  ```python
@@ -131,7 +153,7 @@ posts = await Post.objects.select_related(Post.author).all()
131
153
 
132
154
  # Good: Filtered prefetch
133
155
  users = await User.objects.prefetch_related(
134
- recent_posts=Post.objects.filter(
156
+ posts=Post.objects.filter(
135
157
  Post.created_at >= datetime.now(timezone.utc) - timedelta(days=7)
136
158
  ).order_by('-created_at')
137
159
  ).all()
@@ -140,7 +162,9 @@ users = await User.objects.prefetch_related(
140
162
  ### ❌ Don't
141
163
 
142
164
  - **Don't use select_related** for reverse relationships (use prefetch_related)
143
- - **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()`
144
168
  - **Don't cause N+1 queries** by not using loading strategies
145
169
  - **Don't mix loading strategies** incorrectly
146
170
 
@@ -178,7 +202,7 @@ class Book(ObjectModel):
178
202
 
179
203
  # Usage
180
204
  author = await Author.objects.prefetch_related("books").get(Author.id == 1)
181
- books = await author.books.fetch()
205
+ books = await author.load_relation("books") # Prefetched list, no extra query
182
206
  ```
183
207
 
184
208
  ### One-to-One
@@ -211,7 +235,7 @@ class Course(ObjectModel):
211
235
 
212
236
  # Usage
213
237
  student = await Student.objects.prefetch_related("courses").get(Student.id == 1)
214
- courses = await student.courses.fetch()
238
+ courses = await student.load_relation("courses") # Prefetched list, no extra query
215
239
  ```
216
240
 
217
241
  ### Self-Referential
@@ -347,11 +371,11 @@ posts = await Post.objects.select_related("author").defer(
347
371
  "author__bio" # Heavy field from related model
348
372
  ).all()
349
373
 
350
- # Filter prefetched relationships
374
+ # Filter prefetched relationships (slicing the prefetch queryset is rejected)
351
375
  users = await User.objects.prefetch_related(
352
- recent_posts=Post.objects.filter(
376
+ posts=Post.objects.filter(
353
377
  Post.created_at >= datetime.now(timezone.utc) - timedelta(days=7)
354
- ).order_by('-created_at').limit(10)
378
+ ).order_by('-created_at')
355
379
  ).all()
356
380
  ```
357
381
 
@@ -394,9 +418,10 @@ users = await User.objects.prefetch_related("posts").all()
394
418
 
395
419
  **Solution**:
396
420
  ```python
397
- # 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)
398
423
  post = await Post.objects.get(Post.id == 1)
399
- author = await post.author.fetch() # Explicit load
424
+ author = await post.load_relation("author") # Explicit load
400
425
 
401
426
  # Or use select_related
402
427
  post = await Post.objects.select_related("author").get(Post.id == 1)
@@ -477,11 +502,11 @@ posts = await Post.objects.select_related("author").prefetch_related("comments",
477
502
 
478
503
  # Advanced prefetch with filtering
479
504
  users = await User.objects.prefetch_related(
480
- recent_posts=Post.objects.filter(
505
+ posts=Post.objects.filter(
481
506
  Post.created_at >= datetime.now(timezone.utc) - timedelta(days=7)
482
- ).order_by('-created_at').limit(5)
507
+ ).order_by('-created_at')
483
508
  ).all()
484
509
 
485
510
  for user in users:
486
- recent_posts = await user.recent_posts.fetch()
511
+ recent_posts = await user.load_relation("posts")
487
512
  ```
@@ -10,6 +10,23 @@
10
10
 
11
11
  ## Common Usage
12
12
 
13
+ ### Commit callbacks
14
+
15
+ - `after_*` signals describe operation completion, not transaction commit.
16
+ - Use `await context.on_commit(callback)` for external effects from an instance or bulk
17
+ signal, or `await session.on_commit(callback)` / `await on_commit(callback)`
18
+ from `sqlobjects.session` in application code.
19
+ - Pass a callable. Sync functions and awaitable return values run inline after
20
+ successful commit, in registration order. Rollback discards pending callbacks,
21
+ including those registered in a rolled-back savepoint.
22
+ - Manager `create()`, bulk methods and QuerySet writes provide transaction
23
+ boundaries for their hooks. For direct instance `save()`, use `ctx_session()`
24
+ when registering from `before_*`. Outside a transaction registration executes immediately.
25
+ - `robust=True` logs ordinary callback errors and continues. Callback errors never
26
+ undo an already committed transaction; cancellation is not swallowed.
27
+ - Open a new session for database work in callbacks. Use an outbox if delivery
28
+ must survive a process crash between commit and callback execution.
29
+
13
30
  ### Field-level Validation
14
31
 
15
32
  ```python
@@ -55,6 +72,10 @@ class User(ObjectModel):
55
72
 
56
73
  ### Instance-level Signals
57
74
 
75
+ `objects.create()` emits save/create instance hooks around an INSERT, including
76
+ when a primary key is supplied. Before hooks run before validation and SQL;
77
+ after hooks see the persisted instance. Sync handlers may return an awaitable.
78
+
58
79
  ```python
59
80
  from sqlobjects.model import ObjectModel
60
81
  from sqlobjects.signals import SignalContext
@@ -104,6 +125,17 @@ class User(ObjectModel):
104
125
 
105
126
  ### Bulk Operation Signals
106
127
 
128
+ Manager bulk methods emit class hooks once per batch, with no instance hooks.
129
+ Create/update also emit generic bulk-save hooks. Before counts are input sizes;
130
+ after counts match each batch's successful result count. Empty input emits no
131
+ hooks. QuerySet update/delete hooks run once per call; before counts are unknown,
132
+ and only QuerySet update supplies uniform `update_data`.
133
+
134
+ Use `context.session` for work in the batch transaction and `context.on_commit()`
135
+ for effects after its commit. Hook failures propagate even with `IGNORE` or
136
+ `COLLECT`; earlier committed batches remain stored. See the
137
+ [full signal contract](../features/06-validation-signals.md#bulk-operation-signals).
138
+
107
139
  ```python
108
140
  class User(ObjectModel):
109
141
  @classmethod
@@ -201,7 +233,9 @@ async def before_save(self, context: SignalContext):
201
233
  self.updated_at = datetime.now(timezone.utc) # Fast
202
234
 
203
235
  async def after_save(self, context: SignalContext):
204
- 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)
205
239
  ```
206
240
 
207
241
  ## Signal Execution Flow
@@ -291,22 +325,23 @@ class User(ObjectModel):
291
325
  ### Signal Performance
292
326
 
293
327
  ```python
294
- # 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.
295
332
  async def after_create(self, context: SignalContext):
296
- await asyncio.gather(
297
- self.send_welcome_email(),
298
- self.create_default_preferences(),
299
- self.log_user_creation()
300
- )
333
+ await self.create_default_preferences()
334
+ await self.log_user_creation()
301
335
 
302
- # 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.
303
339
  async def after_save(self, context: SignalContext):
304
- # Critical operations (blocking)
305
340
  self.updated_at = datetime.now(timezone.utc)
306
-
307
- # Non-critical operations (background)
341
+
308
342
  if not context.is_bulk:
309
- 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)
310
345
  ```
311
346
 
312
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.0.1
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,9 @@ 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
+ Provides-Extra: migrations
29
+ Requires-Dist: alembic>=1.16.5; extra == "migrations"
28
30
  Dynamic: license-file
29
31
 
30
32
  # SQLObjects
@@ -176,7 +178,7 @@ from sqlobjects.session import ctx_session, ctx_sessions
176
178
  # Single database transaction
177
179
  async with ctx_session() as session:
178
180
  user = await User.objects.using(session).create(username="bob")
179
- posts = await user.posts.using(session).all()
181
+ posts = await Post.objects.using(session).filter(author_id=user.id).all()
180
182
  # Automatic commit on success, rollback on error
181
183
 
182
184
  # Multi-database transactions
@@ -300,10 +302,12 @@ avg_age = User.objects.aggregate(avg_age=func.avg(User.age)).subquery(query_type
300
302
  older_users = await User.objects.filter(User.age > avg_age).all()
301
303
 
302
304
  # Manual joins and locking
303
- posts = await Post.objects.join(
304
- User, # Using Model class (recommended)
305
- Post.author_id == User.id
306
- ).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()
307
311
 
308
312
  # Raw SQL when needed
309
313
  users = await User.objects.raw(
@@ -352,6 +356,10 @@ uv run pytest tests/performance/ # Performance tests
352
356
  uv run pytest --cov=sqlobjects
353
357
  ```
354
358
 
359
+ Performance tests verify results, query counts and object release while recording
360
+ timing and memory observations. See the [benchmark instructions](tests/performance/README.md)
361
+ for reproducible runs and JUnit measurement reports.
362
+
355
363
  ## 🤝 Contributing
356
364
 
357
365
  We welcome contributions! Please see our development guidelines:
@@ -385,7 +393,8 @@ See our [TODO.md](TODO.md) for planned features:
385
393
  - **Database management**: connection health checks, dynamic default-database switching, connection-pool monitoring
386
394
  - **Advanced SQL**: additional aggregate functions (array / JSON aggregation)
387
395
  - **Query optimization**: index suggestions and slow-query analysis tools
388
- - **Migrations**: model-diff migration generation and batched data-migration tooling
396
+ - **Migrations**: native migration orchestration and batched data-migration tooling;
397
+ [Alembic autogeneration and async execution](docs/features/09-migrations.md) are available now.
389
398
 
390
399
  Already implemented: window functions, CTEs (including recursive), `EXPLAIN`
391
400
  query analysis, cascade operations, SQL logging, and high-performance bulk
@@ -0,0 +1,76 @@
1
+ sqlobjects/__init__.py,sha256=NI5wZWG2fKiW6AYqIVdU7SCzwM2Jv1WO8UP5SyxInGs,1095
2
+ sqlobjects/_compat.py,sha256=as7h9l8z8Y17TDf6YpaZwDRAizpoV0tJ5RU0zhxc7TA,2639
3
+ sqlobjects/_install_rules.py,sha256=qibOEE7d-WvAEmr38Q6a_lhk6M_sUkCZj86QhuvBsho,4661
4
+ sqlobjects/cascade.py,sha256=Zlf7Y-K-z45V10_8DfDdJxB1KLJGs9LH2GFTTpFFTio,39585
5
+ sqlobjects/exceptions.py,sha256=vkhuyiLOHltpLnmWaiMKkNsXYZu2IXMpJZ0AxmNAnSI,17214
6
+ sqlobjects/metadata.py,sha256=pzV6G4OluBdDd51FkQqvH4PxIX3ZdcXW3TM2Wnu4Lpg,50230
7
+ sqlobjects/mixins.py,sha256=fFKKUTigpfD8pZnKBrvxF5YBdJ7UHHhT7pAsefOWWoI,27010
8
+ sqlobjects/model.py,sha256=2mRObWQFumCMy_ql7dt0fWoNdb2PcUPBRGcWXQl7wOc,19577
9
+ sqlobjects/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
+ sqlobjects/queryset.py,sha256=0VHbrkdCC8xufSey2dS6EJaWj2jYMw6KVollDpvjlCk,52388
11
+ sqlobjects/session.py,sha256=nYkqUikiRRxOxLHOWmJ0nkukxHU5mVaR-y-Od8jdkrQ,29404
12
+ sqlobjects/signals.py,sha256=ujSZEKXs18dqO_GTkXThbJ-TetjeGRn3q1OqUxGBo6I,19116
13
+ sqlobjects/sql_logging.py,sha256=fkw5GFgtLGehwAtEzhSD67QGTiY5vjCmU7B7SFdz5Is,11370
14
+ sqlobjects/validators.py,sha256=aqP7YgCnx-cjthqRo2RD-Iz2lvFsJsDgT73HwLwZGxE,10334
15
+ sqlobjects/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
+ sqlobjects/contrib/asgi.py,sha256=kocdZbJwfYgVltqMlRc2Lx8sgO9KVUXdn8sO4zEJbWo,1981
17
+ sqlobjects/contrib/fastapi.py,sha256=TVcQfUs_xdzeC8tVSS1QhZ4p0vAWWkztr-oforrIyuU,807
18
+ sqlobjects/database/__init__.py,sha256=6lSRw4RzaWhomWEMyPWnpza7UxACQ6JhcFWxnLZZXlU,434
19
+ sqlobjects/database/config.py,sha256=QjZqWHtvOGkMm3tiREXJoehPCYSRoqwtZ2hCNGhLoTw,19331
20
+ sqlobjects/database/manager.py,sha256=sOkcfxj4q6qw4esAhS9p15cZEPxCw67_m96uITA8NnQ,22537
21
+ sqlobjects/expressions/__init__.py,sha256=ZkMu2rZegIz-omJllW4QR-dVjty6P7DNJDjCRlIvalw,1628
22
+ sqlobjects/expressions/aggregate.py,sha256=SyOCNg7qpk2AnPkzJGN5Dwv5R76VZH-y_TOX2PnNyPk,8007
23
+ sqlobjects/expressions/base.py,sha256=L9zHa9gb9M88sA9JmUSpR9k5tr-9Pgknbajo1ZmhOpk,5177
24
+ sqlobjects/expressions/cte.py,sha256=WLAa8MVDCWu5euayXAwjAbGNGtSxxXyBcprBEmXo6HY,4417
25
+ sqlobjects/expressions/explain.py,sha256=GpfJq_JPgBfkNa9xlPi1wvkqYR6hlgT4V6lq5y6ftCE,1210
26
+ sqlobjects/expressions/function.py,sha256=AoznhAQxvIpRGzyvR07PCJ6Oz_TBrwflAwzWJuHpDro,16878
27
+ sqlobjects/expressions/mixins.py,sha256=y430mXrJoz9dn7BNO74ZCtFvP1P5IDJAC3c5t4-Ex3s,11595
28
+ sqlobjects/expressions/scalar.py,sha256=JcwwArLoegVXKKDm2VudxGbUM01Evrf0frlWkriIPzk,5864
29
+ sqlobjects/expressions/subquery.py,sha256=Jhhcl-EJbCvZmC91f7mZI4yeJqYVEyWtODHgB0_tNjk,15065
30
+ sqlobjects/expressions/terminal.py,sha256=vxma0FytPXlfJdea4v5W0i5WwN9VWTnHDuxnoTfEX0c,14650
31
+ sqlobjects/expressions/window.py,sha256=0Olsi422n04SuemGjhIB_WwA9vTGJvMqOjHPWBFjHOo,7871
32
+ sqlobjects/fields/__init__.py,sha256=vPfJVLVFkvEhiGp4yZUovpGGRmgCCKPqI22wWTZwhr8,1503
33
+ sqlobjects/fields/core.py,sha256=XFGdzydEBUyOogJrP0W7zqQCxliKgRxVWmpbjLuDcxs,38721
34
+ sqlobjects/fields/functions.py,sha256=5a5I9pwzhz01HTbLw1M-AX_3StROfwwJzinqiFUFEfc,5468
35
+ sqlobjects/fields/proxies.py,sha256=jBFI9IJKzPfnAWf1u1s6iHzrAjaC5BWx0Ff6fomRccI,20278
36
+ sqlobjects/fields/shortcuts.py,sha256=euYyW0DliR77jLZDRQLNSsCpIHJBoRc7kzTBOIvHQFo,22794
37
+ sqlobjects/fields/utils.py,sha256=HokUdlkyrUT85U468_ngWH7wbGj-VSjSet1AYG64tqI,3549
38
+ sqlobjects/fields/relations/__init__.py,sha256=Bw64TIxt_HlRzRkjlu1t2hMRSvktWGxtI3BXdleTcVQ,629
39
+ sqlobjects/fields/relations/descriptors.py,sha256=9vqcyMsfG_oqO5YxCGm38uGgwCNfJBJBTGj91A9ysLA,5403
40
+ sqlobjects/fields/relations/managers.py,sha256=k0dU4xisRCvUTTTowEQpJUM1BXVt3J65lDInAC9W5zg,2919
41
+ sqlobjects/fields/relations/prefetch.py,sha256=2R_MhX9zJFjGU3NRP_Qob10S9N4LHubw_DTnuV8liEo,7343
42
+ sqlobjects/fields/relations/strategies.py,sha256=X4KkeBxwpCcBHWhcL9EGH2WTQ2NdZWBJzm3SMZagpIQ,566
43
+ sqlobjects/fields/relations/utils.py,sha256=R2qJpGpV3-S9ty4qBU3o09WIk_5ruHJJ-AmqfxhNG9Q,14316
44
+ sqlobjects/fields/types/__init__.py,sha256=PaEslOWuQVZVUoVnUFtqF-sNHOvF9AEVhuDseqRr-GA,651
45
+ sqlobjects/fields/types/base.py,sha256=aK-8UDYtUcqJtwxw_emR-WefKDhrQyp0BK7s-UKx4yw,463
46
+ sqlobjects/fields/types/comparators.py,sha256=ooK0I1IKgVMcMnqX_L-FY7-0TPvmYff_xoRNHCglrf0,18225
47
+ sqlobjects/fields/types/registry.py,sha256=6wNs-Fa18QA6o9u57eJ2yZyojOi4SdIu6Xd9ROsvM7I,14792
48
+ sqlobjects/internal/__init__.py,sha256=Vam4blEYmPIgxMJY5YI32btY6Q2SD49OaGduwnaSDsM,447
49
+ sqlobjects/internal/operations.py,sha256=IDB6XiIDZUFBfm_uub6Jr77hgOAEpCQbLNLBAcHeflA,3561
50
+ sqlobjects/internal/results.py,sha256=ZvZ2iQIZtD2hfS0jgUWAIeSz3FDwU2gJpUNC9QuYQvQ,2205
51
+ sqlobjects/objects/__init__.py,sha256=-giYZfwSO2LQbXRaAt4Jh-sCbWDTxnN0DKtoZByjQTI,371
52
+ sqlobjects/objects/bulk.py,sha256=iIQ0fBUP8LZnm0twnOKczGsqVOgZvLrOHOq3q65U0BE,36247
53
+ sqlobjects/objects/core.py,sha256=qSPrheZWpgj_wEqRUA2VsWnezs1Bx_039ZZJ3RYo9nY,37368
54
+ sqlobjects/objects/upsert.py,sha256=bIdiP01DvBeaRZHLvWDckbQ898TctzoCTsjpHb9Fxjc,6302
55
+ sqlobjects/queries/__init__.py,sha256=A9bXXsvht7HYjz8diDYLCEPX96Fr7T4eQh_iJfl4ToA,216
56
+ sqlobjects/queries/builder.py,sha256=gwbqoHksjzikR_Ei_S0GAoOpkQmkvnzAr7LUelyiDK8,27317
57
+ sqlobjects/queries/dialect.py,sha256=oluv9MOH_CT8dOx9GJwc3U5QnTEaS8Q8LSiJ3QOjSyo,8095
58
+ sqlobjects/queries/executor.py,sha256=JH2gt0Ltv7C448GOxDy2G9oVLQ9mVSeH1FW2dHyOiKs,15521
59
+ sqlobjects/utils/__init__.py,sha256=NsJ52Fl_PaB-2WlOIJVGNPmgOnqPmvYRmp7uaq5zfYs,192
60
+ sqlobjects/utils/inspect.py,sha256=u-Q9VBoSGYCE_3Soy8jMuCAdM-P7IkSzTxqrJop_Ilk,2612
61
+ sqlobjects/utils/naming.py,sha256=Uk0VxwCEuZXhwIR3l_CALSCqa8Ak7DhhVzLelMyc9Nc,2117
62
+ sqlobjects/utils/pattern.py,sha256=FGCgobTpnmKjdAtQidHIg4Xa2CQLeP35F0VuX_1T1dk,14740
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
 
@@ -1,75 +0,0 @@
1
- sqlobjects/__init__.py,sha256=xTpFsD7unoOrSMWNSiqp8C3_6Ib9W-XXDsBlihc8zrY,1095
2
- sqlobjects/_install_rules.py,sha256=qibOEE7d-WvAEmr38Q6a_lhk6M_sUkCZj86QhuvBsho,4661
3
- sqlobjects/cascade.py,sha256=QzNNJLf-jeh-p12Do7w2G8j-DYAVoqp1-cDATBhjRP8,39522
4
- sqlobjects/exceptions.py,sha256=vkhuyiLOHltpLnmWaiMKkNsXYZu2IXMpJZ0AxmNAnSI,17214
5
- sqlobjects/metadata.py,sha256=mOjtM1vz2RcMIefpOA_leF--Y1INoL7CECI_Kt2E9UI,46541
6
- sqlobjects/mixins.py,sha256=sm5_G4jD6sQ42nd6uw2AlC6WdhN8XXrW6SilG8ra-BQ,26060
7
- sqlobjects/model.py,sha256=3cws701s1f788CTOoyTRHAKgZnH4rfn_c6tVx9wyTBs,19582
8
- sqlobjects/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
- sqlobjects/queryset.py,sha256=01JWcezTVNK0c78lg2M1B0GvrezG2X7pgP9x-sdpaqQ,51310
10
- sqlobjects/session.py,sha256=X-NYmcdctFrcVuKmDblssjetdPiWLEC_XQoZxxRGwsU,16640
11
- sqlobjects/signals.py,sha256=N4mhotmMy_Ub-XJCvdlfsQ767KVzPbbJdF0JlJ405Oc,17454
12
- sqlobjects/sql_logging.py,sha256=LGnhKtLvoHcGVnclEG31rBavvD28iBREpvxsmmcxgu4,7370
13
- sqlobjects/validators.py,sha256=aqP7YgCnx-cjthqRo2RD-Iz2lvFsJsDgT73HwLwZGxE,10334
14
- sqlobjects/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
- sqlobjects/contrib/asgi.py,sha256=9-kOMAHA2xkKkgc2djec2sew6Og2dr3jGtQGd5oPrrM,1931
16
- sqlobjects/contrib/fastapi.py,sha256=TVcQfUs_xdzeC8tVSS1QhZ4p0vAWWkztr-oforrIyuU,807
17
- sqlobjects/database/__init__.py,sha256=6lSRw4RzaWhomWEMyPWnpza7UxACQ6JhcFWxnLZZXlU,434
18
- sqlobjects/database/config.py,sha256=QjZqWHtvOGkMm3tiREXJoehPCYSRoqwtZ2hCNGhLoTw,19331
19
- sqlobjects/database/manager.py,sha256=8oMNC8hyqXJaRaFaWfzcuvQlkjRxtnorVE3Fa7lfUJo,20951
20
- sqlobjects/expressions/__init__.py,sha256=ZkMu2rZegIz-omJllW4QR-dVjty6P7DNJDjCRlIvalw,1628
21
- sqlobjects/expressions/aggregate.py,sha256=Gh4HekOaUmYDkS8O4QnmEhuf73QD44dBuAgULuqPNQ8,3972
22
- sqlobjects/expressions/base.py,sha256=L9zHa9gb9M88sA9JmUSpR9k5tr-9Pgknbajo1ZmhOpk,5177
23
- sqlobjects/expressions/cte.py,sha256=WLAa8MVDCWu5euayXAwjAbGNGtSxxXyBcprBEmXo6HY,4417
24
- sqlobjects/expressions/explain.py,sha256=GpfJq_JPgBfkNa9xlPi1wvkqYR6hlgT4V6lq5y6ftCE,1210
25
- sqlobjects/expressions/function.py,sha256=AoznhAQxvIpRGzyvR07PCJ6Oz_TBrwflAwzWJuHpDro,16878
26
- sqlobjects/expressions/mixins.py,sha256=y430mXrJoz9dn7BNO74ZCtFvP1P5IDJAC3c5t4-Ex3s,11595
27
- sqlobjects/expressions/scalar.py,sha256=TRg1cg70m5kLKK2d-IOCHk0hPD2WWtXYErlMYSz6zio,6034
28
- sqlobjects/expressions/subquery.py,sha256=Jhhcl-EJbCvZmC91f7mZI4yeJqYVEyWtODHgB0_tNjk,15065
29
- sqlobjects/expressions/terminal.py,sha256=vxma0FytPXlfJdea4v5W0i5WwN9VWTnHDuxnoTfEX0c,14650
30
- sqlobjects/expressions/window.py,sha256=0Olsi422n04SuemGjhIB_WwA9vTGJvMqOjHPWBFjHOo,7871
31
- sqlobjects/fields/__init__.py,sha256=SXYpmfS3l0CqKTIJsOD68wiQIE_x2ORYk2D7gb_E7Qc,1459
32
- sqlobjects/fields/core.py,sha256=IUGofZ-BlPuMzQBsqH25Ri9eGvLkenur7969u_wMniU,38712
33
- sqlobjects/fields/functions.py,sha256=5a5I9pwzhz01HTbLw1M-AX_3StROfwwJzinqiFUFEfc,5468
34
- sqlobjects/fields/proxies.py,sha256=nUSKYWDdmv91--0TzWh5-YK-fauW-piVVAiLZtMWjqM,17541
35
- sqlobjects/fields/shortcuts.py,sha256=euYyW0DliR77jLZDRQLNSsCpIHJBoRc7kzTBOIvHQFo,22794
36
- sqlobjects/fields/utils.py,sha256=HokUdlkyrUT85U468_ngWH7wbGj-VSjSet1AYG64tqI,3549
37
- sqlobjects/fields/relations/__init__.py,sha256=Bw64TIxt_HlRzRkjlu1t2hMRSvktWGxtI3BXdleTcVQ,629
38
- sqlobjects/fields/relations/descriptors.py,sha256=Dws4L_GyF8WljU__jSDkgc559Syx6ERz8elj_vse15o,5222
39
- sqlobjects/fields/relations/managers.py,sha256=k0dU4xisRCvUTTTowEQpJUM1BXVt3J65lDInAC9W5zg,2919
40
- sqlobjects/fields/relations/prefetch.py,sha256=ccWO8hKfUUJVPoL5CPLUSMtscwT-XZg82hNArxh2nmc,6206
41
- sqlobjects/fields/relations/strategies.py,sha256=X4KkeBxwpCcBHWhcL9EGH2WTQ2NdZWBJzm3SMZagpIQ,566
42
- sqlobjects/fields/relations/utils.py,sha256=G1PbW1heCShUSfjaDIbqj4I0yODdy4j3udf0Ex70cOg,12487
43
- sqlobjects/fields/types/__init__.py,sha256=PaEslOWuQVZVUoVnUFtqF-sNHOvF9AEVhuDseqRr-GA,651
44
- sqlobjects/fields/types/base.py,sha256=aK-8UDYtUcqJtwxw_emR-WefKDhrQyp0BK7s-UKx4yw,463
45
- sqlobjects/fields/types/comparators.py,sha256=ooK0I1IKgVMcMnqX_L-FY7-0TPvmYff_xoRNHCglrf0,18225
46
- sqlobjects/fields/types/registry.py,sha256=6wNs-Fa18QA6o9u57eJ2yZyojOi4SdIu6Xd9ROsvM7I,14792
47
- sqlobjects/internal/__init__.py,sha256=Vam4blEYmPIgxMJY5YI32btY6Q2SD49OaGduwnaSDsM,447
48
- sqlobjects/internal/operations.py,sha256=IDB6XiIDZUFBfm_uub6Jr77hgOAEpCQbLNLBAcHeflA,3561
49
- sqlobjects/internal/results.py,sha256=rTX4sIG9Eo9Ik3eTWKV116MPtNzGjdLAJIy8FdVGWBA,2216
50
- sqlobjects/objects/__init__.py,sha256=-giYZfwSO2LQbXRaAt4Jh-sCbWDTxnN0DKtoZByjQTI,371
51
- sqlobjects/objects/bulk.py,sha256=vtLm16xL0UKABW5nMs21eOalrC79qvIoiyAs3ergxAw,40459
52
- sqlobjects/objects/core.py,sha256=uVRqFSLv-0cLdiGd9BS8c_an8jFD-S985oghWM_B46c,36666
53
- sqlobjects/objects/upsert.py,sha256=cqV3SEppI_mkWbhKFTslmMeVSuNREYzKy-HjUMexGTk,2516
54
- sqlobjects/queries/__init__.py,sha256=A9bXXsvht7HYjz8diDYLCEPX96Fr7T4eQh_iJfl4ToA,216
55
- sqlobjects/queries/builder.py,sha256=JkS3SEBBNLauLUj0gd9YSDJtbu7Sue7yYWh5cBOZZtU,29579
56
- sqlobjects/queries/dialect.py,sha256=_rMKbqKfdAvVoDwE17nF1lcL7nH7fyaNQHVhwD232i4,8003
57
- sqlobjects/queries/executor.py,sha256=sKC5IEIMOsIuchpEwKE3UacJl_g3agNMB191M3_puxg,19135
58
- sqlobjects/utils/__init__.py,sha256=NsJ52Fl_PaB-2WlOIJVGNPmgOnqPmvYRmp7uaq5zfYs,192
59
- sqlobjects/utils/inspect.py,sha256=u-Q9VBoSGYCE_3Soy8jMuCAdM-P7IkSzTxqrJop_Ilk,2612
60
- sqlobjects/utils/naming.py,sha256=PmfNuEz-Twly2qREjKfMNulJt8TmOUJaxzFTuts3COg,1411
61
- sqlobjects/utils/pattern.py,sha256=FGCgobTpnmKjdAtQidHIg4Xa2CQLeP35F0VuX_1T1dk,14740
62
- sqlobjects-2.0.1.data/data/share/sqlobjects/rules/01-database-session-guide.md,sha256=SCmMJmwmDmUZ-09rDp4_QY10fJorreFNlNeuQ1Os244,12089
63
- sqlobjects-2.0.1.data/data/share/sqlobjects/rules/02-model-definition-guide.md,sha256=WoXiQaU8PleXx-H-Li_BaiRoTjMMe7C8n_kt9ThF8vo,12377
64
- sqlobjects-2.0.1.data/data/share/sqlobjects/rules/03-query-operations-guide.md,sha256=xT-D7ScbWB7uMHKAR4y7P9-NSLj9PMVsXy_FY4Ob3U0,12803
65
- sqlobjects-2.0.1.data/data/share/sqlobjects/rules/04-crud-operations-guide.md,sha256=T8bqxIOztI91dmNP4NVtbGySKqcfRWSCR5y4sEuuoRU,15206
66
- sqlobjects-2.0.1.data/data/share/sqlobjects/rules/05-relationships-guide.md,sha256=YwbyzxnTLw1k75jJM-W4aq9m6n7_Lt41SeYlYsK99xo,15822
67
- sqlobjects-2.0.1.data/data/share/sqlobjects/rules/06-validation-signals-guide.md,sha256=80cJD3kIZO6VTzIe5bFQldBLkA4eRBy_0slkIcBFoTc,14398
68
- sqlobjects-2.0.1.data/data/share/sqlobjects/rules/07-performance-guide.md,sha256=yVeaosseehxR3_IwEqcafIwY_8t5zxPQ4GmHQ93YxeA,12940
69
- sqlobjects-2.0.1.data/data/share/sqlobjects/rules/README.md,sha256=c1jW0hZdvUN3yP_KKO_5oDiT-uxPepBLJK0dbDXJwL0,4233
70
- sqlobjects-2.0.1.dist-info/licenses/LICENSE,sha256=ScFR7nvWIhar0d32Y-LA4vqp9zNmy1HSJia7UX7jU6c,1068
71
- sqlobjects-2.0.1.dist-info/METADATA,sha256=e7f4u5F6yNx_MIhU8u0qgyMbSf2_aeUoKl2wRwwMfIM,14255
72
- sqlobjects-2.0.1.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
73
- sqlobjects-2.0.1.dist-info/entry_points.txt,sha256=9Q3Ci55MawxkQhMlR_eLJui00_rYYIVO_Aq_Dm0u5MQ,76
74
- sqlobjects-2.0.1.dist-info/top_level.txt,sha256=brO5vDtCpn4L9dpX0EHpehbu4kcHaK_2Bbnwze35YKc,11
75
- sqlobjects-2.0.1.dist-info/RECORD,,