module Jennifer::Adapter::Quoting
Defined in:
jennifer/adapter/quoting.crConstant Summary
-
ARGUMENT_ESCAPE_STRING =
"%s"
-
STRING_QUOTING_PATTERNS =
{'\\' => "\\\\", '\'' => "''", '"' => "\\\""}
Instance Method Summary
- #escape_string(size : Int32)
- #escape_string
- #filter_out(arg : Array, single : Bool = true)
- #filter_out(arg : QueryBuilder::SQLNode)
- #filter_out(arg)
-
#quote(value : String)
Quotes the column value to help prevent -[SQL injection attacks][https://en.wikipedia.org/wiki/SQL_injection].
- #quote(value : Nil)
- #quote(value : Bool)
- #quote(value : Int | Float | UInt32)
- #quote(value : Char)
- #quote(value : Time)
- #quote(value : Time::Span)
- #quote(value : Slice(UInt8))
- #quote(value : JSON::Any)
- #quote(value)
-
#quote_identifier(identifier : String | Symbol)
Quotes the given identifier according to the language specification to prevent overlappings with predefined keywords.
- #quote_identifiers(identifiers)
-
#quote_json_string(value : String)
Quotes strings of JSON column value to help prevent -[SQL injection attacks][https://en.wikipedia.org/wiki/SQL_injection].
-
#quote_table(table : String)
Quotes the given table name according to the language specification.
Instance Method Detail
Quotes the column value to help prevent -[SQL injection attacks][https://en.wikipedia.org/wiki/SQL_injection].
Quotes the given identifier according to the language specification to prevent overlappings with predefined keywords.
Quotes strings of JSON column value to help prevent -[SQL injection attacks][https://en.wikipedia.org/wiki/SQL_injection].
Quotes the given table name according to the language specification.
Dot inside of name is allowed to specify schema name.