Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
mariadb.h

README.md

MariaDB C++ Wrapper

Simple wrapper that adds C++ class object on top of the MariaDB C connector. This does not impliment all the fucntions and features of the MySQL C++ connector but will handle basic operations.

When the class is initialized, the server, user, and password are entered as the constructors to set up the connection.

setConnect() - create a connection to MariaDB

setDisconnect() - disconnect from MariaDB

getStatus() - indicates if there is an active connection to the server

setQuery(string newQuery) - Execute a MySQL statement with no return

getResults(string newQuery) - Execute a MySQL statement that returns results

getRow() - return entire row of results, every call will iterate it further

getNumCol() - return number of columns in the result set

getColName(int input) - returns the name of the column of the number entered as a string

getField(int colnum) - returns the value in the field on the current row as a string

storeResult(string newQuery) - Execute a MySQL statement and results will be stored in RAM

freeResult() - clears out data stored by getResult()

getError() - returns mysql error message and error number

You can’t perform that action at this time.