feat: B-Tree range scan support in query executor

- Wire btree.scan() for BETWEEN, >, >=, <, <= conditions
- When a B-Tree index exists and WHERE clause is a range condition,
  the executor now uses index range scan instead of full table scan
- Add 3 unit tests: BETWEEN, >, <=
- Update PLAN.md / PLAN_DONE.md
This commit is contained in:
2026-05-07 00:48:05 +03:00
parent 29425c45f8
commit ca345eb256
4 changed files with 97 additions and 23 deletions
+2 -2
View File
@@ -14,7 +14,7 @@
- Aggregate functions (COUNT, SUM, AVG, MIN, MAX)
- CTE (WITH clause) — parsed; non-recursive execution via subqueries
- Constraints (PK, FK, UNIQUE, NOT NULL, CHECK, DEFAULT)
- B-Tree indexes + query planner + index point-read optimization
- B-Tree indexes + query planner + index point-read optimization + range scans (BETWEEN, >, <, >=, <=)
- MVCC transactions (BEGIN / COMMIT / ROLLBACK / savepoints)
- Deadlock detection (wait-for graph, auto-abort victim) — wired into TxnManager
- WAL crash recovery (REDO + UNDO)
@@ -24,7 +24,7 @@
- TCP wire protocol with typed binary values (int/float/bool/string/null)
- HTTP REST API (query, health, metrics, auth)
- WebSocket real-time (SUBSCRIBE / broadcasts)
- JWT authentication (HTTP + TCP)
- JWT authentication (HTTP + TCP + WebSocket handshake)
- Admin Dashboard (SQL playground, table browser, live events, metrics)
- TLS/SSL for TCP (OpenSSL-backed, self-signed cert generation)
- Connection limits (max connections enforced + idle timeout)