db_mysql.h

Go to the documentation of this file.
00001 #ifndef _CP_MYSQL_H
00002 #define _CP_MYSQL_H
00003 
00013 #include "common.h"
00014 #include "db.h"
00015 
00016 __BEGIN_DECLS
00017 
00018 CPROPS_DLL
00019 cp_data_source *
00020     cp_mysql_data_source(char *host, 
00021                          char *login, 
00022                          char *password, 
00023                          char *db_name, 
00024                          unsigned int port,
00025                          char *unix_socket, 
00026                          unsigned long client_flag);
00027 
00028 CPROPS_DLL
00029 cp_data_source *
00030     cp_dbms_mysql_get_data_source(char *host, 
00031                                   int port, 
00032                                   char *login, 
00033                                   char *password,
00034                                   char *dbname);
00035 
00036 CPROPS_DLL
00037 cp_data_source *
00038     cp_dbms_mysql_get_data_source_prm(char *host,
00039                                       int port, 
00040                                       char *login, 
00041                                       char *password, 
00042                                       char *dbname, 
00043                                       cp_hashtable *prm);
00044 
00045 typedef CPROPS_DLL struct _cp_mysql_connection_parameters
00046 {
00047     char *host;
00048     char *login;
00049     char *password;
00050     char *db_name;
00051     unsigned int port;
00052     char *unix_socket;
00053     unsigned long client_flag;
00054 } cp_mysql_connection_parameters;
00055 
00056 __END_DECLS
00057 
00060 #endif

Generated on Mon Dec 5 23:00:21 2011 for cprops by  doxygen 1.4.7