Running sqlite script in Sqlite db using C++ -


i have sqlite scripts sqlite commands like:

  • .headers on
  • .mode csv etc.

is there anyway of running script in sqlitedb using sqlite interface c++, instead of redirecting file sqlite using sqlite command line shell?

thanks

if need output, it's far easiest run script through command-line shell (it has -batch argument suppress output except actual results).

the .-commands implemented in shell, not api. because api not output , commands mention controlling output. if wanted run scripts api, you'd need output , either hardcode format want or interpret .-commands yourself.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -