A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/mysql_2result_8cpp_source.html below:

NCBI C++ ToolKit: src/dbapi/driver/mysql/result.cpp Source File

36 #undef NCBI_DATABASE_THROW 37 #define NCBI_DATABASE_THROW(ex_class, message, err_code, severity) \ 38  NCBI_DATABASE_THROW_ANNOTATED(ex_class, message, err_code, severity, \ 39  GetDbgInfo(), GetConnection(), GetLastParams()) 50  case

FIELD_TYPE_LONG:

return eDB_Int

;

51  case

FIELD_TYPE_INT24:

return eDB_Int

;

52  case

FIELD_TYPE_LONGLONG:

return eDB_Int

;

61  case

FIELD_TYPE_STRING:

82  unsigned int

col_num = mysql_num_fields(

m_Result

);

84

MYSQL_FIELD* fields = mysql_fetch_fields(

m_Result

);

86  for

(

unsigned int n

= 0;

n

< col_num;

n

++) {

89

fields[

n

].max_length,

164

((

CDB_Stream

*) item_buff)->Append(d_ptr, d_len);

174  double

double_val = 0.0;

176  switch

( data_type ) {

183

double_val = int_val;

188

double_val = int8_val;

211

item_buff =

new CDB_Bit

(

int

(int_val));

237

*((

CDB_Float

*) item_buff) = float(double_val);

239

item_buff =

new CDB_Float

(

float

(double_val));

252

time =

CTime

(d_ptr,

"Y-M-D h:m:s"

);

263

time =

CTime

(d_ptr,

"Y-M-D"

);

275  if

(d_len == 0 && item_buff) {

virtual EDB_ResType ResultType() const

Get type of the result.

virtual int CurrentItemNo() const

Return current item number we can retrieve (0,1,...) Return "-1" if no more items left (or available)...

virtual int GetColumnNum(void) const

Return number of columns in the recordset.

unsigned long * m_Lengths

virtual I_BlobDescriptor * GetBlobDescriptor()

Get a descriptor for a BLOB column (for SendData).

virtual bool Fetch()

Fetch next row.

virtual bool SkipItem()

Skip result item.

virtual CDB_Object * GetItem(CDB_Object *item_buf=0, I_Result::EGetItem policy=I_Result::eAppendLOB)

Get a result item (you can use either GetItem or ReadItem).

virtual size_t ReadItem(void *buffer, size_t buffer_size, bool *is_null=0)

Read a result item body (for BLOB columns, mostly).

CMySQL_Connection * m_Connect

CMySQL_RowResult(CMySQL_Connection &conn)

virtual ~CMySQL_RowResult()

void Add(const string &name, size_t max_size, EDB_Type data_type=eDB_UnsupportedType, EDirection direction=eOut) const

virtual const CDBParams & GetDefineParams(void) const

CCachedRowInfo m_CachedRowInfo

static CS_CONNECTION * conn

#define DATABASE_DRIVER_WARNING(message, err_code)

virtual unsigned int GetNum(void) const =0

Get total number of columns in resultset.

EDB_ResType

EDB_ResType::

static bool IsBlobType(EDB_Type db_type)

virtual void AssignNULL()

static CDB_Object * Create(EDB_Type type, size_t size=1)

virtual EDB_Type GetType() const =0

CDB_VarChar & SetValue(const string &s, EEncoding enc=eEncoding_Unknown)

uint8_t Uint1

1-byte (8-bit) unsigned integer

int16_t Int2

2-byte (16-bit) signed integer

int32_t Int4

4-byte (32-bit) signed integer

int64_t Int8

8-byte (64-bit) signed integer

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

static double StringToDouble(const CTempStringEx str, TStringToNumFlags flags=0)

Convert string to double.

static long StringToLong(const CTempString str, TStringToNumFlags flags=0, int base=10)

Convert string to long.

CTime Truncate(const CTime &t)

unsigned int

A callback function used to compare two keys in a database.

static CDB_Object * s_GetItem(I_Result::EGetItem policy, EDB_Type data_type, CDB_Object *item_buff, EDB_Type b_type, const char *d_ptr, size_t d_len)

static EDB_Type s_GetDataType(enum_field_types type)

double r(size_t dimension_, const Int4 *score_, const double *prob_, double theta_)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4