Bug #47987 Complete C API example missing from the documentation
Submitted: 12 Oct 2009 7:57 Modified: 18 Oct 2019 13:07
Reporter: Philip Stoev Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Documentation Severity:S4 (Feature request)
Version:5.1 OS:Any
Assigned to: Paul DuBois CPU Architecture:Any

[12 Oct 2009 7:57] Philip Stoev
Description:
Our documentation contains extensive information on the individual C API functions, however is missing a simple example that can be copy+pasted and compiled easily to provide a starting point.

A lack of an example would cause users to Google for one, getting their information from third-party web sites which may be outdated.

If such an example is already present, it is not easily accessible from the main API documentation page.

How to repeat:
Try to build a simple C program that issues SELECT 1 FROM DUAL
[18 Oct 2019 13:07] Paul DuBois
Posted by developer:
 
https://dev.mysql.com/doc/refman/8.0/en/c-api-example-programs.html
indicates the MySQL source distributions provide several complete
example programs, and individual function description sections
provide examples of their use.