JULEA
Data Fields
JThreadVariables Struct Reference

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. More...
 
GHashTable * query_cache
 Cache for prepared statements. More...
 
GHashTable * schema_cache
 Cache for schemas. More...
 

Detailed Description

The JThreadVariables struct bundles the thread-local DB connection, the query cache and the schema cache.

Field Documentation

◆ db_connection

gpointer JThreadVariables::db_connection

The backend-specific database connection handle.

◆ query_cache

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.

◆ schema_cache

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.


The documentation for this struct was generated from the following file: