Update docs

This commit is contained in:
Itai Shirav 2019-06-13 05:19:16 +03:00
parent 4561159218
commit 7a2c8515a2
5 changed files with 11 additions and 0 deletions

View File

@ -10,6 +10,7 @@ Unreleased
- Fix pagination when asking for the last page on a query that matches no records
- Use HTTP Basic Authentication instead of passing the credentials in the URL
- Support default/alias/materialized for nullable fields
- Add UUIDField (kpotehin)
v1.0.4
------

View File

@ -701,6 +701,13 @@ Extends BaseIntField
#### UInt8Field(default=None, alias=None, materialized=None, readonly=None)
### UUIDField
Extends Field
#### UUIDField(default=None, alias=None, materialized=None, readonly=None)
infi.clickhouse_orm.engines
---------------------------

View File

@ -92,6 +92,7 @@
* [UInt32Field](class_reference.md#uint32field)
* [UInt64Field](class_reference.md#uint64field)
* [UInt8Field](class_reference.md#uint8field)
* [UUIDField](class_reference.md#uuidfield)
* [infi.clickhouse_orm.engines](class_reference.md#infi.clickhouse_orm.engines)
* [Engine](class_reference.md#engine)
* [TinyLog](class_reference.md#tinylog)

View File

@ -454,6 +454,7 @@ class ArrayField(Field):
class UUIDField(Field):
class_default = UUID(int=0)
db_type = 'UUID'

View File

@ -31,6 +31,7 @@ class UUIDFieldsTest(unittest.TestCase):
'\x12\x34\x56\x78'*4,
(0x12345678, 0x1234, 0x5678, 0x12, 0x34, 0x567812345678),
0x12345678123456781234567812345678,
UUID(int=0x12345678123456781234567812345678),
]
for index, value in enumerate(values):
rec = TestModel(i=index, f=value)