Method: Libsql::SQLite3.quote

Defined in:
ext/libsql/c/libsql_ext.c

.Libsql::SQLite.quote(string) ⇒ Object

Takes the input string and surrounds it with single quotes, it also escapes each embedded single quote with double quotes.



119
120
121
122
# File 'ext/libsql/c/libsql_ext.c', line 119

VALUE libsql_ext_sqlite3_quote( VALUE self, VALUE string )
{
    return ( Qnil == string ) ? Qnil : libsql_ext_format_string( "%Q", string );
}