Repository navigation
Commit e63d963
committed
test: add adversarial schema cache and SQLite driver tests
34 new tests covering:
- Upgrade path from `better-sqlite3` (legacy DB files opened by `bun:sqlite`)
- Corrupted/truncated/zero-byte database files
- SQL injection resistance via search queries (7 injection vectors + null bytes)
- Unicode and special character identifiers in schema/table/column names
- Large dataset stress (1000 tables x 10 columns)
- Re-indexing data replacement and multi-warehouse isolation
- Connector failure modes (listSchemas/listTables/describeTable errors)
- Search edge cases (empty, stop words, long query, case insensitivity, FQN)
- `listColumns` with limits and unknown warehouses
- File-based cache persistence across close/reopen
- Singleton lifecycle (getCache/resetCache)
- PRAGMA LIMIT syntax fix verification1 parent acfa15d commit e63d963
1 file changed
Lines changed: 682 additions & 0 deletions
0 commit comments