If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Converting MYSQL++ Queries to POSTGRES using C++

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-06-11, 02:59
Ghouri Ghouri is offline
Registered User
 
Join Date: Jan 2011
Posts: 2
Converting MYSQL++ Queries to POSTGRES using C++

We are working on an application (for different clients) that interacts with mysql++ database which means that the client must also have the same database i-e mysql++. My boss wants me to program the application such that it is able to interact with any database i-e postgres, oracle etc etc but for the moment he wants me to write kind of an interface class that would convert the mysql++ queries to postgres queries for interaction with a postgres database (running on client side).

The program currently uses simple queries like:

query << "delete from " << MN << "import";

query << "load data local infile '" << impFile << "' into table " << MN << "import fields terminated by ','";

query << "select count(distinct SLIP), count(distinct SLP_ID) from " << MN << "import";

i be thankful to you if anybody finds me a solution
Reply With Quote
  #2 (permalink)  
Old 01-06-11, 07:25
healdem healdem is online now
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,246
if you are using C++ then you may need to push the database interaction into separate ineritied classes

failing that you could consider using only ANSI SQL and hope you don't need to use any of the features of ANSI SQL not yet implemented in the db product.
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #3 (permalink)  
Old 01-10-11, 05:27
Ghouri Ghouri is offline
Registered User
 
Join Date: Jan 2011
Posts: 2
If you could help me regarding this , that how to write down th edrivers for the Postgres in C++ application..?
Reply With Quote
Reply

Tags
mysql++

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On