| 
    JULEA
    
   | 
 
The JThreadVariables struct bundles the thread-local DB connection, the query cache and the schema cache. More...
#include <sql-generic-internal.h>
Data Fields | |
| gpointer | db_connection | 
| The backend-specific database connection handle.   | |
| GHashTable * | query_cache | 
| Cache for prepared statements.   | |
| GHashTable * | schema_cache | 
| Cache for schemas.   | |
The JThreadVariables struct bundles the thread-local DB connection, the query cache and the schema cache.
| gpointer JThreadVariables::db_connection | 
The backend-specific database connection handle.
| GHashTable* JThreadVariables::query_cache | 
Cache for prepared statements.
sql or keyword(char*) -> (JSqlStatement*) Caching prepared statements enables different DB backend server-side optimizations. Each thread maintains its own cache because the statments likely depend on the (thread-private) DB connection object.
| GHashTable* JThreadVariables::schema_cache | 
Cache for schemas.
namespace_name(char*) -> (GHashTable* (full variable name(char*) -> JDBType(directly as int))) A thread local schema cache. The schema information is stored in a hash table that maps the full field name to the respectove JDBType. The keys are correctly quoted and can be used as part of SQL strings.