SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches

Provides a mechanism for making direct calls to the MySQL API. More...

#include <rw/db/mysrc/myssysh.h>

Inheritance diagram for RWDBMySqlLibSystemHandle:
RWDBSystemHandle

Public Member Functions

MYSQL * mysql ()
 

Detailed Description

Class RWDBMySqlLibSystemHandle contains the MYSQL structure used by the RWDBConnection.

Note
Use of this class reduces an application's portability.
Synopsis
#include <rw/db/mysrc/myssysh.h>
#include <mysql.h>
(RWDBMySqlLibSystemHandle*)myConnection.systemHandle();
Provides a mechanism for making direct calls to the MySQL API.
Definition myssysh.h:69
Example
If it is necessary for your application to make calls directly to the MySQL API, proceed as in the following example:
#include <rw/db/myssrc/myssysh.h>
#include <mysql.h>
RWDBConnection mySqlConnect = myDbase.connection();
MYSQL* mysql = handle->mysql();
// Use mysql for MySQL C API calls.
Represents an explicit database connection object that can be used in place of the implicit database ...
Definition connect.h:81
RWDBSystemHandle * systemHandle() const

Member Function Documentation

◆ mysql()

MYSQL * RWDBMySqlLibSystemHandle::mysql ( )

Returns a pointer to the MYSQL structure encapsulated by the respective RWDBConnection.

Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.