escape_string


Description:

public static string escape_string (string str)

Escape a string for use in an SQL query.

This function should be used sparingly, as it is generally preferable to use prepared statements.

Parameters:

str the string to escape

Returns:

the escaped string

See also:

Query.bind_string


Namespace: SQLHeavy
Package: SQLHeavy