Skip to content

SK2006MC/sqlite3REPL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A sqlite3 REPL written in cpp by microsoft copilot ai.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors