You can always get a pointer to the underlying driver handle, cast it to the native type and use it. Something along the lines of:
QVariant handle
= database.
driver()->handle
();
if (qstrcmp(handle.typeName(), "MYSQL*")) {
MYSQL *nativeHandle = *static_cast<MYSQL **>(handle.data());
if (nativeHandle != 0) {
doYourNativeStuffWith(nativeHandle);
}
}
QVariant handle = database.driver()->handle();
if (qstrcmp(handle.typeName(), "MYSQL*")) {
MYSQL *nativeHandle = *static_cast<MYSQL **>(handle.data());
if (nativeHandle != 0) {
doYourNativeStuffWith(nativeHandle);
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks