quote(value, column = nil) Instance Public methods Quotes the column value to help prevent SQL injection attacks.
quote_column_name(column_name) Instance Public methods Quotes the column name. Defaults to no quoting.
quote_string(s) Instance Public methods Quotes a string, escaping any ' (single quote) and \ (backslash) characters.
quote_table_name(table_name) Instance Public methods Quotes the table name. Defaults to column name quoting.
quote_table_name_for_assignment(table, attr) Instance Public methods Override to return the quoted table name for assignment. Defaults to table quoting. This works for mysql and mysql2 where table.column can be used to resolve ambiguity. We override this in the sqlite and postgresql adapters to use only the column name (as per syntax requirements).
quoted_date(value) Instance Public methods
quoted_false() Instance Public methods
quoted_true() Instance Public methods
type_cast(value, column) Instance Public methods Cast a value to a type that the database understands. For example, SQLite does not understand dates, so this method will convert a Date to a String.
new(conn) Class Public methods
Page 2109 of 11844