Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
dbiplus Namespace Reference

Classes

class  Database
 
class  Dataset
 
class  DbErrors
 
struct  et_info
 
struct  field
 
struct  field_prop
 
class  field_value
 
class  MysqlDatabase
 
class  MysqlDataset
 
class  result_set
 
class  SqliteDatabase
 
class  SqliteDataset
 
struct  StrAccum
 

Typedefs

typedef std::list< std::string > StringList
 
typedef std::map< std::string, field_valueParamList
 
typedef unsigned char etByte
 
typedef struct dbiplus::et_info et_info
 
typedef std::vector< fieldFields
 
typedef std::vector< field_valuesql_record
 
typedef std::vector< field_proprecord_prop
 
typedef std::vector< sql_record * > query_data
 
typedef field_value variant
 

Enumerations

enum  dsStates {
  dsSelect , dsInsert , dsEdit , dsUpdate ,
  dsDelete , dsInactive
}
 
enum  sqlType {
  sqlSelect , sqlUpdate , sqlInsert , sqlDelete ,
  sqlExec
}
 
enum  fType {
  ft_String , ft_Boolean , ft_Char , ft_WChar ,
  ft_WideString , ft_Short , ft_UShort , ft_Int ,
  ft_UInt , ft_Float , ft_Double , ft_LongDouble ,
  ft_Int64 , ft_Object
}
 

Functions

int callback (void *res_ptr, int ncol, char **result, char **cols)
 

Variables

constexpr std::array< et_info, 20 > fmtinfo
 

Typedef Documentation

◆ et_info

typedef struct dbiplus::et_info dbiplus::et_info

◆ etByte

typedef unsigned char dbiplus::etByte

◆ Fields

typedef std::vector<field> dbiplus::Fields

◆ ParamList

typedef std::map<std::string, field_value> dbiplus::ParamList

◆ query_data

typedef std::vector<sql_record*> dbiplus::query_data

◆ record_prop

typedef std::vector<field_prop> dbiplus::record_prop

◆ sql_record

typedef std::vector< field_value > dbiplus::sql_record

◆ StringList

typedef std::list<std::string> dbiplus::StringList

◆ variant

Enumeration Type Documentation

◆ dsStates

Enumerator
dsSelect 
dsInsert 
dsEdit 
dsUpdate 
dsDelete 
dsInactive 

◆ fType

Enumerator
ft_String 
ft_Boolean 
ft_Char 
ft_WChar 
ft_WideString 
ft_Short 
ft_UShort 
ft_Int 
ft_UInt 
ft_Float 
ft_Double 
ft_LongDouble 
ft_Int64 
ft_Object 

◆ sqlType

Enumerator
sqlSelect 
sqlUpdate 
sqlInsert 
sqlDelete 
sqlExec 

Function Documentation

◆ callback()

int dbiplus::callback ( void * res_ptr,
int ncol,
char ** result,
char ** cols )

Variable Documentation

◆ fmtinfo

std::array<et_info, 20> dbiplus::fmtinfo
constexpr
Initial value:
= {{
{'d', 10, 1, etRADIX, 0, 0},
{'s', 0, 4, etSTRING, 0, 0},
{'g', 0, 1, etGENERIC, 30, 0},
{'z', 0, 4, etDYNSTRING, 0, 0},
{'q', 0, 4, etSQLESCAPE, 0, 0},
{'Q', 0, 4, etSQLESCAPE2, 0, 0},
{'w', 0, 4, etSQLESCAPE3, 0, 0},
{'c', 0, 0, etCHARX, 0, 0},
{'o', 8, 0, etRADIX, 0, 2},
{'u', 10, 0, etRADIX, 0, 0},
{'x', 16, 0, etRADIX, 16, 1},
{'X', 16, 0, etRADIX, 0, 4},
{'f', 0, 1, etFLOAT, 0, 0},
{'e', 0, 1, etEXP, 30, 0},
{'E', 0, 1, etEXP, 14, 0},
{'G', 0, 1, etGENERIC, 14, 0},
{'i', 10, 1, etRADIX, 0, 0},
{'n', 0, 0, etSIZE, 0, 0},
{'%', 0, 0, etPERCENT, 0, 0},
{'p', 16, 0, etPOINTER, 0, 1},
}}
#define etCHARX
Definition mysqldataset.cpp:707
#define etSIZE
Definition mysqldataset.cpp:703
#define etPOINTER
Definition mysqldataset.cpp:712
#define etGENERIC
Definition mysqldataset.cpp:702
#define etPERCENT
Definition mysqldataset.cpp:706
#define etRADIX
Definition mysqldataset.cpp:699
#define etEXP
Definition mysqldataset.cpp:701
#define etSTRING
Definition mysqldataset.cpp:704
#define etDYNSTRING
Definition mysqldataset.cpp:705
#define etFLOAT
Definition mysqldataset.cpp:700
#define etSQLESCAPE
Definition mysqldataset.cpp:709
#define etSQLESCAPE3
Definition mysqldataset.cpp:713
#define etSQLESCAPE2
Definition mysqldataset.cpp:710