I know of the existance of the .dump function in the SQLite command line tool, and Python has an iterdump command that emulates that .dump function.
Is there a standard API call or a C/C++ wrapper that provides that .dump functionality programmatically?