• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

sst/elements/genericProc/programs/libcprops/db_postgres.h

Go to the documentation of this file.
00001 #ifndef _CP_PGSQL_H
00002 #define _CP_PGSQL_H
00003 
00004 /**
00005  * @addtogroup cp_dbms
00006  */
00007 /** @{ */
00008 /**
00009  * @file
00010  * definitions for postgres driver
00011  */
00012 
00013 #include "common.h"
00014 #include "db.h"
00015 
00016 __BEGIN_DECLS
00017 
00018 CPROPS_DLL
00019 cp_data_source *
00020         cp_postgres_data_source(char *host, 
00021                                                     int port, 
00022                                                     char *login, 
00023                                                     char *password, 
00024                                                     char *db_name, 
00025                                                     char *options, 
00026                                                     char *sslmode,
00027                                                     char *krbsrvname,
00028                                                     char *service);
00029 
00030 CPROPS_DLL
00031 cp_data_source *
00032         cp_dbms_postgres_get_data_source(char *host, 
00033                                                  int port, 
00034                                                                          char *login, 
00035                                                                          char *password,
00036                                                                          char *dbname);
00037 
00038 CPROPS_DLL
00039 cp_data_source *
00040         cp_dbms_postgres_get_data_source_prm(char *host,
00041                                                      int port, 
00042                                                                                  char *login, 
00043                                                                                  char *password, 
00044                                                                                  char *dbname, 
00045                                                                                  cp_hashtable *prm);
00046 
00047 typedef CPROPS_DLL struct _cp_pgsql_connection_parameters
00048 {
00049         char *host;
00050         int port;
00051         char *login;
00052         char *password;
00053         char *db_name;
00054         char *options;
00055         char *sslmode;
00056         char *krbsrvname;
00057         char *service;
00058 } cp_pgsql_connection_parameters;
00059 
00060 __END_DECLS
00061 
00062 /** @} */
00063 
00064 #endif

Generated on Fri Oct 22 2010 11:02:22 for SST by  doxygen 1.7.1