| dbi.h | | dbi.h | |
| | | | |
| skipping to change at line 20 | | skipping to change at line 20 | |
| * | | * | |
| * This library is distributed in the hope that it will be useful, | | * This library is distributed in the hope that it will be useful, | |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| * Lesser General Public License for more details. | | * Lesser General Public License for more details. | |
| * | | * | |
| * You should have received a copy of the GNU Lesser General Public | | * You should have received a copy of the GNU Lesser General Public | |
| * License along with this library; if not, write to the Free Software | | * License along with this library; if not, write to the Free Software | |
| * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 US
A | | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 US
A | |
| * | | * | |
|
| * $Id: dbi.h,v 1.50 2004/01/03 17:22:52 mhoenicka Exp $ | | * $Id: dbi.h,v 1.60 2005/08/14 21:02:05 mhoenicka Exp $ | |
| */ | | */ | |
| | | | |
| #ifndef __DBI_H__ | | #ifndef __DBI_H__ | |
| #define __DBI_H__ | | #define __DBI_H__ | |
| | | | |
| #ifdef __cplusplus | | #ifdef __cplusplus | |
| extern "C" { | | extern "C" { | |
| #endif | | #endif | |
| | | | |
| #include <stdlib.h> | | #include <stdlib.h> | |
| #include <stdarg.h> | | #include <stdarg.h> | |
| #include <time.h> | | #include <time.h> | |
|
| | | #include <limits.h> /* for the *_MAX definitions */ | |
| | | | |
| /* opaque type definitions */ | | /* opaque type definitions */ | |
| typedef void * dbi_driver; | | typedef void * dbi_driver; | |
| typedef void * dbi_conn; | | typedef void * dbi_conn; | |
| typedef void * dbi_result; | | typedef void * dbi_result; | |
| | | | |
| /* other type definitions */ | | /* other type definitions */ | |
|
| typedef enum { DBI_ERROR_USER = -1, DBI_ERROR_NONE = 0, DBI_ERROR_DBD, DBI_ | | typedef enum { DBI_ERROR_USER = -1, DBI_ERROR_NONE = 0, DBI_ERROR_DBD, DBI_ | |
| ERROR_BADOBJECT, DBI_ERROR_BADTYPE, DBI_ERROR_BADIDX, DBI_ERROR_BADNAME, DB | | ERROR_BADOBJECT, DBI_ERROR_BADTYPE, DBI_ERROR_BADIDX, DBI_ERROR_BADNAME, DB | |
| I_ERROR_UNSUPPORTED, DBI_ERROR_NOCONN, DBI_ERROR_NOMEM } dbi_error_flag; | | I_ERROR_UNSUPPORTED, DBI_ERROR_NOCONN, DBI_ERROR_NOMEM, DBI_ERROR_BADPTR } | |
| | | dbi_error_flag; | |
| | | | |
| | | /* some _MAX definitions. The size_t hack may not be portable */ | |
| | | #ifndef SIZE_T_MAX | |
| | | # define SIZE_T_MAX UINT_MAX | |
| | | #endif | |
| | | #ifndef ULLONG_MAX | |
| | | # define ULLONG_MAX ULONG_LONG_MAX | |
| | | #endif | |
| | | | |
| typedef struct { | | typedef struct { | |
| unsigned char month; | | unsigned char month; | |
| unsigned char day; | | unsigned char day; | |
| signed short year; // may be negative (B.C.) | | signed short year; // may be negative (B.C.) | |
| } dbi_date; | | } dbi_date; | |
| | | | |
| typedef struct { | | typedef struct { | |
| // when used as an interval value, at most one of these values may b
e negative. | | // when used as an interval value, at most one of these values may b
e negative. | |
| // when used as a counter, the hour may be greater than 23. | | // when used as a counter, the hour may be greater than 23. | |
| | | | |
| skipping to change at line 92 | | skipping to change at line 101 | |
| | | | |
| #define DBI_DECIMAL_UNSIGNED (1 << 0) | | #define DBI_DECIMAL_UNSIGNED (1 << 0) | |
| #define DBI_DECIMAL_SIZE4 (1 << 1) | | #define DBI_DECIMAL_SIZE4 (1 << 1) | |
| #define DBI_DECIMAL_SIZE8 (1 << 2) | | #define DBI_DECIMAL_SIZE8 (1 << 2) | |
| | | | |
| #define DBI_STRING_FIXEDSIZE (1 << 0) /* XXX unused as of now */ | | #define DBI_STRING_FIXEDSIZE (1 << 0) /* XXX unused as of now */ | |
| | | | |
| #define DBI_DATETIME_DATE (1 << 0) | | #define DBI_DATETIME_DATE (1 << 0) | |
| #define DBI_DATETIME_TIME (1 << 1) | | #define DBI_DATETIME_TIME (1 << 1) | |
| | | | |
|
| | | /* values for the bitmask in field_flags (unique to each row) */ | |
| | | #define DBI_VALUE_NULL (1 << 0) | |
| | | | |
| | | /* error code for type retrieval functions */ | |
| | | #define DBI_TYPE_ERROR 0 | |
| | | | |
| | | /* error code for attribute retrieval functions */ | |
| | | #define DBI_ATTRIBUTE_ERROR SHRT_MAX | |
| | | | |
| | | /* functions with a return type of size_t return this in case of an | |
| | | error if 0 is a valid return value */ | |
| | | #define DBI_LENGTH_ERROR SIZE_T_MAX | |
| | | | |
| | | /* functions with a return type of unsigned long long return this in | |
| | | case of an error if 0 is a valid return value */ | |
| | | #define DBI_ROW_ERROR ULLONG_MAX | |
| | | | |
| | | /* functions with a return type of unsigned int return this in case of an e | |
| | | rror */ | |
| | | #define DBI_FIELD_ERROR UINT_MAX | |
| | | | |
| | | /* error code for field attribute retrieval functions */ | |
| | | #define DBI_FIELD_FLAG_ERROR -1 | |
| | | | |
| | | /* error code for bind* functions */ | |
| | | #define DBI_BIND_ERROR -1 | |
| | | | |
| | | /* needed by get_engine_version functions */ | |
| | | #define VERSIONSTRING_LENGTH 32 | |
| | | | |
| int dbi_initialize(const char *driverdir); | | int dbi_initialize(const char *driverdir); | |
| void dbi_shutdown(); | | void dbi_shutdown(); | |
| const char *dbi_version(); | | const char *dbi_version(); | |
| int dbi_set_verbosity(int verbosity); | | int dbi_set_verbosity(int verbosity); | |
| | | | |
| dbi_driver dbi_driver_list(dbi_driver Current); /* returns next driver. if
current is NULL, return first driver. */ | | dbi_driver dbi_driver_list(dbi_driver Current); /* returns next driver. if
current is NULL, return first driver. */ | |
| dbi_driver dbi_driver_open(const char *name); /* goes thru linked list unti
l it finds the right one */ | | dbi_driver dbi_driver_open(const char *name); /* goes thru linked list unti
l it finds the right one */ | |
| int dbi_driver_is_reserved_word(dbi_driver Driver, const char *word); | | int dbi_driver_is_reserved_word(dbi_driver Driver, const char *word); | |
| void *dbi_driver_specific_function(dbi_driver Driver, const char *name); | | void *dbi_driver_specific_function(dbi_driver Driver, const char *name); | |
|
| int dbi_driver_quote_string_copy(dbi_driver Driver, const char *orig, char | | size_t dbi_driver_quote_string_copy(dbi_driver Driver, const char *orig, ch | |
| **newstr); | | ar **newstr); | |
| int dbi_driver_quote_string(dbi_driver Driver, char **orig); | | size_t dbi_driver_quote_string(dbi_driver Driver, char **orig); | |
| | | const char* dbi_driver_encoding_from_iana(dbi_driver Driver, const char* ia | |
| | | na_encoding); | |
| | | const char* dbi_driver_encoding_to_iana(dbi_driver Driver, const char* db_e | |
| | | ncoding); | |
| int dbi_driver_cap_get(dbi_driver Driver, const char *capname); | | int dbi_driver_cap_get(dbi_driver Driver, const char *capname); | |
| | | | |
| const char *dbi_driver_get_name(dbi_driver Driver); | | const char *dbi_driver_get_name(dbi_driver Driver); | |
| const char *dbi_driver_get_filename(dbi_driver Driver); | | const char *dbi_driver_get_filename(dbi_driver Driver); | |
| const char *dbi_driver_get_description(dbi_driver Driver); | | const char *dbi_driver_get_description(dbi_driver Driver); | |
| const char *dbi_driver_get_maintainer(dbi_driver Driver); | | const char *dbi_driver_get_maintainer(dbi_driver Driver); | |
| const char *dbi_driver_get_url(dbi_driver Driver); | | const char *dbi_driver_get_url(dbi_driver Driver); | |
| const char *dbi_driver_get_version(dbi_driver Driver); | | const char *dbi_driver_get_version(dbi_driver Driver); | |
| const char *dbi_driver_get_date_compiled(dbi_driver Driver); | | const char *dbi_driver_get_date_compiled(dbi_driver Driver); | |
| | | | |
| | | | |
| skipping to change at line 136 | | skipping to change at line 176 | |
| int dbi_conn_disjoin_results(dbi_conn Conn); | | int dbi_conn_disjoin_results(dbi_conn Conn); | |
| void dbi_conn_close(dbi_conn Conn); | | void dbi_conn_close(dbi_conn Conn); | |
| | | | |
| int dbi_conn_error(dbi_conn Conn, const char **errmsg_dest); | | int dbi_conn_error(dbi_conn Conn, const char **errmsg_dest); | |
| void dbi_conn_error_handler(dbi_conn Conn, dbi_conn_error_handler_func func
tion, void *user_argument); | | void dbi_conn_error_handler(dbi_conn Conn, dbi_conn_error_handler_func func
tion, void *user_argument); | |
| dbi_error_flag dbi_conn_error_flag(dbi_conn Conn); | | dbi_error_flag dbi_conn_error_flag(dbi_conn Conn); | |
| int dbi_conn_set_error(dbi_conn Conn, int errnum, const char *formatstr, ..
.); | | int dbi_conn_set_error(dbi_conn Conn, int errnum, const char *formatstr, ..
.); | |
| | | | |
| int dbi_conn_connect(dbi_conn Conn); | | int dbi_conn_connect(dbi_conn Conn); | |
| int dbi_conn_get_socket(dbi_conn Conn); | | int dbi_conn_get_socket(dbi_conn Conn); | |
|
| | | unsigned int dbi_conn_get_engine_version(dbi_conn Conn); | |
| | | char *dbi_conn_get_engine_version_string(dbi_conn Conn, char *versionstring | |
| | | ); | |
| const char *dbi_conn_get_encoding(dbi_conn Conn); | | const char *dbi_conn_get_encoding(dbi_conn Conn); | |
| dbi_result dbi_conn_get_db_list(dbi_conn Conn, const char *pattern); | | dbi_result dbi_conn_get_db_list(dbi_conn Conn, const char *pattern); | |
| dbi_result dbi_conn_get_table_list(dbi_conn Conn, const char *db, const cha
r *pattern); | | dbi_result dbi_conn_get_table_list(dbi_conn Conn, const char *db, const cha
r *pattern); | |
| dbi_result dbi_conn_query(dbi_conn Conn, const char *statement); | | dbi_result dbi_conn_query(dbi_conn Conn, const char *statement); | |
| dbi_result dbi_conn_queryf(dbi_conn Conn, const char *formatstr, ...); | | dbi_result dbi_conn_queryf(dbi_conn Conn, const char *formatstr, ...); | |
|
| dbi_result dbi_conn_query_null(dbi_conn Conn, const unsigned char *statemen
t, unsigned long st_length); | | dbi_result dbi_conn_query_null(dbi_conn Conn, const unsigned char *statemen
t, size_t st_length); | |
| int dbi_conn_select_db(dbi_conn Conn, const char *db); | | int dbi_conn_select_db(dbi_conn Conn, const char *db); | |
| unsigned long long dbi_conn_sequence_last(dbi_conn Conn, const char *name);
/* name of the sequence or table */ | | unsigned long long dbi_conn_sequence_last(dbi_conn Conn, const char *name);
/* name of the sequence or table */ | |
| unsigned long long dbi_conn_sequence_next(dbi_conn Conn, const char *name); | | unsigned long long dbi_conn_sequence_next(dbi_conn Conn, const char *name); | |
| int dbi_conn_ping(dbi_conn Conn); | | int dbi_conn_ping(dbi_conn Conn); | |
|
| | | size_t dbi_conn_quote_string_copy(dbi_conn Conn, const char *orig, char **n | |
| | | ewstr); | |
| | | size_t dbi_conn_quote_string(dbi_conn Conn, char **orig); | |
| | | size_t dbi_conn_quote_binary_copy(dbi_conn Conn, const unsigned char *orig, | |
| | | size_t from_length, unsigned char **newstr); | |
| | | | |
| dbi_conn dbi_result_get_conn(dbi_result Result); | | dbi_conn dbi_result_get_conn(dbi_result Result); | |
| int dbi_result_free(dbi_result Result); | | int dbi_result_free(dbi_result Result); | |
|
| int dbi_result_seek_row(dbi_result Result, unsigned long long row); | | int dbi_result_seek_row(dbi_result Result, unsigned long long rowidx); | |
| int dbi_result_first_row(dbi_result Result); | | int dbi_result_first_row(dbi_result Result); | |
| int dbi_result_last_row(dbi_result Result); | | int dbi_result_last_row(dbi_result Result); | |
| int dbi_result_has_prev_row(dbi_result Result); | | int dbi_result_has_prev_row(dbi_result Result); | |
| int dbi_result_prev_row(dbi_result Result); | | int dbi_result_prev_row(dbi_result Result); | |
| int dbi_result_has_next_row(dbi_result Result); | | int dbi_result_has_next_row(dbi_result Result); | |
| int dbi_result_next_row(dbi_result Result); | | int dbi_result_next_row(dbi_result Result); | |
| unsigned long long dbi_result_get_currow(dbi_result Result); | | unsigned long long dbi_result_get_currow(dbi_result Result); | |
| unsigned long long dbi_result_get_numrows(dbi_result Result); | | unsigned long long dbi_result_get_numrows(dbi_result Result); | |
| unsigned long long dbi_result_get_numrows_affected(dbi_result Result); | | unsigned long long dbi_result_get_numrows_affected(dbi_result Result); | |
|
| unsigned long long dbi_result_get_field_size(dbi_result Result, const char | | size_t dbi_result_get_field_size(dbi_result Result, const char *fieldname); | |
| *fieldname); | | size_t dbi_result_get_field_size_idx(dbi_result Result, unsigned int fieldi | |
| unsigned long long dbi_result_get_field_size_idx(dbi_result Result, unsigne | | dx); | |
| d short idx); | | size_t dbi_result_get_field_length(dbi_result Result, const char *fieldname | |
| unsigned long long dbi_result_get_field_length(dbi_result Result, const cha | | ); | |
| r *fieldname); /* size-1 */ | | size_t dbi_result_get_field_length_idx(dbi_result Result, unsigned int fiel | |
| unsigned long long dbi_result_get_field_length_idx(dbi_result Result, unsig | | didx); | |
| ned short idx); | | unsigned int dbi_result_get_field_idx(dbi_result Result, const char *fieldn | |
| unsigned short dbi_result_get_field_idx(dbi_result Result, const char *fiel | | ame); | |
| dname); | | const char *dbi_result_get_field_name(dbi_result Result, unsigned int field | |
| const char *dbi_result_get_field_name(dbi_result Result, unsigned short idx | | idx); | |
| ); | | unsigned int dbi_result_get_numfields(dbi_result Result); | |
| unsigned short dbi_result_get_numfields(dbi_result Result); | | | |
| unsigned short dbi_result_get_field_type(dbi_result Result, const char *fie
ldname); | | unsigned short dbi_result_get_field_type(dbi_result Result, const char *fie
ldname); | |
|
| unsigned short dbi_result_get_field_type_idx(dbi_result Result, unsigned sh | | unsigned short dbi_result_get_field_type_idx(dbi_result Result, unsigned in | |
| ort idx); | | t fieldidx); | |
| unsigned long dbi_result_get_field_attrib(dbi_result Result, const char *fi | | unsigned int dbi_result_get_field_attrib(dbi_result Result, const char *fie | |
| eldname, unsigned long attribmin, unsigned long attribmax); | | ldname, unsigned int attribmin, unsigned int attribmax); | |
| unsigned long dbi_result_get_field_attrib_idx(dbi_result Result, unsigned s | | unsigned int dbi_result_get_field_attrib_idx(dbi_result Result, unsigned in | |
| hort idx, unsigned long attribmin, unsigned long attribmax); | | t fieldidx, unsigned int attribmin, unsigned int attribmax); | |
| unsigned long dbi_result_get_field_attribs(dbi_result Result, const char *f | | unsigned int dbi_result_get_field_attribs(dbi_result Result, const char *fi | |
| ieldname); | | eldname); | |
| unsigned long dbi_result_get_field_attribs_idx(dbi_result Result, unsigned | | unsigned int dbi_result_get_field_attribs_idx(dbi_result Result, unsigned i | |
| short idx); | | nt fieldidx); | |
| | | int dbi_result_field_is_null(dbi_result Result, const char *fieldname); | |
| | | int dbi_result_field_is_null_idx(dbi_result Result, unsigned int fieldidx); | |
| int dbi_result_disjoin(dbi_result Result); | | int dbi_result_disjoin(dbi_result Result); | |
| | | | |
|
| int dbi_result_get_fields(dbi_result Result, const char *format, ...); | | unsigned int dbi_result_get_fields(dbi_result Result, const char *format, . | |
| int dbi_result_bind_fields(dbi_result Result, const char *format, ...); | | ..); | |
| | | unsigned int dbi_result_bind_fields(dbi_result Result, const char *format, | |
| | | ...); | |
| | | | |
| signed char dbi_result_get_char(dbi_result Result, const char *fieldname); | | signed char dbi_result_get_char(dbi_result Result, const char *fieldname); | |
| unsigned char dbi_result_get_uchar(dbi_result Result, const char *fieldname
); | | unsigned char dbi_result_get_uchar(dbi_result Result, const char *fieldname
); | |
| short dbi_result_get_short(dbi_result Result, const char *fieldname); | | short dbi_result_get_short(dbi_result Result, const char *fieldname); | |
| unsigned short dbi_result_get_ushort(dbi_result Result, const char *fieldna
me); | | unsigned short dbi_result_get_ushort(dbi_result Result, const char *fieldna
me); | |
|
| long dbi_result_get_long(dbi_result Result, const char *fieldname); | | int dbi_result_get_int(dbi_result Result, const char *fieldname); | |
| unsigned long dbi_result_get_ulong(dbi_result Result, const char *fieldname | | unsigned int dbi_result_get_uint(dbi_result Result, const char *fieldname); | |
| ); | | int dbi_result_get_long(dbi_result Result, const char *fieldname); /* depre | |
| | | cated */ | |
| | | unsigned int dbi_result_get_ulong(dbi_result Result, const char *fieldname) | |
| | | ; /* deprecated */ | |
| long long dbi_result_get_longlong(dbi_result Result, const char *fieldname)
; | | long long dbi_result_get_longlong(dbi_result Result, const char *fieldname)
; | |
| unsigned long long dbi_result_get_ulonglong(dbi_result Result, const char *
fieldname); | | unsigned long long dbi_result_get_ulonglong(dbi_result Result, const char *
fieldname); | |
| | | | |
| float dbi_result_get_float(dbi_result Result, const char *fieldname); | | float dbi_result_get_float(dbi_result Result, const char *fieldname); | |
| double dbi_result_get_double(dbi_result Result, const char *fieldname); | | double dbi_result_get_double(dbi_result Result, const char *fieldname); | |
| | | | |
| const char *dbi_result_get_string(dbi_result Result, const char *fieldname)
; | | const char *dbi_result_get_string(dbi_result Result, const char *fieldname)
; | |
| const unsigned char *dbi_result_get_binary(dbi_result Result, const char *f
ieldname); | | const unsigned char *dbi_result_get_binary(dbi_result Result, const char *f
ieldname); | |
| | | | |
| char *dbi_result_get_string_copy(dbi_result Result, const char *fieldname); | | char *dbi_result_get_string_copy(dbi_result Result, const char *fieldname); | |
| unsigned char *dbi_result_get_binary_copy(dbi_result Result, const char *fi
eldname); | | unsigned char *dbi_result_get_binary_copy(dbi_result Result, const char *fi
eldname); | |
| | | | |
| time_t dbi_result_get_datetime(dbi_result Result, const char *fieldname); | | time_t dbi_result_get_datetime(dbi_result Result, const char *fieldname); | |
| | | | |
| int dbi_result_bind_char(dbi_result Result, const char *fieldname, char *bi
ndto); | | int dbi_result_bind_char(dbi_result Result, const char *fieldname, char *bi
ndto); | |
| int dbi_result_bind_uchar(dbi_result Result, const char *fieldname, unsigne
d char *bindto); | | int dbi_result_bind_uchar(dbi_result Result, const char *fieldname, unsigne
d char *bindto); | |
| int dbi_result_bind_short(dbi_result Result, const char *fieldname, short *
bindto); | | int dbi_result_bind_short(dbi_result Result, const char *fieldname, short *
bindto); | |
| int dbi_result_bind_ushort(dbi_result Result, const char *fieldname, unsign
ed short *bindto); | | int dbi_result_bind_ushort(dbi_result Result, const char *fieldname, unsign
ed short *bindto); | |
|
| int dbi_result_bind_long(dbi_result Result, const char *fieldname, long *bi | | int dbi_result_bind_long(dbi_result Result, const char *fieldname, int *bin | |
| ndto); | | dto); | |
| int dbi_result_bind_ulong(dbi_result Result, const char *fieldname, unsigne | | int dbi_result_bind_ulong(dbi_result Result, const char *fieldname, unsigne | |
| d long *bindto); | | d int *bindto); | |
| | | int dbi_result_bind_int(dbi_result Result, const char *fieldname, int *bind | |
| | | to); | |
| | | int dbi_result_bind_uint(dbi_result Result, const char *fieldname, unsigned | |
| | | int *bindto); | |
| int dbi_result_bind_longlong(dbi_result Result, const char *fieldname, long
long *bindto); | | int dbi_result_bind_longlong(dbi_result Result, const char *fieldname, long
long *bindto); | |
| int dbi_result_bind_ulonglong(dbi_result Result, const char *fieldname, uns
igned long long *bindto); | | int dbi_result_bind_ulonglong(dbi_result Result, const char *fieldname, uns
igned long long *bindto); | |
| | | | |
| int dbi_result_bind_float(dbi_result Result, const char *fieldname, float *
bindto); | | int dbi_result_bind_float(dbi_result Result, const char *fieldname, float *
bindto); | |
| int dbi_result_bind_double(dbi_result Result, const char *fieldname, double
*bindto); | | int dbi_result_bind_double(dbi_result Result, const char *fieldname, double
*bindto); | |
| | | | |
| int dbi_result_bind_string(dbi_result Result, const char *fieldname, const
char **bindto); | | int dbi_result_bind_string(dbi_result Result, const char *fieldname, const
char **bindto); | |
| int dbi_result_bind_binary(dbi_result Result, const char *fieldname, const
unsigned char **bindto); | | int dbi_result_bind_binary(dbi_result Result, const char *fieldname, const
unsigned char **bindto); | |
| | | | |
| int dbi_result_bind_string_copy(dbi_result Result, const char *fieldname, c
har **bindto); | | int dbi_result_bind_string_copy(dbi_result Result, const char *fieldname, c
har **bindto); | |
| int dbi_result_bind_binary_copy(dbi_result Result, const char *fieldname, u
nsigned char **bindto); | | int dbi_result_bind_binary_copy(dbi_result Result, const char *fieldname, u
nsigned char **bindto); | |
| | | | |
| int dbi_result_bind_datetime(dbi_result Result, const char *fieldname, time
_t *bindto); | | int dbi_result_bind_datetime(dbi_result Result, const char *fieldname, time
_t *bindto); | |
| | | | |
| /* and now for the same exact thing in index form: */ | | /* and now for the same exact thing in index form: */ | |
| | | | |
|
| signed char dbi_result_get_char_idx(dbi_result Result, unsigned short idx); | | signed char dbi_result_get_char_idx(dbi_result Result, unsigned int fieldid | |
| unsigned char dbi_result_get_uchar_idx(dbi_result Result, unsigned short id | | x); | |
| x); | | unsigned char dbi_result_get_uchar_idx(dbi_result Result, unsigned int fiel | |
| short dbi_result_get_short_idx(dbi_result Result, unsigned short idx); | | didx); | |
| unsigned short dbi_result_get_ushort_idx(dbi_result Result, unsigned short | | short dbi_result_get_short_idx(dbi_result Result, unsigned int fieldidx); | |
| idx); | | unsigned short dbi_result_get_ushort_idx(dbi_result Result, unsigned int fi | |
| long dbi_result_get_long_idx(dbi_result Result, unsigned short idx); | | eldidx); | |
| unsigned long dbi_result_get_ulong_idx(dbi_result Result, unsigned short id | | int dbi_result_get_long_idx(dbi_result Result, unsigned int fieldidx); | |
| x); | | int dbi_result_get_int_idx(dbi_result Result, unsigned int fieldidx); | |
| long long dbi_result_get_longlong_idx(dbi_result Result, unsigned short idx | | unsigned int dbi_result_get_uint_idx(dbi_result Result, unsigned int fieldi | |
| ); | | dx); | |
| unsigned long long dbi_result_get_ulonglong_idx(dbi_result Result, unsigned | | unsigned int dbi_result_get_ulong_idx(dbi_result Result, unsigned int field | |
| short idx); | | idx); | |
| | | long long dbi_result_get_longlong_idx(dbi_result Result, unsigned int field | |
| | | idx); | |
| | | unsigned long long dbi_result_get_ulonglong_idx(dbi_result Result, unsigned | |
| | | int fieldidx); | |
| | | | |
|
| float dbi_result_get_float_idx(dbi_result Result, unsigned short idx); | | float dbi_result_get_float_idx(dbi_result Result, unsigned int fieldidx); | |
| double dbi_result_get_double_idx(dbi_result Result, unsigned short idx); | | double dbi_result_get_double_idx(dbi_result Result, unsigned int fieldidx); | |
| | | | |
|
| const char *dbi_result_get_string_idx(dbi_result Result, unsigned short idx | | const char *dbi_result_get_string_idx(dbi_result Result, unsigned int field | |
| ); | | idx); | |
| const unsigned char *dbi_result_get_binary_idx(dbi_result Result, unsigned | | const unsigned char *dbi_result_get_binary_idx(dbi_result Result, unsigned | |
| short idx); | | int fieldidx); | |
| | | | |
|
| char *dbi_result_get_string_copy_idx(dbi_result Result, unsigned short idx) | | char *dbi_result_get_string_copy_idx(dbi_result Result, unsigned int fieldi | |
| ; | | dx); | |
| unsigned char *dbi_result_get_binary_copy_idx(dbi_result Result, unsigned s | | unsigned char *dbi_result_get_binary_copy_idx(dbi_result Result, unsigned i | |
| hort idx); | | nt fieldidx); | |
| | | | |
|
| time_t dbi_result_get_datetime_idx(dbi_result Result, unsigned short idx); | | time_t dbi_result_get_datetime_idx(dbi_result Result, unsigned int fieldidx
); | |
| | | | |
| /* | | /* | |
|
| int dbi_result_bind_char_idx(dbi_result Result, unsigned int idx, char *bin | | int dbi_result_bind_char_idx(dbi_result Result, unsigned int fieldidx, char | |
| dto); | | *bindto); | |
| int dbi_result_bind_uchar_idx(dbi_result Result, unsigned int idx, unsigned | | int dbi_result_bind_uchar_idx(dbi_result Result, unsigned int fieldidx, uns | |
| char *bindto); | | igned char *bindto); | |
| int dbi_result_bind_short_idx(dbi_result Result, unsigned int idx, short *b | | int dbi_result_bind_short_idx(dbi_result Result, unsigned int fieldidx, sho | |
| indto); | | rt *bindto); | |
| int dbi_result_bind_ushort_idx(dbi_result Result, unsigned int idx, unsigne | | int dbi_result_bind_ushort_idx(dbi_result Result, unsigned int fieldidx, un | |
| d short *bindto); | | signed short *bindto); | |
| int dbi_result_bind_long_idx(dbi_result Result, unsigned int idx, long *bin | | int dbi_result_bind_long_idx(dbi_result Result, unsigned int fieldidx, long | |
| dto); | | *bindto); | |
| int dbi_result_bind_ulong_idx(dbi_result Result, unsigned int idx, unsigned | | int dbi_result_bind_ulong_idx(dbi_result Result, unsigned int fieldidx, uns | |
| long *bindto); | | igned long *bindto); | |
| int dbi_result_bind_longlong_idx(dbi_result Result, unsigned int idx, long | | int dbi_result_bind_longlong_idx(dbi_result Result, unsigned int fieldidx, | |
| long *bindto); | | long long *bindto); | |
| int dbi_result_bind_ulonglong_idx(dbi_result Result, unsigned int idx, unsi | | int dbi_result_bind_ulonglong_idx(dbi_result Result, unsigned int fieldidx, | |
| gned long long *bindto); | | unsigned long long *bindto); | |
| | | | |
|
| int dbi_result_bind_float_idx(dbi_result Result, unsigned int idx, float *b | | int dbi_result_bind_float_idx(dbi_result Result, unsigned int fieldidx, flo | |
| indto); | | at *bindto); | |
| int dbi_result_bind_double_idx(dbi_result Result, unsigned int idx, double | | int dbi_result_bind_double_idx(dbi_result Result, unsigned int fieldidx, do | |
| *bindto); | | uble *bindto); | |
| | | | |
|
| int dbi_result_bind_string_idx(dbi_result Result, unsigned int idx, const c | | int dbi_result_bind_string_idx(dbi_result Result, unsigned int fieldidx, co | |
| har **bindto); | | nst char **bindto); | |
| int dbi_result_bind_binary_idx(dbi_result Result, unsigned int idx, const u | | int dbi_result_bind_binary_idx(dbi_result Result, unsigned int fieldidx, co | |
| nsigned char **bindto); | | nst unsigned char **bindto); | |
| | | | |
|
| int dbi_result_bind_string_copy_idx(dbi_result Result, unsigned int idx, ch | | int dbi_result_bind_string_copy_idx(dbi_result Result, unsigned int fieldid | |
| ar **bindto); | | x, char **bindto); | |
| int dbi_result_bind_binary_copy_idx(dbi_result Result, unsigned int idx, un | | int dbi_result_bind_binary_copy_idx(dbi_result Result, unsigned int fieldid | |
| signed char **bindto); | | x, unsigned char **bindto); | |
| | | | |
|
| int dbi_result_bind_datetime_idx(dbi_result Result, unsigned int idx, time_
t *bindto); | | int dbi_result_bind_datetime_idx(dbi_result Result, unsigned int fieldidx,
time_t *bindto); | |
| */ | | */ | |
| | | | |
| #ifdef __cplusplus | | #ifdef __cplusplus | |
| } | | } | |
| #endif /* __cplusplus */ | | #endif /* __cplusplus */ | |
| | | | |
| #endif /* __DBI_H__ */ | | #endif /* __DBI_H__ */ | |
| | | | |
End of changes. 24 change blocks. |
| 94 lines changed or deleted | | 160 lines changed or added | |
|