Defines | |
#define | tds_convert_string_free(original, converted) do { if (original != converted) free((char*) converted); } while(0) |
Functions | |
int | tds_submit_query (TDSSOCKET *tds, const char *query) |
tds_submit_query() sends a language string to the database server for processing. | |
int | tds_submit_query_params (TDSSOCKET *tds, const char *query, TDSPARAMINFO *params) |
tds_submit_query_params() sends a language string to the database server for processing. | |
int | tds_submit_queryf (TDSSOCKET *tds, const char *queryf,...) |
const char * | tds_skip_quoted (const char *s) |
Skip quoting string (like 'sfsf', "dflkdj" or [dfkjd]). | |
const char * | tds_next_placeholders (const char *start) |
Get position of next placeholders. | |
int | tds_count_placeholders (const char *query) |
Count the number of placeholders in query. | |
int | tds_submit_prepare (TDSSOCKET *tds, const char *query, const char *id, TDSDYNAMIC **dyn_out, TDSPARAMINFO *params) |
tds_submit_prepare() creates a temporary stored procedure in the server. | |
int | tds_submit_execdirect (TDSSOCKET *tds, const char *query, TDSPARAMINFO *params) |
Currently works with TDS 5.0 and TDS7+. | |
int | tds_submit_execute (TDSSOCKET *tds, TDSDYNAMIC *dyn) |
tds_submit_execute() sends a previously prepared dynamic statement to the server. | |
int | tds_get_dynid (TDSSOCKET *tds, char **id) |
Get an id for dynamic query based on TDS information. | |
int | tds_submit_unprepare (TDSSOCKET *tds, TDSDYNAMIC *dyn) |
Send a unprepare request for a prepared query. | |
int | tds_submit_rpc (TDSSOCKET *tds, const char *rpc_name, TDSPARAMINFO *params) |
tds_submit_rpc() call a RPC from server. | |
int | tds_send_cancel (TDSSOCKET *tds) |
tds_send_cancel() sends an empty packet (8 byte header only) tds_process_cancel should be called directly after this. | |
int | tds_quote_id (TDSSOCKET *tds, char *buffer, const char *id, int idlen) |
Quote an id. | |
int | tds_quote_string (TDSSOCKET *tds, char *buffer, const char *str, int len) |
Quote a string. | |
int | tds_cursor_declare (TDSSOCKET *tds, TDS_INT client_cursor_id, int *something_to_send) |
int | tds_cursor_open (TDSSOCKET *tds, TDS_INT client_cursor_id, int *something_to_send) |
int | tds_cursor_setrows (TDSSOCKET *tds, TDS_INT client_cursor_id, int *something_to_send) |
int | tds_cursor_fetch (TDSSOCKET *tds, TDS_INT client_cursor_id) |
int | tds_cursor_close (TDSSOCKET *tds, TDS_INT client_cursor_id) |
int | tds_cursor_dealloc (TDSSOCKET *tds, TDS_INT client_cursor_id) |
|
Get an id for dynamic query based on TDS information.
|
|
Get position of next placeholders.
|
|
Quote an id.
|
|
Quote a string.
|
|
tds_send_cancel() sends an empty packet (8 byte header only) tds_process_cancel should be called directly after this.
|
|
Skip quoting string (like 'sfsf', "dflkdj" or [dfkjd]).
|
|
Currently works with TDS 5.0 and TDS7+.
|
|
tds_submit_execute() sends a previously prepared dynamic statement to the server. Currently works with TDS 5.0 or TDS7+
|
|
tds_submit_prepare() creates a temporary stored procedure in the server. Under TDS 4.2 dynamic statements are emulated building sql command
|
|
tds_submit_query() sends a language string to the database server for processing. TDS 4.2 is a plain text message with a packet type of 0x01, TDS 7.0 is a unicode string with packet type 0x01, and TDS 5.0 uses a TDS_LANGUAGE_TOKEN to encapsulate the query and a packet type of 0x0f.
|
|
tds_submit_query_params() sends a language string to the database server for processing. TDS 4.2 is a plain text message with a packet type of 0x01, TDS 7.0 is a unicode string with packet type 0x01, and TDS 5.0 uses a TDS_LANGUAGE_TOKEN to encapsulate the query and a packet type of 0x0f.
|
|
tds_submit_rpc() call a RPC from server. Output parameters will be stored in tds->param_info
|
|
Send a unprepare request for a prepared query.
|