tostore library

Tostore is a high-performance distributed data storage engine that builds intelligent data networks using multi-partition parallel mechanisms and interconnected topologies.

Key features:

  • Precise table structure change detection and automatic migration
  • Encryption protection and multi-space architecture
  • Isolate parallel processing to fully utilize multi-core performance
  • Cross-platform support from mobile edge devices to cloud servers
  • Multiple distributed primary key algorithms and horizontal node expansion

Tostore provides a distributed data foundation for immersive virtual-real fusion, multimodal interaction, 3D spatial features, generative AI, and semantic vector space modeling.

Classes

BinaryOp
Represents a binary operation (e.g., +, -, *, /, %).
ConfigInfo
Information about the current effective configuration of the database
Constant
Represents a constant numeric value in an expression.
DataStoreConfig
data store config
DbResult
Database operation result model Used to represent the result of database operations (insert, update, delete, createTable, dropTable, etc.)
DbStatus
Database status and diagnostics interface
DistributedNodeConfig
Distributed node configuration
EncryptionConfig
Encryption configuration for data store Supports device binding (path-based) for enhanced security
Expr
Helper class for building expressions in a type-safe, fluent manner.
ExprNode
Base class for all expression nodes in the expression AST.
FieldRef
Represents a reference to a field in the current record.
FieldSchema
field schema
FieldSchemaUpdate
model for field update, allow explicit distinction of whether a value is set
ForeignKeySchema
ForeignKeySchema: Foreign key constraint configuration
FunctionCall
Represents a function call (e.g., min, max, round, abs).
IndexSchema
index schema
LogConfig
global log config
MemoryInfo
Information about cache and memory status
MigrationOperation
migration operation
MigrationStatus
migration task status
MigrationTask
migration task, for storing table structure, table data migration operations
PrimaryKeyConfig
Primary key configuration
QueryCondition
Query Condition Builder
QueryResult<T>
query result class
SequentialIdConfig
Sequential primary key configuration
SpaceInfo
Information about a space in the database
TableInfo
table info
TableSchema
table schema
TimestampExpr
Represents the current server timestamp.
ToStore
High-performance storage engine Features:
TransactionError
Transaction error (public API)
TransactionResult
Transaction-level result (public API)
UnaryOp
Represents a unary operation (e.g., negation, absolute value).
VectorData
Represents vector data for machine learning and similarity search operations
VectorFieldConfig
Vector field configuration
VectorIndexConfig
Vector Index Configuration (for future vector search capabilities)

Enums

BackupScope
Backup scope selector for database backups
BinaryOperator
Binary operators supported in expressions.
BusinessErrorType
business error type
DataType
data type enum
DefaultValueType
Field default value type
EncryptionType
Encryption type enumeration for data encoding and encryption
ForeignKeyCascadeAction
ForeignKeyCascadeAction: Foreign key cascade action enum
IndexType
index type enum
LogLevel
Log level, each level represents showing logs of that level and higher
LogType
MigrationType
Migration operation type
PrimaryKeyType
Primary key generation method
RecoveryFlushPolicy
Background flush policy for recovery artifacts (WAL/journal/meta)
ResultType
Database operation result status type 0 represents complete success Positive numbers represent partial success or special success status -1 represents unknown error -2 ~ -30 represent common business errors -90 ~ -99 represent system errors
TransactionErrorType
Transaction error type (public API)
TransactionIsolationLevel
Transaction isolation levels
TransactionStatus
Transaction status (public API)
UnaryOperator
Unary operators supported in expressions.
VectorDistanceMetric
Vector distance metric for similarity calculations
VectorIndexType
Vector index type for future use
VectorPrecision
Vector precision options

Extensions

EncryptionTypeExtension on EncryptionType
ExprNodeOperators on ExprNode
Extension methods on ExprNode to enable operator overloading for fluent expression building.
VectorMethods on VectorData
Vector utility methods extension

Exceptions / Errors

BusinessError
business error