v6.2.0
https://github.com/sociomantic-tsunami/libdrizzle-redux/milestone/40
Removed github wiki pages
The wiki has been removed to avoid keeping it up to date with the (identical) documentation in the docs
folder.
Removed bootstrap.sh
script
The bootstrap.sh
script was broken with the patch c3cc291, which sanitized the build output so files generated by make were written to a separate toplevel dir build
.
Users of the library who integrates the script into build process should instead use the manual build steps.
Features
Add support for code coverage
Support has been added for compiling the library with code coverage.
It requires using the option --with-coverage-support
when running configure
.
Check the section Building code coverage in the documentation for more information.
Add support for api-sanity-checker test tool
Running make api-sanity-checker
will run the api-sanity-checker
tool against the codebase. The tool is an automatic generator of basic unit tests.
For more info about the tool: https://lvc.github.io/api-sanity-checker/
Add missing documentation for API
Some existing functions in the query API was not part of the rst documentation.
include/libdrizzle-redux/query.h
ssize_t drizzle_escape_str(drizzle_st *con, char **to, const char *from, const size_t from_size, bool is_pattern)
The MySQL manual lists 11 characters which should be escaped, including 2 which should only be escaped for a string used in a pattern-matching context (e.g. LIKE clause).
The function drizzle_escape_str
extends the capabilities of drizzle_escape_string
by taking an extra parameter, is_pattern
, specifying whether the string will be used in a pattern-matching context.
The feature was part of v5.6.0
but wasn't added to the documentation.
bool drizzle_success(drizzle_return_t ret)
Utility function to check if a drizzle
function call succeeded
bool drizzle_failed(drizzle_return_t ret)
Utility function to check if a drizzle
function call failed