typedef void (*DBAPIQuery)(const struct DBAPIConn *, DBAPIQueryCallback, DBAPIUserData, const char *, ...) __attribute__ ((format (printf, 4, 5)));
typedef void (*DBAPISimpleQuery)(const struct DBAPIConn *, const char *, ...) __attribute__ ((format (printf, 2, 3)));
typedef void (*DBAPIQueryV)(const struct DBAPIConn *, DBAPIQueryCallback, DBAPIUserData, const char *);
+typedef void (*DBAPICallV)(const struct DBAPIConn *, DBAPIQueryCallback, DBAPIUserData, const char *, const char *);
typedef void (*DBAPICreateTable)(const struct DBAPIConn *, DBAPIQueryCallback, DBAPIUserData, const char *, ...) __attribute__ ((format (printf, 4, 5)));
typedef void (*DBAPICreateTableV)(const struct DBAPIConn *, DBAPIQueryCallback, DBAPIUserData, const char *);
typedef void (*DBAPILoadTable)(const struct DBAPIConn *, DBAPIQueryCallback, DBAPIQueryCallback, DBAPIQueryCallback, DBAPIUserData, const char *);
typedef void (*DBAPIEscapeString)(const struct DBAPIConn *, char *, const char *, size_t);
typedef int (*DBAPIQuoteString)(const struct DBAPIConn *, char *, size_t, const char *, size_t);
+typedef void (*DBAPICall)(const struct DBAPIConn *, DBAPIQueryCallback, DBAPIUserData, const char *, const char *, const char *, ...);
+typedef void (*DBAPISimpleCall)(const struct DBAPIConn *, const char *, const char *, const char *, ...);
typedef char *(*DBAPITableName)(const struct DBAPIConn *, const char *);
DBAPIEscapeString escapestring;
DBAPIQuoteString quotestring;
+ DBAPICallV call;
/* private members */
struct DBAPIProviderData *__providerdata;
typedef struct DBAPIConn {
DBAPIClose close;
- DBAPIQuery query;
- DBAPISimpleQuery squery;
- DBAPICreateTable createtable;
+ DBAPIQuery unsafequery;
+ DBAPISimpleQuery unsafesquery;
+ DBAPICreateTable unsafecreatetable;
DBAPILoadTable loadtable;
DBAPIEscapeString escapestring; /* deprecated */
DBAPITableName tablename;
- DBAPISafeQuery safequery;
- DBAPISafeSimpleQuery safesquery;
- DBAPISafeCreateTable safecreatetable;
+ DBAPISafeQuery query;
+ DBAPISafeSimpleQuery squery;
+ DBAPISafeCreateTable createtable;
+
+ DBAPICall call;
+ DBAPISimpleCall scall;
char name[DBNAME_LEN+1];
DBAPIQuoteString __quotestring;
DBAPIQueryV __query;
DBAPICreateTableV __createtable;
+ DBAPILoadTable __loadtable;
+ DBAPICallV __call;
} DBAPIConn;
typedef char *(*DBAPIResultGet)(const struct DBAPIResult *, unsigned int);
typedef struct DBAPIResult {
DBAPI2_RESULT_HANDLE *handle;
- unsigned short success, fields;
+ unsigned short success, fields, affected;
DBAPIResultGet get;
DBAPIResultNext next;