MKSQLCpp  0.1
MakeMySQLC++Classes
 All Classes Files Functions Variables Macros Pages
Classes | Macros
CMySQL.h File Reference

This include file defines the CMySQL class. More...

#include <mysql.h>
#include "loc_types.h"

Go to the source code of this file.

Classes

struct  SFieldInfo
 This structure is designed to allow for Field definitions, this is used by the STableInfo structure (one entry per field for the table). More...
struct  STableInfo
 This structure is designed to allow for full Table definitions. More...
class  CMySQL
 MySQL client API wrapper and support class. More...

Macros

#define DEBUG
#define RestrictCopy(StrDst, StrSrc)   strncpy(StrDst,(StrSrc==NULL?"NULL":StrSrc),sizeof(StrDst)-1)
#define CopyStrValue(dst, sep, src)   sprintf(dst,(strcmp(src,"NULL")==0?"%s"sep:"'%s'"sep),src)

Detailed Description

This include file defines the CMySQL class.

Author:
Daniel R. Woods
Version:
1.0

Macro Definition Documentation

#define CopyStrValue (   dst,
  sep,
  src 
)    sprintf(dst,(strcmp(src,"NULL")==0?"%s"sep:"'%s'"sep),src)
#define DEBUG
#define RestrictCopy (   StrDst,
  StrSrc 
)    strncpy(StrDst,(StrSrc==NULL?"NULL":StrSrc),sizeof(StrDst)-1)