Capítulo 24. APIs de MySQL

MySQL 5.0

Capítulo 24. APIs de MySQL

This chapter describes the APIs available for MySQL, where to get them, and how to use them. The C API is the most extensively covered, because it was developed by the MySQL team, and is the basis for most of the other APIs.

24.1. msql2mysql —

Initially, the MySQL C API was developed to be very similar to that for the mSQL database system. Because of this, mSQL programs often can be converted relatively easily for use with MySQL by changing the names of the C API functions.

The msql2mysql utility performs the conversion of mSQL C API function calls to their MySQL equivalents. msql2mysql converts the input file in place, so make a copy of the original before converting it. For example, use msql2mysql like this:

shell> 
shell> 
client-prog.c converted

Then examine and make any post-conversion revisions that may be necessary.

msql2mysql uses the replace utility to make the function name substitutions. See Sección 8.12, “La utilidad replace de cambio de cadenas de caracteres”.