slinn-orm 0.0.8__tar.gz → 0.0.9__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: slinn-orm
3
- Version: 0.0.8
3
+ Version: 0.0.9
4
4
  Summary: ORM for Slinn
5
5
  Author-email: Mark Radin <openmiot@gmail.com>
6
6
  Requires-Python: >=3.14
@@ -146,21 +146,13 @@ class UIDField(Field):
146
146
  class UUIDField(Field):
147
147
  def __init__(self):
148
148
  self.set_default_expr("""
149
- (
150
- unhex(
151
- hex(
152
- unhex(
153
- substr(
154
- hex(zeroblob(8) || printf('%016X', CAST(unixepoch('subsecond') * 1000 AS INTEGER))), -12
155
- )
156
- )
157
- )
158
- ||
159
- '7' || substr(hex(randomblob(2)), 2, 3)
160
- ||
161
- substr('89AB', 1 + (abs(random()) % 4), 1) || substr(hex(randomblob(8)), 2)
162
- )
163
- )
149
+ (unhex(
150
+ printf('%012X', CAST(unixepoch('subsecond') * 1000 AS INTEGER)) ||
151
+ '7' ||
152
+ substr(hex(randomblob(2)), 2, 3) ||
153
+ substr('89AB', 1 + (abs(random()) % 4), 1) ||
154
+ substr(hex(randomblob(8)), 2)
155
+ ))
164
156
  """)
165
157
 
166
158
  class InetField(Field):
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "slinn-orm"
7
- version = "0.0.8"
7
+ version = "0.0.9"
8
8
  description = "ORM for Slinn"
9
9
  requires-python = ">=3.14"
10
10
  authors = [{ name = "Mark Radin", email = "openmiot@gmail.com" }]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: slinn-orm
3
- Version: 0.0.8
3
+ Version: 0.0.9
4
4
  Summary: ORM for Slinn
5
5
  Author-email: Mark Radin <openmiot@gmail.com>
6
6
  Requires-Python: >=3.14
File without changes
File without changes
File without changes
File without changes
File without changes