Time-series, graph database, and resource persistence.
Source: kernel/c/root-linux/src/c_tranger.c, c_treedb.c,
c_node.c, c_resource2.c
C_TRANGER¶
Time-range database manager — wraps timeranger2 for CRUD operations
on time-series topics.
| Property | Value |
|---|
| States | ST_STOPPED, ST_IDLE |
Commands¶
| Command | Description |
|---|
topics | List all topics. |
create-topic | Create a new topic. |
open-topic | Open an existing topic. |
delete-topic | Delete a topic. |
open-list / close-list | Open or close a record list. |
add-record | Append a record. |
get-list-data | Retrieve list data. |
print-tranger | Dump tranger state. |
desc | Describe topic schema. |
C_TREEDB¶
Hierarchical tree database manager — manages TreeDB instances on top
of timeranger with JSON schema support.
| Property | Value |
|---|
| States | ST_STOPPED, ST_IDLE |
Key attributes¶
| Attribute | Type | Description |
|---|
path | string | Storage path. |
filename_mask | string | Filename pattern. |
master | bool | TRUE for master, FALSE for read-only replica. |
exit_on_error | bool | Exit on schema errors. |
Commands¶
| Command | Description |
|---|
open-treedb / close-treedb | Open or close a treedb instance. |
delete-treedb | Delete a treedb and its data. |
create-topic / delete-topic | Manage topics within a treedb. |
C_NODE¶
Node resource interface for TreeDB — full CRUD and graph operations on
tree nodes with linking, snapshots, and import/export.
| Property | Value |
|---|
| States | ST_STOPPED, ST_IDLE |
Commands¶
| Command | Description |
|---|
create-node / update-node / delete-node | CRUD operations on nodes. |
get-node / list-nodes | Retrieve nodes. |
link-nodes / unlink-nodes | Manage parent-child relationships. |
parents / children | Navigate the graph. |
hooks / links | Inspect hook and fkey relationships. |
jtree | Get a node’s full subtree as JSON. |
shoot-snap / activate-snap / deactivate-snap | Snapshot management. |
list-snaps / snap-content | Inspect snapshots. |
import-db / export-db | Bulk import/export. |
desc | Describe topic schema. |
C_RESOURCE2¶
Simple resource persistence — stores each resource as a flat JSON file.
| Property | Value |
|---|
| States | ST_STOPPED, ST_IDLE |
Key attributes¶
| Attribute | Type | Description |
|---|
strict | bool | Enable schema validation. |
json_desc | json | Resource schema descriptor. |
persistent | bool | Persist to disk. |
service | string | Service name. |
database | string | Database name. |