168 char *item,
char *tablename,
char *schema);
static char * append(char **in, char const *append, char quote)
Append a string to dynamically allocated string buffer with optional quoting.
static void indent(DUMP_DATA *dd)
Write indentation to dump.
int impexp_export_csv(sqlite3 *db, char *filename, int hdr,...)
Writes entire tables as CSV to provided filename.
int impexp_export_xml(sqlite3 *db, char *filename, int append, int indent, char *root, char *item, char *tablename, char *schema)
Writes a table as simple XML to provided filename.
int impexp_export_sql(sqlite3 *db, char *filename, int mode,...)
Writes SQL to filename similar to SQLite's shell ".dump" meta command.
int impexp_init(sqlite3 *db)
Registers the SQLite functions.
int impexp_export_json(sqlite3 *db, char *sql, impexp_putc pfunc, void *parg)
Executes arbitrary SQL statements and formats the result in JavaScript Object Notation (JSON).
void(* impexp_putc)(int c, void *arg)
The function pointer for the output function to "impexp_export_json" has a signature compatible with ...
int impexp_import_sql(sqlite3 *db, char *filename)
Reads SQL commands from filename and executes them against the current database.