This tutorial is geared towards people that want to get started writing MySQL UDFs. Attendees are expected to have some general programming skills, but are not required to have prior experience in programming C/C++.
The tutorial will be a mixture of explanation of theory and labs during which attendees will learn how to apply the theory. Attendees are strongly encouraged to bring their laptops (either windows with visual studio or linux with gcc and an effort will be made to cater to OS/X users). At the end of the tutorial, attendees will have written their own UDF’s and will have enough background knowledge to find their own way in implementing them.
The following flow will used:
- Definitions: what are UDFS, how do they relate to stored functions and built-in functions. - Introduction into the C programming language (geared to writing UDFs) - Setting up the environment for compilation of UDFs - MySQL interface for simple UDFs - MySQL interface for aggregate UDFs - Installing/de-installing UDFs - Security considerations - UDFs and Future developments
Throughout these topics, the following elements from the MySQL UDF interface will be explained: - different function signatures and their purpose (xxx_init, xxx_deinit etc) - argument handling - data types (STRING_RESULT, DECIMAL_RESULT, etc.) and their mapping to SQL data types - returning values - memory management - error handling - troubleshooting common problems in writing and installing UDFs
Code that will be used will be derived from: http://www.xcdsql.org/MySQL/UDF/mysql_udf_repository_libraries.html in particular: - lib_mysqludf_json - lib_mysqludf_sys - lib_mysqludf_udf - lib_mysqludf_stat
I studied Molecular Biology, but I’m professionally occupied as Web Application Developer, Information and Business Process Analyst, and Business Intelligence Guy. I have worked for Inter Access, MySQL AB, Sun Microsystems, and I currently work for Strukton Rail.
For information on exhibition and sponsorship opportunities at the conference, contact Sharon Cordesse at scordesse@oreilly.com.
Download the MySQL Sponsor/Exhibitor Prospectus
Download the Media & Promotional Partner Brochure (PDF) for more information on trade opportunities with O'Reilly conferences, or contact mediapartners@oreilly.com.
For media-related inquiries, contact confpr@oreilly.com.
To stay abreast of conference news and to receive email notification when registration opens, please sign up for the MySQL Conference newsletter.
View a complete list of MySQL contacts.