impexp.h
Go to the documentation of this file.
1 #ifndef _IMPEXP_H
2 #define _IMPEXP_H
3 
31 int impexp_import_sql(sqlite3 *db, char *filename);
32 
67 int impexp_export_sql(sqlite3 *db, char *filename, int mode, ...);
68 
106 int impexp_export_csv(sqlite3 *db, char *filename, int hdr, ...);
107 
166 int impexp_export_xml(sqlite3 *db, char *filename,
167  int append, int indent, char *root,
168  char *item, char *tablename, char *schema);
169 
177 typedef void (*impexp_putc)(int c, void *arg);
178 
206 int impexp_export_json(sqlite3 *db, char *sql, impexp_putc pfunc,
207  void *parg);
208 
229 int impexp_init(sqlite3 *db);
230 
231 
232 #endif
void(* impexp_putc)(int c, void *arg)
The function pointer for the output function to "impexp_export_json" has a signature compatible with ...
Definition: impexp.h:177
int impexp_import_sql(sqlite3 *db, char *filename)
Reads SQL commands from filename and executes them against the current database.
Definition: impexp.c:869
static char * append(char **in, char const *append, char quote)
Append a string to dynamically allocated string buffer with optional quoting.
Definition: impexp.c:1034
int impexp_export_sql(sqlite3 *db, char *filename, int mode,...)
Writes SQL to filename similar to SQLite's shell ".dump" meta command.
Definition: impexp.c:1804
int impexp_export_csv(sqlite3 *db, char *filename, int hdr,...)
Writes entire tables as CSV to provided filename.
Definition: impexp.c:1890
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)...
Definition: impexp.c:2458
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.
Definition: impexp.c:1974
static void indent(DUMP_DATA *dd)
Write indentation to dump.
Definition: impexp.c:932
int impexp_init(sqlite3 *db)
Registers the SQLite functions.
Definition: impexp.c:2521

Generated on Tue Jul 12 2016 by doxygen.
Contact: chw@ch-werner.de