     int sqlite3_bind_int64 ( sqlite3_stmt* pStmt, int index, sqlite3_uint64 in64 )
 FUNCTION: int sqlite3_bind_null ( sqlite3_stmt* pStmt, int n )
 FUNCTION: int sqlite3_bind_text ( sqlite3_stmt* pStmt, int index, c-string text, int len, int destructor )
-FUNCTION: int sqlite3_bind_parameter_index ( sqlite3_stmt* pStmt, c-string name )
-FUNCTION: int sqlite3_clear_bindings ( sqlite3_stmt* pStmt )
-FUNCTION: int sqlite3_column_count ( sqlite3_stmt* pStmt )
-FUNCTION: void* sqlite3_column_blob ( sqlite3_stmt* pStmt, int col )
-FUNCTION: int sqlite3_column_bytes ( sqlite3_stmt* pStmt, int col )
-FUNCTION: c-string sqlite3_column_decltype ( sqlite3_stmt* pStmt, int col )
-FUNCTION: int sqlite3_column_int ( sqlite3_stmt* pStmt, int col )
-FUNCTION: sqlite3_int64 sqlite3_column_int64 ( sqlite3_stmt* pStmt, int col )
-! Bind the same function as above, but for unsigned 64bit integers
-FUNCTION-ALIAS: sqlite3_column_uint64
-    sqlite3_uint64 sqlite3_column_int64 ( sqlite3_stmt* pStmt, int col )
-FUNCTION: double sqlite3_column_double ( sqlite3_stmt* pStmt, int col )
-FUNCTION: c-string sqlite3_column_name ( sqlite3_stmt* pStmt, int col )
-FUNCTION: c-string sqlite3_column_text ( sqlite3_stmt* pStmt, int col )
-FUNCTION: int sqlite3_column_type ( sqlite3_stmt* pStmt, int col )
+
+
+FUNCTION: void* sqlite3_aggregate_context ( sqlite3_context* context, int nBytes )
+FUNCTION: void* sqlite3_user_data ( sqlite3_context* context )
+FUNCTION: sqlite3 *sqlite3_context_db_handle ( sqlite3_context* context )
+
+FUNCTION: void *sqlite3_get_auxdata ( sqlite3_context* context, int N )
+FUNCTION: void sqlite3_set_auxdata ( sqlite3_context* context, int N, void* arg, void* arg2 )
+
+FUNCTION: void sqlite3_result_blob ( sqlite3_context* context, void* arg, int arg2, void* cb )
+FUNCTION: void sqlite3_result_blob64 ( sqlite3_context* context, void* arg1, sqlite3_uint64 arg2, void* cb )
+FUNCTION: void sqlite3_result_double ( sqlite3_context* context, double d )
+FUNCTION: void sqlite3_result_error ( sqlite3_context* context, char* arg1, int arg2 )
+FUNCTION: void sqlite3_result_error16 ( sqlite3_context* context, void* arg1, int arg2 )
+FUNCTION: void sqlite3_result_error_toobig ( sqlite3_context* context )
+FUNCTION: void sqlite3_result_error_nomem ( sqlite3_context* context )
+FUNCTION: void sqlite3_result_error_code ( sqlite3_context* context, int i )
+FUNCTION: void sqlite3_result_int ( sqlite3_context* context, int i )
+FUNCTION: void sqlite3_result_int64 ( sqlite3_context* context, sqlite3_int64 i )
+FUNCTION: void sqlite3_result_null ( sqlite3_context* context )
+FUNCTION: void sqlite3_result_text ( sqlite3_context* context, char* c, int i, void* cb )
+FUNCTION: void sqlite3_result_text64 ( sqlite3_context* context, char* c, sqlite3_uint64 ui, void* v, uchar encoding )
+FUNCTION: void sqlite3_result_text16 ( sqlite3_context* context, void* arg, int arg2, void* arg3 )
+FUNCTION: void sqlite3_result_text16le ( sqlite3_context* context, void* arg1, int arg2, void* arg3 )
+FUNCTION: void sqlite3_result_text16be ( sqlite3_context* context, void* arg1, int arg2, void* arg3 )
+FUNCTION: void sqlite3_result_value ( sqlite3_context* context, sqlite3_value* value )
+FUNCTION: void sqlite3_result_pointer ( sqlite3_context* context, void* arg1, char* arg2, void* ptr )
+FUNCTION: void sqlite3_result_zeroblob ( sqlite3_context* context, int n )
+FUNCTION: int sqlite3_result_zeroblob64 ( sqlite3_context* context, sqlite3_uint64 n )
+
+FUNCTION: void sqlite3_result_subtype ( sqlite3_context* context, uint u )
+
+FUNCTION: int sqlite3_create_collation (
+  sqlite3* pDb,
+  c-string zName,
+  int eTextRep,
+  void* pArg,
+  void* cb ! int(*xCompare)(void*,int,const void*,int,const void*)
+)
+FUNCTION: int sqlite3_create_collation_v2 (
+  sqlite3* pDb,
+  c-string zName,
+  int eTextRep,
+  void *pArg,
+  void* cb1, ! int(*xCompare)(void*,int,const void*,int,const void*),
+  void* cb2, ! void(*xDestroy)(void*)
+)
+FUNCTION: int sqlite3_create_collation16 (
+  sqlite3* pDb,
+  void *zName,
+  int eTextRep,
+  void* pArg,
+  void* cb ! int(*xCompare)(void*,int,const void*,int,const void*)
+)
+
+FUNCTION: int sqlite3_collation_needed (
+  sqlite3* pDb,
+  void* ptr,
+  void* cb ! void(*)(void*,sqlite3*,int eTextRep,const char*)
+)
+FUNCTION: int sqlite3_collation_needed16 (
+  sqlite3* pDb,
+  void* ptr,
+  void* cb ! void(*)(void*,sqlite3*,int eTextRep,const void*)
+)
+
+FUNCTION: int sqlite3_sleep ( int n )
+
+C-GLOBAL: c-string sqlite3_temp_directory
+C-GLOBAL: c-string sqlite3_data_directory
+
+FUNCTION: int sqlite3_win32_set_directory (
+  ulong type,         ! Identifier for directory being set or reset
+  void* zValue        ! New value for directory being set or reset
+)
+FUNCTION: int sqlite3_win32_set_directory8 ( ulong type, c-string zValue )
+FUNCTION: int sqlite3_win32_set_directory16 ( ulong type, c-string zValue )
+
+CONSTANT: SQLITE_WIN32_DATA_DIRECTORY_TYPE  1
+CONSTANT: SQLITE_WIN32_TEMP_DIRECTORY_TYPE  2
+
+FUNCTION: int sqlite3_get_autocommit ( sqlite3* pDb )
+FUNCTION: sqlite3* sqlite3_db_handle ( sqlite3_stmt* pStmt )
+
+FUNCTION: c-string sqlite3_db_filename ( sqlite3* db, c-string zDbName )
+FUNCTION: int sqlite3_db_readonly ( sqlite3* db, c-string zDbName )

C-TYPE: sqlite3
C-TYPE: sqlite3_stmt
TYPEDEF: longlong sqlite3_int64
TYPEDEF: ulonglong sqlite3_uint64

LIBRARY: sqlite
FUNCTION: int sqlite3_open ( c-string filename, void* ppDb )
FUNCTION: int sqlite3_close ( sqlite3* pDb )
FUNCTION: c-string sqlite3_errmsg ( sqlite3* pDb )
FUNCTION: int sqlite3_prepare ( sqlite3* pDb, c-string zSql, int nBytes, void* ppStmt, void* pzTail )
FUNCTION: int sqlite3_prepare_v2 ( sqlite3* pDb, c-string zSql, int nBytes, void* ppStmt, void* pzTail )
FUNCTION: int sqlite3_finalize ( sqlite3_stmt* pStmt )
FUNCTION: int sqlite3_reset ( sqlite3_stmt* pStmt )
FUNCTION: int sqlite3_step ( sqlite3_stmt* pStmt )
FUNCTION: sqlite3_uint64 sqlite3_last_insert_rowid ( sqlite3* pStmt )
FUNCTION: int sqlite3_bind_blob ( sqlite3_stmt* pStmt, int index, void* ptr, int len, int destructor )
FUNCTION: int sqlite3_bind_double ( sqlite3_stmt* pStmt, int index, double x )
FUNCTION: int sqlite3_bind_int ( sqlite3_stmt* pStmt, int index, int n )

    "Auxiliary database format error"
    "2nd parameter to sqlite3_bind out of range"
    "File opened that is not a database file"
    "Notifications from sqlite3_log()"
    "Warnings from sqlite3_log()"
}

! Return values from sqlite3_step
CONSTANT: SQLITE_ROW         100
