Unverified Commit 609bf6bc authored by An Nyeong's avatar An Nyeong
Browse files

Add SQLiteKvStore implementation for Node.js

= Design Decisions

- Atomic implementation for CAS operations with transaction
- Calculate TTL with Temporal.epochMilliseconds since SQLite lacks interval type
- Encode values with JSON.stringify since SQLite lacks native JSON type
- Restrict table names to prevent SQL injection

= Further improvements

- Implement versions for Bun and Deno runtimes
- Refactor to separate Node.js dependencies and create SQLite as a port & adapter pattern
parent 5db6ad89
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment