The legacy sqlescape.lua module contains a library for escaping strings to make them safe to use in SQL for various databases. This has been superseded by the conn:quote() method that was introduced in Iguana 5.5.1.
Note: This module is included for backwards compatibility and support purposes only. You can use this module to escape strings for versions of Iguana prior to 5.5.1.
The code for this module can be downloaded from our code repository.
No API documentation has been written for the sqlescape.lua module yet. See the links to wiki articles below for more information and example usage.
For More Information
Here are some wiki examples using the sqlescape.lua module:
- Escaping values correctly for SQL
- Mapping To/From Databases, this section describes how to work with databases
Back to: Intro