37 #define DEFAULT_ODBC_RETRIES 120
92 #define switch_odbc_handle_callback_exec(handle, sql, callback, pdata, err) \
93 switch_odbc_handle_callback_exec_detailed(__FILE__, (char * )__SWITCH_FUNC__, __LINE__, \
94 handle, sql, callback, pdata, err)
switch_odbc_status_t switch_odbc_handle_exec_string(switch_odbc_handle_t *handle, const char *sql, char *resbuf, size_t len, char **err)
struct switch_odbc_handle switch_odbc_handle_t
#define SWITCH_END_EXTERN_C
int switch_odbc_handle_affected_rows(switch_odbc_handle_t *handle)
void switch_odbc_handle_destroy(switch_odbc_handle_t **handlep)
switch_odbc_status_t switch_odbc_handle_exec(switch_odbc_handle_t *handle, const char *sql, switch_odbc_statement_handle_t *rstmt, char **err)
int(* switch_core_db_callback_func_t)(void *pArg, int argc, char **argv, char **columnNames)
switch_odbc_status_t switch_odbc_statement_handle_free(switch_odbc_statement_handle_t *stmt)
switch_odbc_state_t switch_odbc_handle_get_state(switch_odbc_handle_t *handle)
switch_bool_t switch_odbc_available(void)
void switch_odbc_set_num_retries(switch_odbc_handle_t *handle, int num_retries)
switch_odbc_status_t switch_odbc_handle_connect(switch_odbc_handle_t *handle)
switch_odbc_status_t switch_odbc_SQLEndTran(switch_odbc_handle_t *handle, switch_bool_t commit)
char * switch_odbc_handle_get_error(switch_odbc_handle_t *handle, switch_odbc_statement_handle_t stmt)
void * switch_odbc_statement_handle_t
switch_odbc_handle_t * switch_odbc_handle_new(const char *dsn, const char *username, const char *password)
switch_odbc_status_t switch_odbc_SQLSetAutoCommitAttr(switch_odbc_handle_t *handle, switch_bool_t on)
switch_odbc_status_t switch_odbc_handle_callback_exec_detailed(const char *file, const char *func, int line, switch_odbc_handle_t *handle, const char *sql, switch_core_db_callback_func_t callback, void *pdata, char **err)
Execute the sql query and issue a callback for each row returned.
switch_odbc_status_t switch_odbc_handle_disconnect(switch_odbc_handle_t *handle)
#define SWITCH_BEGIN_EXTERN_C