If you do not know DB at compile time and your code is DB agnostic you can 
always load particular DB run time.

So either you download respective library from some repos. For rpms EPEL repo 
should be great one

When you connect you just specify DB name, so your connect string will look 
like:
dbMode://db=<dbname> user=<dbuser> password=<dbpassw> host=<dbhost> 
port=<dbport>

Where dbMode is name of DB like "mysql" or "postgress" (not sure about correct 
name for postrgress though).

Take a look at core/backend-loader.* code.




________________________________
 From: Hosanna Higher Technologies Support 
<[email protected]>
To: [email protected] 
Sent: Friday, March 9, 2012 7:59 AM
Subject: [SOCI-users] Use Soci to retrieve Database List
 

Hi,
I'm new to SOCI so please bear with me if it is child's question.
Is there a way to retrieve database lists with SOCI?
Since I have no database at that time, session is not useful.
Also I have checked soci::connection_pool but I cannot find good explanations.
Thanks,
Stefano
 
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to