Global/SQLStr
From Garry's Mod
(Difference between revisions)
(Initial Creation) |
|||
Line 2: | Line 2: | ||
|Name=SQLStr | |Name=SQLStr | ||
|Parent=Global | |Parent=Global | ||
− | |Description=Returns the input value in an escaped form so that it can safely be used inside of queries. The returned value is surrounded by quotes unless noQuotes is true. Alias of | + | |Description=Returns the input value in an escaped form so that it can safely be used inside of queries. The returned value is surrounded by quotes unless noQuotes is true. Alias of {{LibraryFunction|sql|SQLStr}} |
|Realm=Shared | |Realm=Shared |
Revision as of 20:30, 18 April 2014
Contents |
Description
Returns the input value in an escaped form so that it can safely be used inside of queries. The returned value is surrounded by quotes unless noQuotes is true. Alias of sql.SQLStr
Arguments
string input
String to be escaped
Arguments
boolean noQuotes=false
Whether the returned value should be surrounded in quotes or not
Returns
escaped input