Sqliteman provides the following user-defined function in addition to the built-in functions supported by sqlite:-
This function is called with two arguments which are both sql strings. NAME must be either NULL or a valid sql identifier which is not the name of an existing table or view or index. Otherwise the exec() function will fail with an appropriate error message. The exec() function can also fail if sqlite runs out of memory or encounters a similar fatal error.
exec() can be used in scripts to execute dynamically generated statements, check for errors, and examine results of PRAGMAs. The form with a NULL first argument can be used to extract a value from a table without causing the script to fail if the table does not exist. exec() is used by sqliteman's internal tests. These are included in the source distribution and can be examined as examples for how to use it.