Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
mysqldataset.cpp File Reference
#include "mysqldataset.h"
#include "Util.h"
#include "network/DNSNameCache.h"
#include "network/WakeOnAccess.h"
#include "utils/StringUtils.h"
#include "utils/log.h"
#include <algorithm>
#include <array>
#include <iostream>
#include <set>
#include <string>

Classes

struct  dbiplus::et_info
 
struct  dbiplus::StrAccum
 

Namespaces

namespace  dbiplus
 

Macros

#define MYSQL_OK   0
 
#define ER_BAD_DB_ERROR   1049
 
#define etRADIX   1 /* Integer types. %d, %x, %o, and so forth */
 
#define etFLOAT   2 /* Floating point. %f */
 
#define etEXP   3 /* Exponential notation. %e and %E */
 
#define etGENERIC   4 /* Floating or exponential, depending on exponent. %g */
 
#define etSIZE   5 /* Return number of characters processed so far. %n */
 
#define etSTRING   6 /* Strings. %s */
 
#define etDYNSTRING   7 /* Dynamically allocated strings. %z */
 
#define etPERCENT   8 /* Percent symbol. %% */
 
#define etCHARX   9 /* Characters. %c */
 
#define etSQLESCAPE   10 /* Strings with '\'' doubled. Strings with '\\' escaped. %q */
 
#define etSQLESCAPE2
 
#define etPOINTER   14 /* The %p conversion */
 
#define etSQLESCAPE3   15 /* %w -> Strings with '\"' doubled */
 
#define etINVALID   0 /* Any unrecognized conversion type */
 
#define FLAG_SIGNED   1 /* True if the value to convert is signed */
 
#define FLAG_INTERN   2 /* True if for internal use only */
 
#define FLAG_STRING   4 /* Allow infinity precision */
 
#define MYSQL_PRINT_BUF_SIZE   350
 
#define etBUFSIZE   MYSQL_PRINT_BUF_SIZE /* Size of the output buffer */
 
#define MYSQL_MAX_LENGTH   1000000000
 

Typedefs

typedef unsigned char dbiplus::etByte
 
typedef struct dbiplus::et_info dbiplus::et_info
 

Variables

constexpr std::array< et_info, 20 > dbiplus::fmtinfo
 

Macro Definition Documentation

◆ ER_BAD_DB_ERROR

#define ER_BAD_DB_ERROR   1049

◆ etBUFSIZE

#define etBUFSIZE   MYSQL_PRINT_BUF_SIZE /* Size of the output buffer */

◆ etCHARX

#define etCHARX   9 /* Characters. %c */

◆ etDYNSTRING

#define etDYNSTRING   7 /* Dynamically allocated strings. %z */

◆ etEXP

#define etEXP   3 /* Exponential notation. %e and %E */

◆ etFLOAT

#define etFLOAT   2 /* Floating point. %f */

◆ etGENERIC

#define etGENERIC   4 /* Floating or exponential, depending on exponent. %g */

◆ etINVALID

#define etINVALID   0 /* Any unrecognized conversion type */

◆ etPERCENT

#define etPERCENT   8 /* Percent symbol. %% */

◆ etPOINTER

#define etPOINTER   14 /* The %p conversion */

◆ etRADIX

#define etRADIX   1 /* Integer types. %d, %x, %o, and so forth */

◆ etSIZE

#define etSIZE   5 /* Return number of characters processed so far. %n */

◆ etSQLESCAPE

#define etSQLESCAPE   10 /* Strings with '\'' doubled. Strings with '\\' escaped. %q */

◆ etSQLESCAPE2

#define etSQLESCAPE2
Value:
11 /* Strings with '\'' doubled and enclosed in '',
NULL pointers replaced by SQL NULL. %Q */

◆ etSQLESCAPE3

#define etSQLESCAPE3   15 /* %w -> Strings with '\"' doubled */

◆ etSTRING

#define etSTRING   6 /* Strings. %s */

◆ FLAG_INTERN

#define FLAG_INTERN   2 /* True if for internal use only */

◆ FLAG_SIGNED

#define FLAG_SIGNED   1 /* True if the value to convert is signed */

◆ FLAG_STRING

#define FLAG_STRING   4 /* Allow infinity precision */

◆ MYSQL_MAX_LENGTH

#define MYSQL_MAX_LENGTH   1000000000

◆ MYSQL_OK

#define MYSQL_OK   0

◆ MYSQL_PRINT_BUF_SIZE

#define MYSQL_PRINT_BUF_SIZE   350