How anything0000/seekdb_anything works
seekdb is a MySQL-compatible database for embedded and server use, with ACID storage, hybrid search, asynchronous vector indexing, and copy-on-write sandboxes. The principal workflow is a client issuing SQL through the MySQL interface, which the SQL engine plans and executes against storage; search can combine vector, full-text, and scalar predicates. README-described embedding and sandbox capabilities are included, but their implementation links are not inferred where source excerpts do not establish them.
Main entry points: ob_static_engine_cg.cpp Plan Generation · storage Data and Transactions · ob_query_engine.cpp MVCC Query Engine · mysql MySQL Protocol
Components 18
Client Interfaces
- MySQL Protocol
src/observer/mysql - Embedded Runtime
rust/in-process/src/engine.rs - SQL Networking
rust/sql-nio/src
SQL and Search
- SQL Query Handling
src/observer/mysql/obmp_query.cpp - Plan Generation
src/sql/code_generator/ob_static_engine_cg.cpp - Vector Search
src/query/vector/ob_vector_embedding_handler.cpp - Full-Text Search
src/data_plane/api/data_plane/fts
Storage and Transactions
- MVCC Query Engine
src/storage/memtable/mvcc/ob_query_engine.cpp - Data and Transactions
src/storage - Redo Log
src/logservice/palf/log_engine.cpp - Tablet Metadata
src/share/tablet/ob_tablet_meta_table_storage.cpp - Shared Runtime Utilities
src/oblib
Agent Capabilities
- Embedding Tasks
src/query/vector/ob_vector_embedding_handler.cpp - Change Stream
src/observer/change_stream - Delta HNSW
src/observer/vector_index - Snapshot Index
src/observer/vector_index - COW Sandboxes
src/storage
Other components
- SQL Client
Connections 17
- SQL Client → MySQL Protocol: sends SQL
- SQL Client → Embedded Runtime: opens database
- Embedded Runtime → SQL Networking: exposes SQL connection
- MySQL Protocol → SQL Query Handling: routes queries
- SQL Query Handling → Plan Generation: plans SQL
- Plan Generation → Vector Search: plans hybrid search
- Plan Generation → Full-Text Search: plans hybrid search
- Plan Generation → MVCC Query Engine: executes queries
- MVCC Query Engine → Data and Transactions: reads rows
src/storage/memtable/mvcc/ob_query_engine.cpp - Data and Transactions → Redo Log: commits redo
- Data and Transactions → Tablet Metadata: stores metadata
- SQL Client → Embedding Tasks: requests embeddings
- Data and Transactions → Change Stream: feeds redo
- Change Stream → Delta HNSW: updates asynchronously
- Delta HNSW → Snapshot Index: queries alongside
- SQL Client → COW Sandboxes: forks database
- Shared Runtime Utilities → MVCC Query Engine: provides utilities
src/storage/memtable/mvcc/ob_query_engine.cpp