mysqlpp | MariaDB C API built on STL principles | Database library
kandi X-RAY | mysqlpp Summary
kandi X-RAY | mysqlpp Summary
A C++ wrapper for the MySQL/MariaDB C API built on STL principles.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mysqlpp
mysqlpp Key Features
mysqlpp Examples and Code Snippets
Community Discussions
Trending Discussions on mysqlpp
QUESTION
I'm a newbie to c++ and have just got c++ querying an sql database with mysql++.h
The SQL query itself works, and I can print out results.
...ANSWER
Answered 2020-Jun-11 at 21:30strtok
will alter the string you pass in that it inserts string termination character 0x0
after each token. So you need a char*
, but c_str
returns a const char*
.
If you want to use strtok
, you will need to get a copy of the const char*
returned by c_str()
. The probably easiest way is to use strdup
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mysqlpp
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page