library/src/databases/bpdb/BP-DBSQLSyntaxGenerators.cc
// display mariadb results for a provided select info
display mariadb results for a provided select info
display mariadb results for a provided select info
BP_ERROR_T BP_DBDisplaySelectInfoMariadbBindResults(P_BPDB_SQLGEN_SELECT select_info)
{
	if(!select_info)
		return ERR_FAILURE;
	if(!select_info->bind_results)
		return ERR_FAILURE;
	if(!select_info->bind_results_n)
		return ERR_FAILURE;
	printf("\n\t [+] Displaying MariaDB Bind Results %p", select_info->bind_results);
	size_t result_iter = 0;
	for
	(
			;
			result_iter < select_info->bind_results_n;
			result_iter++
	)
	{
		BP_DBDisplaySelectInfoMariadbBindResult
		(
				&select_info->bind_results[result_iter],
				2,
				result_iter
		);
	}
	return ERR_SUCCESS;
}
BP_ERROR_T BP_DBDisplaySelectInfoMariadbBindResults ( P_BPDB_SQLGEN_SELECT select_info ) { if ( ! select_info ) return ERR_FAILURE ; if ( ! select_info -> bind_results ) return ERR_FAILURE ; if ( ! select_info -> bind_results_n ) return ERR_FAILURE ; printf ( " \n \t " , select_info -> bind_results ) ; size_t result_iter = 0 ; for ( ; result_iter < select_info -> bind_results_n ; result_iter ++ ) { BP_DBDisplaySelectInfoMariadbBindResult ( & select_info -> bind_results [ result_iter ] , 2 , result_iter ) ; } return ERR_SUCCESS ; }
display mariadb results for a provided select info
display mariadb results for a provided select info
// ensure we have select info to work with // ensure we have bind results // display result header // declare the result iterator // walk results and display // display the bind result // return indicating success