[sqlite] code snippet: sqlite3_table_exists

2005-04-24 Thread Jack Lewis
I'm starting with SQLite 3, and I like here. Here is a C/C++ code snippet someone might find useful. You can have it as public domain. int sqlite3_table_exists(sqlite3 *db, char * table) { char buf[200]; char **resultp; int nrow, ncolumn; sprintf(buf, "SELECT na

[sqlite] SQLITE_OMIT_*

2005-04-24 Thread Jack Lewis
Hello, How do you configure SqLite 3 with some of the SQLITE_OMIT_* omits. For example, this results in a compilation error. CFLAGS="-DSQLITE_OMIT_ALTERTABLE" ./configure --enable-threadsafe --disable-tcl make clean make # fails during make