Методы public
BadConversion (const char* tn, const char* d, size_t r, size_t a) size_t actual_size const string data size_t retrieved const char* type_name
Connection () Connection (bool te) Connection (const char *db, const char *host = "", const char *user = "", const char *passwd = "", bool te = true) Connection (const char *db, const char *host, const char *user, const char *passwd, uint port, my_bool compress = 1, unsigned int connect_timeout = 5, bool te=true, cchar *socket_name = "") int affected_rows () operator bool ()
возвращает success() string clinet_info () void close () bool connect (cchar *db = "", cchar *host = "", cchar *user = "", cchar *passwd = "") bool connected () const
возвращает true, если соединение успешно установлено bool create_db (string db) bool drop_db (string db) int errnum () string error ()
послкднее сообщение об ошибке bool exec (const string &str) ResNSel execute (const string &str) ResNSel execute (const string &str, bool te) st_mysql_options get_options (void) const string host_info () string info () string infoo (void) int insert_id () int kill (unsigned long pid) bool lock () int ping (void) int proto_info () void purge (void) inline Query query () int read_options (enum mysql_option option, const char *arg) bool real_connect (cchar *db = "", cchar *host = "", cchar *user = "", cchar *passwd = "", uint port = 0, my_bool compress = 0, unsigned int connect_timeout = 60, cchar *socket_name= "") int refresh (unsigned int refresh_options) bool reload () bool select_db (const char *db) bool select_db (string db) string server_info () bool shutdown () string stat () Result store (const string &str) Result store (const string &str, bool te) template class T void storein (deque T &con, const string &s) template class T void storein (list T &con, const string &s) template class T void storein (multiset T &con, const string &s) template class T void storein (set T &con, const string &s)
template class T void storein (slist T &con, const string &s) template class T void storein (vector T &con, const string &s) template class Sequence void storein_sequence (Sequence &, const string &) template class Set void storein_set (Set &, const string &)
Сохраняет результаты в TYPE. TYPE может быть любым типом контейнера STL. bool success ()
возвращает true, если последний запрос был удачным void unlock () ResUse use (const string &str) ResUse use (const string &str, bool te) ~ Connection ()
Date () Date (cchar* str) Date (const string &str) Date (const string &str) short int compare (const Date& other) const
DateTime () DateTime (cchar* str) DateTime (const string &str) DateTime (const string &str) short int compare (const DateTime& other) const cchar* convert (cchar*) ostream& out_stream (ostream&) const
FieldNames () FieldNames (const ResUse *res) FieldNames (int i) FieldNames& operator = (const ResUse *res)
Создает новый список из данных в res. FieldNames& operator = (int i)
Создает новый список с i именами полей. string& operator (int i)
Возвращает имя поля для указанного индекса в списке. const string& operator (int i) const
Возвращает имя поля для указанного индекса в списке. uint operator (string i) const
Возвращает индекс поля с указанным именем.
FieldTypes () FieldTypes (const ResUse *res) FieldTypes (int i) FieldTypes& operator = (const ResUse *res)
Создает новый список, основанный на информации в res FieldTypes& operator = (int i)
Создает новый список с i полями. mysql_type_info& operator (int i)
Возвращает тип поля для поля со смещением i. const mysql_type_info& operator (int i) const
Возвращает тип поля для поля со смещением i.
Fields () Fields (ResUse *r) const Field& operator (int i) const const Field& operator (size_type i) const size_type size () const
Число полей. Возвращает поле со смещением i.
MysqlCmp (uint i, const BinaryPred &f, const CmpType &c) bool operator () (const MysqlRow& cmp1) const
MysqlCmpCStr (uint i, const BinaryPred &f, const char* c) bool operator () (const MysqlRow& cmp1) const
virtual short int compare (const T &other) const bool operator != (const T &other) const bool operator (const T &other) const bool operator = (const T &other) const bool operator == (const T &other) const bool operator (const T &other) const bool operator = (const T &other) const
MysqlListInsert (T *o) void operator () (const value_type &data)
MysqlSetInsert (T *o) void operator () (const key_type &data)
Null () Null (Type x) Null (const null_type &n)
Дает Null значение null.
Type data bool is_null Null& operator = (const null_type &n) Null& operator = (const null_type &n) typedef Type value_type
static const char * null_is () static ostream& null_ostr (ostream &o)
static null_type null_is () static ostream& null_ostr (ostream& o)
static int null_is () static ostream& null_ostr (ostream &o)
Query (Connection *m, bool te = false)
Создает новый объект запроса, связанный с подключением. Query (const Query &q) string error ()
Сообщение об ошибке, если запрос не был успешным. bool exec (const string &str)
Выполняет запрос в буфере строк и возвращает структуру, которая содержит информацию о том, насколько успешным был запрос. Используйте это для запросов, которые не возвращают набор результатов, например, INSERT или UPDATE. Параметром может что-либо в имеющем силу SQLQuery. template class T Query& insert (const T &v) Query& operator = (const Query &q) string preview () string preview (parms &p) template class T Query& replace (const T &v) bool success ()
Отображает строку, которая в настоящее время лежит в буфере. Аналогично string().
ResNSel () ResNSel (Connection *q) operator bool ()
Если запрос был успешным. string info
Дополнительная информация о запросе. int insert_id int rows
Число обработанных строк. bool success
ResUse () ResUse (MYSQL_RES *result, Connection *m = NULL, bool te = false) ResUse (const ResUse &other) operator bool () const unsigned int columns () const bool eof () const
Функция c api. Field& fetch_field () const
Функция c api field. long unsigned int * fetch_lengths () const
Функция c api. Row fetch_row ()
Функция c api. inline string& field_name (int)
Возвращает поле со смещением i. inline const string& field_name (int) const
Возвращает поле-константу со смещением i. inline FieldNames& field_names ()
Возвращает ссылку на основнорй класс FieldNames. inline const FieldNames& field_names () const
Возвращает ссылку на основнорй класс FieldNames. inline int field_num (const string&) const
Возвращает смещение регистрируемого поля, которое равняется str. void field_seek (int field)
Функция c api field. inline mysql_type_info& field_type (int i)
Возвращает ссылку на тип поля mysql для поля со смещением i. inline const mysql_type_info& field_type (int) const
Возвращает ссылку-константу на тип поля mysql для поля со смещением i.
inline FieldTypes& field_types ()
Возвращает ссылку на основной FieldTypes. inline const FieldTypes& field_types () const
Возвращает ссылку-константу на основной FieldTypes. const Fields& fields () const
Возвращает ссылку на структуру Fields. const Field& fields (unsigned int i) const
Возвращает ссылку на информацию mysql о поле для поля со смещением i.
MYSQL_RES * mysql_result (void) inline FieldNames& names ()
Возвращает ссылку на основной класс FieldNames. inline const FieldNames& names () const
Возвращает ссылку-константу на основной класс FieldNames. inline int names (const string& s) const
Возвращает смещение для объекта, который равняется str. inline string& names (int i)
Возвращает поле со смещением i. inline const string& names (int i) const
Возвращает поле со смещением i. int num_fields () const
Функция c api field. bool operator != (const ResUse &other) const inline ResUse& operator = (const ResUse &other) bool operator == (const ResUse &other) const void parent_leaving () void purge (void) inline void reset_field_names ()
Сбрасывает имена полей к первоначальным значениям. inline void reset_field_types ()
Сбрасывает field_types к первоначальным значениям. inline void reset_names ()
Сбрасывает имена полей к первоначальным значениям. inline void reset_types ()
Сбрасывает имена полей к первоначальным значениям. string& table ()
Имя таблицы. const string& table () const
Имя таблицы. inline FieldTypes& types ()
Возвращает ссылку на основной FieldTypes. inline const FieldTypes& types () const
Возвращает ссылку-константу на основной FieldTypes. inline mysql_type_info& types (int i)
Возвращает ссылку на тип поля mysql для поля со смещением i. inline const mysql_type_info& types (int i) const
Возвращает ссылку-константу на тип поля mysql для поля со смещением i.
~ ResUse ()
Result () Result (MYSQL_RES *result, bool te = false) Result (const Result &other) void data_seek (uint offset) const
Функция c api const Row fetch_row () const
Функция c api int num_rows () const
Функция c api const Row operator (size_type i) const
Возвращает строку со смещением i. size_type rows () const
Возвращает число строк. size_type size () const
Возвращает число строк. virtual ~ Result ()
Row () Row (MYSQL_ROW d, const ResUse *r, unsigned int *jj, bool te = false) operator bool () const
Возвращает true, если имеются какие-либо данные в строке. inline const ColData operator (const string &i) const
Возвращает значение поля с именем поля i. Этот метод не столь эффективен как использование индексного кода. inline const ColData operator (const string &i) const
Возвращает значение поля с именем поля i. Этот метод не столь эффективен как использование индексного кода. const ColData operator (int i) const inline const ColData operator (size_type i) const
Возвращает значение поля с индексом поля i. const ResUse& parent () const const char * raw_data (int i) const Row& self () const Row& self () const inline size_type size () const
Возвращает число столбцов. ~ Row ()
equal_list_ba FieldNames,ThisType,quote_type0 equal_list (const char *d = ",", const char *e = " = ") const template class Manip equal_list_ba FieldNames,ThisType,Manip equal_list (const char *d, const char *e, Manip m) const value_list_b FieldNames,quote_type0 field_list (bool t0, bool t1=false, bool t2=false, bool t3=false, bool t4=false, bool t5=false, bool t6=false, bool t7=false, bool t8=false, bool t9=false, bool ta=false, bool tb=false, bool tc=false) const value_list_b FieldNames,quote_type0 field_list (const vector bool &vb) const value_list_b FieldNames,quote_type0 field_list (const vector bool &vb) const template class Manip value_list_ba FieldNames,Manip field_list (const char *d, Manip m) const template class Manip value_list_b FieldNames,Manip field_list (const char *d, Manip m, bool t0, bool t1=false, bool t2=false, bool t3=false, bool t4=false, bool t5=false, bool t6=false, bool t7=false, bool t8=false, bool t9=false, bool ta=false, bool tb=false, bool tc=false) const template class Manip value_list_b FieldNames,Manip field_list (const char *d, Manip m, const vector bool &vb) const template class Manip value_list_b FieldNames,Manip field_list (const char *d, Manip m, string s0, string s1="", string s2="", string s3="", string s4="", string s5="", string s6="", string s7="", string s8="", string s9="", string sa="", string sb="", string sc="") const value_list_b FieldNames,quote_type0 field_list (const char *d, bool t0, bool t1=false, bool t2=false, bool t3=false, bool t4=false, bool t5=false, bool t6=false, bool t7=false, bool t8=false, bool t9=false, bool ta=false, bool tb=false, bool tc value_list_b FieldNames,quote_type0 field_list (const char *d, const vector bool &vb) const value_list_b FieldNames,quote_type0 field_list (const char *d, string s0, string s1="", string s2="", string s3="", string s4="", string s5="", string s6="", string s7="", string s8="", string s9="", string sa="", string sb="", string sc="") const value_list_b FieldNames,quote_type0 field_list (string s0, string s1="", string s2="", string s3="", string s4="", string s5="", string s6="", string s7="", string s8="", string s9="", string sa="", string sb="", string sc="") const virtual const Res & parent () const value_list_b ThisType,quote_type0 value_list (bool t0, bool t1=false, bool t2=false, bool t3=false, bool t4=false, bool t5=false, bool t6=false, bool t7=false, bool t8=false, bool t9=false, bool ta=false, bool tb=false, bool tc=false) const value_list_b ThisType,quote_type0 value_list (const vector bool &vb) const value_list_b ThisType,quote_type0 value_list (const vector bool &vb) const template class Manip value_list_ba ThisType,Manip value_list (const char *d, Manip m) const template class Manip value_list_b ThisType,Manip value_list (const char *d, Manip m, bool t0, bool t1=false, bool t2=false, bool t3=false, bool t4=false, bool t5=false, bool t6=false, bool t7=false, bool t8=false, bool t9=false, bool ta=false, bool tb=false, bool tc=false) const template class Manip value_list_b ThisType,Manip value_list (const char *d, Manip m, const vector bool &vb) const template class Manip value_list_b ThisType,Manip value_list (const char *d, Manip m, string s0, string s1="", string s2="", string s3="", string s4="", string s5="", string s6="", string s7="", string s8="", string s9="", string sa="", string sb="", string sc="") const value_list_b ThisType,quote_type0 value_list (const char *d, bool t0, bool t1=false, bool t2=false, bool t3=false, bool t4=false, bool t5=false, bool t6=false, bool t7=false, bool t8=false, bool t9=false, bool ta=false, bool tb=false, bool tc=false) const value_list_b ThisType,quote_type0 value_list (const char *d, const vector bool &vb) const value_list_b ThisType,quote_type0 value_list (const char *d, string s0, string s1="", string s2="", string s3="", string s4="", string s5="", string s6="", string s7="", string s8="", string s9="", string sa="", string sb="", string sc="") const value_list_b ThisType,quote_type0 value_list (string s0, string s1="", string s2="", string s3="", string s4="", string s5="", string s6="", string s7="", string s8="", string s9="", string sa="", string sb="", string sc="") const virtual ~ RowTemplate ()
SQLParseElement (string b, char o, char n) string before char num char option
SQLQuery () SQLQuery (const SQLQuery &q) operator bool () SQLQueryParms def
Заданный по умолчанию шаблон набора параметров. string error () const template class T SQLQuery& insert (const T &v) mysql_query_define_const1 (string,str) bool operator ! ()
Возвращает полную строку запроса, заменяя ее заданными по умолчанию параметрами шаблона в случае необходимости. Подобно str(query_reset), но устанавливает параметры запроса от 0 до 11. Здесь query_reset может быть DONT_RESET или RESET_QUERY. Если это установлено в RESET_QUERY, то reset() будет вызван после того, как запрос возвращен. Если не имеется достаточно параметров, то это возвратит пустую строку, а success() будет равно false. Если любой из требуемых параметров равен null, этот метод произведет ошибку и возвратит пустую строку. SQLQuery& operator = (const SQLQuery &q) void parse () template class T SQLQuery& replace (const T &v) bool success () const
SQLQueryNEParms (const char *c) const char* error
SQLQueryParms () SQLQueryParms (SQLQuery *p) bool bound () void clear ()
Очищает весь список. SQLQueryParms operator + (const SQLQueryParms &other) const
Устанавливает элементы списка: 0 в a, 1 в b и т.д. Может определять до дюжины элементов. SQLQueryParms & operator += (const SQLString &str)
Добавляет элемент в список. SQLQueryParms & operator (const SQLString &str)
Добавляет элемент в список. SQLString & operator (const char *str)
Обращается к значению элемента с ключом str. const SQLString & operator (const char *str) const
Обращается к значению элемента с ключом str. SQLString & operator (size_type n)
Обращается к элементу с кодом n. const SQLString & operator (size_type n) const
Обращается к элементу с кодом n. void set (ss a) void set (ss a, ss b) void set (ss a, ss b, ss c) void set (ss a, ss b, ss c, ss d) void set (ss a, ss b, ss c, ss d, ss e) void set (ss a, ss b, ss c, ss d, ss e, ss f) void set (ss a, ss b, ss c, ss d, ss e, ss f, ss g) void set (ss a, ss b, ss c, ss d, ss e, ss f, ss g, ss h) void set (ss a, ss b, ss c, ss d, ss e, ss f, ss g, ss h, ss i) void set (ss a,ss b,ss c,ss d,ss e,ss f,ss g,ss h,ss i,ss j) void set (ss a,ss b,ss c,ss d,ss e,ss f,ss g,ss h,ss i,ss j,ss k) void set (ss a,ss b,ss c,ss d,ss e,ss f,ss g,ss h,ss i,ss j,ss k, ss l)
SQLString () SQLString (char i) SQLString (const char *str) SQLString (const char *str) SQLString (double i) SQLString (float i) SQLString (int i) SQLString (short int i) SQLString (unsigned int i) SQLString (unsigned int i) SQLString (unsigned int i) bool dont_escape bool is_string SQLString& operator = (const string& str) SQLString& operator = (const string& str) bool processed
Set (const ColData &str) Set (const ColData &str) Set (const ColData &str) ostream& out_stream (ostream &s) const operator string ()
Time () Time (cchar* str) Time (const string &str) Time (const string &str) short int compare (const Time& other) const
const_iterator begin () const const char* c_str () const typedef const char* const_iterator typedef const char* const_pointer typedef const char& const_reference const_string () const_string (const char *str) const char* data () const typedef int difference_type const_iterator end () const typedef const_iterator iterator
Также как const_iterator потому, что данные не могут быть изменены. size_type length () const size_type max_size () const const_reference operator (size_type pos) const typedef const_pointer pointer typedef const_reference reference typedef unsigned int size_type typedef const char value_type
iterator begin () const typedef iterator const_iterator typedef value_type* const_pointer typedef value_type& const_reference typedef const ::reverse_iterator const_iterator const_reverse_iterator typedef DiffType difference_type bool empty () const iterator end () const typedef subscript_iterator const this_type, ReturnType, SizeType, DiffType iterator size_type max_size () const virtual ReturnType operator (SizeType i) const typedef value_type* pointer reverse_iterator rbegin () const typedef value_type& reference reverse_iterator rend () const typedef const ::reverse_iterator iterator reverse_iterator virtual size_type size () const typedef SizeType size_type typedef const_subscript_container OnType,ValueType,ReturnType,SizeType, DiffType this_type typedef ValueType value_type
bool operator () (const char *x, const char *y) const
bool operator () (const char *x, const char *y) const
bool operator () (const char *x, const char *y) const
bool operator () (const char *x, const char *y) const
bool operator () (const char *x, const char *y) const
bool operator () (const char *x, const char *y) const
Содержание раздела