Module DataObjects::Quoting
In: lib/data_objects/quoting.rb

Methods

Public Instance methods

Quote an array as a list of quoted values

Quote true, false as the strings TRUE, FALSE

Quote a class by quoting its name

Convert a Date to standard YMD format

Quote a DateTime by relying on it‘s own to_s conversion

Convert the Numeric to a String and quote that

Quote a range by joining the quoted end-point values with AND. It‘s not clear whether or when this is a useful or correct thing to do.

Quote a Regex using its string value. Note that there‘s no attempt to make a valid SQL "LIKE" string.

Quote a String for SQL by doubling any embedded single-quote characters

Convert the Symbol to a String and quote that

Convert a Time to standard YMDHMS format (with microseconds if necessary)

Quote a value of any of the recognised data types

[Validate]