Working on OCILIB C++ support
Hello all,
I finally decided to work on a C++ wrapper around OCILIB !
It will be implemented as a single C++ header file that will offer C++ classes wrapping the OCILIB C API…
If the results sounds good, the next OCILIB release will include this C++ header to simplify C++ developper’s life
If any of you are interested, drop me a email !!
Here is an example of my early basic implementation :
#include "ocilib++"
using namespace ocilib;
int main(int argc, char* argv[])
{
Environment::Initialize(Environment::EnvironmentDefault);
try
{
Connection con("db", "usr", "pwd", Connection::SessionDefault);
std::cout << con.getServerVersion() << std::endl;
Statement st(con);
st.execute("select table_name from user_tables");
Resultset rs(st);
while (rs.fetchNext())
{
std::cout << rs.getString(1) << std::endl;
}
Lob lob(con, Lob::LobTypeClob);
std::cout << "char written " << lob.write("test") << std::endl;
lob.seek(Lob::LobSeekSet, 0);
std::cout << lob.read(4) << std::endl;
}
catch(Exception &ex)
{
std::cout << ex.what() << std::endl;
}
Environment::Cleanup();
}
OCILIB v3.12.1 now available for download !
Hello all,
OCILIB v3.12.1 is now available for download !
- Fixed Unicode support (OCI_CHARSET_WIDE and OCI_CHARSET_MIXED)
- Miscellaneous fixes
See the complete v3.12.1 change log here
I apologize for releases 3.10.x and 3.11.x that have introduced issues on stable features !!
This happened mainly because of corrupted test suites that should have reported errors. Since I have fix my test suite. But to be honest, they do not convert the full OCILIB API. Each new feature is tested upon its initial release but not necessary in later releases.
I did not start unit tests in early release of OCILIB. And building now a full unit test suite for OCILIB is a huge task and i can’t find the time to work on it as I work on OCILIB on my spare time.
If anybody is interested in helping me building a complete unit test suite for OCILIB, don’t hesitate to contact me
Get the release and enjoy it !
Vincent
OCILIB v3.12.0 now available for download !
Hello all,
OCILIB v3.12.0 is now available for download !
- Added support for lob prefetching introduced in 11gR1
- Enhanced and fixed Direct Path API
- Fixed Oracle Streams AQ (Advanced Queues) asynchrounous notifications
- Fixed numeric/ string conversions
- Miscellaneous fixes
See the complete v3.12.0 change log here
Get the release and enjoy it !
Vincent
OCILIB v3.11.1 now available for download !
Hello all,
OCILIB v3.11.1 is now available for download !
- Fixed broken support for Oracle Database Change notifications
See the complete v3.11.1 change log here
Get the release and enjoy it !
Vincent
OCILIB v3.11.0 now available for download !
Hello all,
OCILIB v3.11.0 is now available for download !
- Extended Oracle Streams AQ (Advanced Queues) support
- Fixed And Enhanced support of BINARY FLOAT and BINARY DOUBLE types
- Miscellaneous changes
- Miscellaneous fixes
See the complete v3.11.0 change log here
Get the release and enjoy it !
Vincent