sql-athame 0.4.0a11__py3-none-any.whl → 0.4.0a13__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: sql-athame
3
- Version: 0.4.0a11
3
+ Version: 0.4.0a13
4
4
  Summary: Python tool for slicing and dicing SQL
5
5
  Project-URL: homepage, https://github.com/bdowning/sql-athame
6
6
  Project-URL: repository, https://github.com/bdowning/sql-athame
@@ -19,6 +19,9 @@ Python tool for slicing and dicing SQL. Its intended target is
19
19
  Postgres with _asyncpg_, though it also includes support for rendering
20
20
  to a SQLAlchemy `TextClause`.
21
21
 
22
+ _Note that current docstrings are autogenerated and have not been
23
+ carefully reviewed; take them with a grain of salt!_
24
+
22
25
  ## Base query builder
23
26
 
24
27
  ### Example
@@ -334,9 +337,9 @@ Requires SQLAlchemy to be installed, otherwise raises `ImportError`.
334
337
  from dataclasses import dataclass, field
335
338
  from datetime import date
336
339
  from uuid import UUID, uuid4
337
- from typing import Optional
340
+ from typing import Annotated, Optional
338
341
 
339
- from sql_athame import ModelBase, model_field_metadata as MD, sql
342
+ from sql_athame import ModelBase, ColumnInfo, sql
340
343
 
341
344
 
342
345
  @dataclass
@@ -345,7 +348,7 @@ class Person(ModelBase, table_name="people", primary_key="id"):
345
348
  name: str
346
349
  birthday: date
347
350
  title: Optional[str] = None
348
- extra: Optional[dict] = field(default=None, metadata=MD(type="JSONB"))
351
+ extra: Optional[Annotated[dict, ColumnInfo(type="JSONB")]] = None
349
352
 
350
353
 
351
354
  >>> list(Person.create_table_sql())
@@ -398,4 +401,4 @@ TODO, for now read the [source](sql_athame/dataclasses.py).
398
401
  MIT.
399
402
 
400
403
  ---
401
- Copyright (c) 2019, 2020 Brian Downing
404
+ Copyright (c) 2019–2025 Brian Downing
@@ -0,0 +1,11 @@
1
+ sql_athame/__init__.py,sha256=0GA9-xfnZ_gw7Vysx6t4iInQ2kGXos1EYwBI6Eb7auU,100
2
+ sql_athame/base.py,sha256=yybsjDG7XgpnV1BtWCLPOzlL7TbYASt-ySyZ3VFrxdA,28402
3
+ sql_athame/dataclasses.py,sha256=od1Szsv7zUJYQ1AOmF-NeXNNoU9zCDnQW4pb0mK7MEo,57873
4
+ sql_athame/escape.py,sha256=kK101xXeFitlvuG-L_hvhdpgGJCtmRTprsn1yEfZKws,758
5
+ sql_athame/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ sql_athame/sqlalchemy.py,sha256=aWopfPh3j71XwKmcN_VcHRNlhscI0Sckd4AiyGf8Tpw,1293
7
+ sql_athame/types.py,sha256=FQ06l9Uc-vo57UrAarvnukILdV2gN1IaYUnHJ_bNYic,475
8
+ sql_athame-0.4.0a13.dist-info/METADATA,sha256=Xo_vsRN-f-nvNH73zDvg1wfS-J5WTjEXRc87h-VLL80,12681
9
+ sql_athame-0.4.0a13.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
10
+ sql_athame-0.4.0a13.dist-info/licenses/LICENSE,sha256=kPtZhuBL-A3tMrge4oz5bm_Di2M8KcA-sJY7abTEfZ4,1075
11
+ sql_athame-0.4.0a13.dist-info/RECORD,,
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2019, 2020 Brian Downing
3
+ Copyright (c) 2019-2025 Brian Downing
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,11 +0,0 @@
1
- sql_athame/__init__.py,sha256=0GA9-xfnZ_gw7Vysx6t4iInQ2kGXos1EYwBI6Eb7auU,100
2
- sql_athame/base.py,sha256=FR7EmC0VkX1VRgvAutSEfYSWhlEYpoqS1Kqxp1jHp6Y,10293
3
- sql_athame/dataclasses.py,sha256=0XjLXpSBgdtWqJkTdaluLs8_RXPlfJp5ERKGOe-bXBM,27442
4
- sql_athame/escape.py,sha256=kK101xXeFitlvuG-L_hvhdpgGJCtmRTprsn1yEfZKws,758
5
- sql_athame/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- sql_athame/sqlalchemy.py,sha256=aWopfPh3j71XwKmcN_VcHRNlhscI0Sckd4AiyGf8Tpw,1293
7
- sql_athame/types.py,sha256=FQ06l9Uc-vo57UrAarvnukILdV2gN1IaYUnHJ_bNYic,475
8
- sql_athame-0.4.0a11.dist-info/METADATA,sha256=DXasc1ZenA7rqqTPu0G0Y1dfFEGmzngZGhAnUxGJAcs,12570
9
- sql_athame-0.4.0a11.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
10
- sql_athame-0.4.0a11.dist-info/licenses/LICENSE,sha256=xqV29vPFqITcKifYrGPgVIBjq4fdmLSwY3gRUtDKafg,1076
11
- sql_athame-0.4.0a11.dist-info/RECORD,,