5 #include <pdbcalbase/PdbApplicationFactory.h>
6 #include <pdbcalbase/PHGenericFactoryT.h>
7 #include <pdbcalbase/Pdb.h>
8 #include <pdbcalbase/PdbApplication.h>
9 #include <pdbcalbase/PdbCalBank.h>
13 #include <RDBC/TSQLDriverManager.h>
14 #include <RDBC/TSQLConnection.h>
33 cout <<
"*** deprecated interface -- use PdbApplication::instance()" << endl;
37 const std::string
name =
"Pg";
38 const bool registered =
44 return mySpecificCopy;
49 if (__instance.get())
return -1;
51 __instance = std::unique_ptr<PdbApplication>(mySpecificCopy);
57 if (!__instance.get())
return -1;
91 constr <<
"dsn=" <<
dsn <<
"; uid=phnxrc; pwd= ";
92 con = gSQLDriverManager->GetConnection(constr.str().c_str());
106 ostringstream constr;
107 constr <<
"dsn=" <<
dsn <<
"; uid=phnxrc; pwd= ";
108 con = gSQLDriverManager->GetConnection(constr.str().c_str());
111 cout <<
PHWHERE <<
" Could not open data base " << dsn << endl;
168 cerr <<
PHWHERE <<
"Can only commit PgPostBankWrapper2" << endl;
183 cerr <<
PHWHERE <<
"Can only commit PgPostBankWrapper2" << endl;