I’m using the official SQLite for .NET but I would like to use it as a SQL shell (like the sqlite command-line shell), where users can enter arbitrary SQL, such as:
>>> CREATE TABLE employee (firstname varchar(32), lastname varchar(32))
>>> insert into employee values('First','Last');
>>> select * from employee;
First | Last
and maybe even:
>>> .tables
employee
Is there code in the library to make this easy? Or another library to wrap SQLite for .NET?
The
sqlite3command-line tool is implemented in the fileshell.c, using the SQLite C API.System.Data.SQLite offers everything from that API (except for
sqlite3_complete()), so if you want to build your own shell on top of .NET, you have to port everything in that file to some .NET language.