Thank you. Your approach helped me in coming up with an approach.
Is the use of statement costlier that just a session object? Does using statement over a session object have an impact on performance?
Sent from my iPhone.
Brevity may be excused.
Thank You.
Medhavi Mahansaria.
Post by Mateusz LoskotOn 28 November 2014 at 14:19, Medhavi Mahansaria
Post by Medhavi Mahansaria1) can i call a specific function which is specific to a database from any SOCI function.
You should be able to call any backend-specific SQL function as part
of SQL statement.
SOCI is just a wrapper on top of a client C/C++ library accessing
particular backend,
so obviously you can't tell SOCI to call any extra C/C++ functions.
Post by Medhavi MahansariaCan you also shed a little more details on the getbackend() function apart from the explanation in the documentation of SOCI. Probably a program for the same would be helpful.
There is not much to say more than in here, really
http://soci.sourceforge.net/doc/3.2/reference.html
http://soci.sourceforge.net/doc/3.2/backends/oracle.html
and here, see "Beyond SOCI API"
http://soci.sourceforge.net/doc/3.2/beyond.html
Post by Medhavi Mahansaria2) can i throw user defined exceptions in the try block so that one of the catch blocks can handle it.
For example if a query does not return any rows. I need to throw an exception and perform further action on it. Will this be possible?
{session|statement}::got_data() might help
if (!sql.got_data()) throw ...
or I don't understand the problem.
Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
soci-users mailing list
https://lists.sourceforge.net/lists/listinfo/soci-users