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.
- {slinn_orm-0.0.8/slinn_orm.egg-info → slinn_orm-0.0.9}/PKG-INFO +1 -1
- {slinn_orm-0.0.8 → slinn_orm-0.0.9}/orm/models.py +7 -15
- {slinn_orm-0.0.8 → slinn_orm-0.0.9}/pyproject.toml +1 -1
- {slinn_orm-0.0.8 → slinn_orm-0.0.9/slinn_orm.egg-info}/PKG-INFO +1 -1
- {slinn_orm-0.0.8 → slinn_orm-0.0.9}/LICENSE +0 -0
- {slinn_orm-0.0.8 → slinn_orm-0.0.9}/orm/__init__.py +0 -0
- {slinn_orm-0.0.8 → slinn_orm-0.0.9}/orm/attributed_dict.py +0 -0
- {slinn_orm-0.0.8 → slinn_orm-0.0.9}/orm/order.py +0 -0
- {slinn_orm-0.0.8 → slinn_orm-0.0.9}/orm/postgres/__init__.py +0 -0
- {slinn_orm-0.0.8 → slinn_orm-0.0.9}/orm/sqlite/__init__.py +0 -0
- {slinn_orm-0.0.8 → slinn_orm-0.0.9}/orm/typemap.py +0 -0
- {slinn_orm-0.0.8 → slinn_orm-0.0.9}/setup.cfg +0 -0
- {slinn_orm-0.0.8 → slinn_orm-0.0.9}/slinn_orm.egg-info/SOURCES.txt +0 -0
- {slinn_orm-0.0.8 → slinn_orm-0.0.9}/slinn_orm.egg-info/dependency_links.txt +0 -0
- {slinn_orm-0.0.8 → slinn_orm-0.0.9}/slinn_orm.egg-info/requires.txt +0 -0
- {slinn_orm-0.0.8 → slinn_orm-0.0.9}/slinn_orm.egg-info/top_level.txt +0 -0
|
@@ -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
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
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):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|