mirror of
https://github.com/Infinidat/infi.clickhouse_orm.git
synced 2024-11-22 09:06:41 +03:00
Corrected docs
This commit is contained in:
parent
5f2195f87f
commit
948ab53e5e
29
README.rst
29
README.rst
|
@ -184,7 +184,9 @@ inconsistencies in the pagination (such as an instance that appears on two diffe
|
||||||
|
|
||||||
System models
|
System models
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
`Clickhouse docs <https://clickhouse.yandex/reference_en.html#System tables>`
|
`Clickhouse docs <https://clickhouse.yandex/reference_en.html#System tables>`
|
||||||
|
|
||||||
System models are read only models for implementing part of the system's functionality,
|
System models are read only models for implementing part of the system's functionality,
|
||||||
and for providing access to information about how the system is working.
|
and for providing access to information about how the system is working.
|
||||||
|
|
||||||
|
@ -193,17 +195,34 @@ Usage example:
|
||||||
>>>> from infi.clickhouse_orm import system_models
|
>>>> from infi.clickhouse_orm import system_models
|
||||||
>>>> print(system_models.SystemPart.all())
|
>>>> print(system_models.SystemPart.all())
|
||||||
|
|
||||||
Currently the fllowing system models are supported:
|
Currently the following system models are supported:
|
||||||
|
|
||||||
=================== ======== ================= ===================================================
|
=================== ============ ===================================================
|
||||||
Class DB Table Pythonic Type Comments
|
Class DB Table Comments
|
||||||
=================== ======== ================= ===================================================
|
=================== ============ ===================================================
|
||||||
SystemPart
|
SystemPart system.parts Gives methods to work with partitions. See below.
|
||||||
|
|
||||||
Partitions and parts
|
Partitions and parts
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
`ClickHouse docs <https://clickhouse.yandex/reference_en.html#Manipulations with partitions and parts>`
|
`ClickHouse docs <https://clickhouse.yandex/reference_en.html#Manipulations with partitions and parts>`
|
||||||
|
|
||||||
|
A partition in a table is data for a single calendar month. Table "system.parts" contains information about each part.
|
||||||
|
|
||||||
|
=================== ======================= =============================================================================================
|
||||||
|
Method Parameters Comments
|
||||||
|
=================== ======================= =============================================================================================
|
||||||
|
get(static) database, conditions="" Gets database partitions, filtered by conditions
|
||||||
|
get_active(static) database, conditions="" Gets only active (not detached or dropped) partitions, filtered by conditions
|
||||||
|
detach database, settings=None Detaches the partition. Settings is a dict of params to pass to http request
|
||||||
|
drop database, settings=None Drops the partition. Settings is a dict of params to pass to http request
|
||||||
|
attach database, settings=None Attaches already detached partition. Settings is a dict of params to pass to http request
|
||||||
|
freeze database, settings=None Freezes (makes backup) of the partition. Settings is a dict of params to pass to http request
|
||||||
|
fetch database, settings=None Fetches partition. Settings is a dict of params to pass to http request
|
||||||
|
|
||||||
|
``Note``: system.parts stores information for all databases. To be correct,
|
||||||
|
SystemPart model was designed to receive only given database parts.
|
||||||
|
|
||||||
|
|
||||||
Schema Migrations
|
Schema Migrations
|
||||||
-----------------
|
-----------------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user