Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 756 Bytes

File metadata and controls

18 lines (15 loc) · 756 Bytes

Solid SQLite3 REPL (C++)

Features:

  • Core REPL with .exit
  • Meta commands: .tables, .schema, .help, .run, .export, .refresh
  • Fish-like inline suggestions (ghost text) implemented in a simple LineEditor
  • Script execution: .run file.sql
  • Query profiling: execution time after each query

Build:

  • Requires SQLite3 dev library and CMake
  • mkdir build && cd build
  • cmake .. && make
  • ./sqlite_repl

Notes:

  • This project aims to be a practical foundation. Replace the LineEditor with a more robust line-editing library (replxx, linenoise-ng) for full-featured UX.
  • CompletionEngine uses a schema provider to fetch tables/columns; refreshSchema rebuilds caches (called by .refresh). It now uses token-based context analysis for more robust suggestions.