Module: DataObjects::Quoting

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

### Methods

quote_array quote_boolean quote_byte_array quote_class quote_date quote_datetime quote_numeric quote_range quote_regexp quote_string quote_symbol quote_time quote_value

### Public Instance methods

quote_array(value)

Quote an array as a list of quoted values

quote_boolean(value)

Quote true, false as the strings TRUE, FALSE

quote_byte_array(value)
quote_class(value)

Quote a class by quoting its name

quote_date(value)

Convert a Date to standard YMD format

quote_datetime(value)

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

quote_numeric(value)

Convert the Numeric to a String and quote that

quote_range(value)

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_regexp(value)

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

quote_string(value)

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

quote_symbol(value)

Convert the Symbol to a String and quote that

quote_time(value)

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

quote_value(value)

Quote a value of any of the recognised data types

[Validate]