20 #include <spatialite.h> 22 #if defined(SPATIALITE_HAS_INIT_EX) 28 #if defined(SPATIALITE_HAS_INIT_EX) 29 void *conn = spatialite_alloc_connection();
36 #if defined(SPATIALITE_HAS_INIT_EX) 37 if ( res == SQLITE_OK )
39 spatialite_init_ex( *ppDb, conn, 0 );
40 mSLconns.insert( *ppDb, conn );
51 #if defined(SPATIALITE_HAS_INIT_EX) 52 if ( mSLconns.contains( db ) )
53 spatialite_cleanup_ex( mSLconns.take( db ) );
56 if ( res != SQLITE_OK )
66 #if defined(SPATIALITE_HAS_INIT_EX) 67 void *conn = spatialite_alloc_connection();
74 #if defined(SPATIALITE_HAS_INIT_EX) 75 if ( res == SQLITE_OK )
77 spatialite_init_ex( *ppDb, conn, 0 );
78 mSLconns.insert( *ppDb, conn );
89 #if defined(SPATIALITE_HAS_INIT_EX) 90 if ( mSLconns.contains( db ) )
91 spatialite_cleanup_ex( mSLconns.take( db ) );
94 if ( res != SQLITE_OK )
static int sqlite3_close(sqlite3 *)
static int sqlite3_open(const char *filename, sqlite3 **ppDb)
static int sqlite3_open_v2(const char *filename, sqlite3 **ppDb, int flags, const char *zVfs)
static int sqlite3_close_v2(sqlite3 *)