library/src/databases/sqlite/BP-DBSqlite.cc
// clear all results within the sqli->query_result_cache
clear all results within the sqli->query_result_cache
clear all results within the sqli - > query_result_cache
BP_ERROR_T BP_SQLiteClearResultCache
(
	P_BP_DB_SQLITE sqli
)
{
	if(!sqli)
		return ERR_FAILURE;
	if(!sqli->query_result_cache)
		return ERR_FAILURE;
	BP_HASH_TABLE_ENTER_CRITICAL_SECTION(sqli->system_hreg);
	BP_DestroyHashTableRegistry(sqli->query_result_cache);
	sqli->query_result_cache = NULL;
	BP_HASH_TABLE_LEAVE_CRITICAL_SECTION(sqli->system_hreg);
	return ERR_SUCCESS;
}
BP_ERROR_T BP_SQLiteClearResultCache ( P_BP_DB_SQLITE sqli ) { if ( ! sqli ) return ERR_FAILURE ; if ( ! sqli -> query_result_cache ) return ERR_FAILURE ; BP_HASH_TABLE_ENTER_CRITICAL_SECTION ( sqli -> system_hreg ) ; BP_DestroyHashTableRegistry ( sqli -> query_result_cache ) ; sqli -> query_result_cache = NULL ; BP_HASH_TABLE_LEAVE_CRITICAL_SECTION ( sqli -> system_hreg ) ; return ERR_SUCCESS ; }
clear all results within the sqli->query_result_cache
clear all results within the sqli - > query_result_cache
// ensure we have a sqli pointer // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% // %%% Enter Critical Section and Add Param %%% // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% // enter critical section // destroy the registry // nullify cache after it's done // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% // %%% Leave Critical Section and Exit %%%%%%%% // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% // leave critical section // return indicating success