pydoptic-sql 0.0.1.post1.dev2__py3-none-any.whl → 0.0.2.post1.dev1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pydoptic-sql
3
- Version: 0.0.1.post1.dev2
3
+ Version: 0.0.2.post1.dev1
4
4
  Summary: A type-safe SQL query builder built on pydoptic
5
5
  Author: John Hungerford
6
6
  License-Expression: MIT
@@ -55,9 +55,8 @@ with psycopg.connect("host=localhost dbname=mydb user=postgres password=password
55
55
  print(Worker.name.get_val_safe(worker))
56
56
  ```
57
57
 
58
- Joining a second table narrows and widens the query's type together -- `Constraint2` (not
59
- `Constraint`) is required for a WHERE/ON clause once a second table is in scope, and can reference
60
- either table directly:
58
+ Joining a second table generates a new query with two table type parameters. Constraints added to this
59
+ query are widened to include both table properties (e.g., `Constraint2` instead of `Constraint`):
61
60
 
62
61
  ```python3
63
62
  class Department(SqlTable):
@@ -71,5 +70,7 @@ query = SqlQuery.from_table(Worker).join_inner(
71
70
  ).select(Worker.name, Department.name).where(Constraint2.gte(Worker.age, 18))
72
71
  ```
73
72
 
73
+ Currently, queries can include joins up to four tables deep.
74
+
74
75
  See the [pydoptic README](https://github.com/johnhungerford/pydoptic/tree/main/packages/pydoptic) for
75
76
  the underlying `Prop`/`Select` model this is built on.
@@ -7,8 +7,8 @@ pydoptic_sql/sql_order.py,sha256=y37XRRAZPIvvVPmZPljgP3Ht4Q6Oy-dEEBMvmlKVJk8,103
7
7
  pydoptic_sql/sql_query.py,sha256=UXqy6T9oJQSlhs0e4416jwRcWkyiWUs41Keq6qYvOMw,75539
8
8
  pydoptic_sql/sql_service.py,sha256=AsYJcH1zTgzMllp6BchZm9TNYEQfk3SILqs1DRSTy5s,14898
9
9
  pydoptic_sql/sql_table.py,sha256=fNpsAqsg68E9HrJV7m0yDIUJu-Tqdo6o7pMSGJvtLQo,4202
10
- pydoptic_sql-0.0.1.post1.dev2.dist-info/licenses/LICENSE,sha256=mWq1sTRv24YgxnIenVK1P8FNY2YMof3kT7e6D-06KZY,1072
11
- pydoptic_sql-0.0.1.post1.dev2.dist-info/METADATA,sha256=mslfxHx2lsSJ-gJqiUDcEcoKEo53P1OxKT0KglvKGLA,2678
12
- pydoptic_sql-0.0.1.post1.dev2.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
13
- pydoptic_sql-0.0.1.post1.dev2.dist-info/top_level.txt,sha256=01AdOUMZQBRcEVP-RL26QyHmtsB3yJgvBumE8SUx5Kw,13
14
- pydoptic_sql-0.0.1.post1.dev2.dist-info/RECORD,,
10
+ pydoptic_sql-0.0.2.post1.dev1.dist-info/licenses/LICENSE,sha256=mWq1sTRv24YgxnIenVK1P8FNY2YMof3kT7e6D-06KZY,1072
11
+ pydoptic_sql-0.0.2.post1.dev1.dist-info/METADATA,sha256=KVwB4v8s1NlLdH5byf8CXWOwoFhUAN3xSmQd8FHjoH4,2729
12
+ pydoptic_sql-0.0.2.post1.dev1.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
13
+ pydoptic_sql-0.0.2.post1.dev1.dist-info/top_level.txt,sha256=01AdOUMZQBRcEVP-RL26QyHmtsB3yJgvBumE8SUx5Kw,13
14
+ pydoptic_sql-0.0.2.post1.dev1.dist-info/RECORD,,