Module: DataMapper::Adapters::AbstractAdapter::Queries
- Defined in:
- lib/data_mapper/adapters/abstract_adapter.rb
Overview
You define your custom queries in a sub-module called Queries. If you don’t need to redefine any of the default functionality/syntax, you can just create constants that point to the standard queries:
SelectStatement = DataMapper::Queries::SelectStatement
It’s just as easy to turn that into a sub-class however:
class SelectStatement < DataMapper::Queries::SelectStatement
end
You sub-class and edit instead of overwrite because you want to make sure your changes only affect this database adapter and avoid introducing incompatibilities into other adapters.
Defined Under Namespace
Classes: Connection, CreateTableStatement, DeleteStatement, DropTableStatement, InsertStatement, Reader, Result, SelectStatement, TableExistsStatement, TruncateTableStatement, UpdateStatement