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
Post a Comment