Module soch

Module soch 

Source
Expand description

TOON (Tabular Object-Oriented Notation) - Native Data Format for SochDB

TOON is a compact, schema-aware data format optimized for LLMs and databases. It’s the native format for SochDB, like JSON is for MongoDB.

Format: name[count]{fields}:\nrow1\nrow2\n...

Example:

users[3]{id,name,email}:
1,Alice,alice@example.com
2,Bob,bob@example.com
3,Charlie,charlie@example.com

Structs§

SochCursor
Cursor for iterating over columnar data and emitting TOON format
SochField
A field in a TOON schema
SochIndex
An index definition
SochRow
A TOON row - values for a single record
SochSchema
A TOON schema definition
SochTable
A complete TOON table (header + rows)

Enums§

SochType
Field type in a TOON schema
SochValue
TOON Value types

Traits§

ColumnAccess
Trait for accessing columnar data without allocation