Sha256: 7e09d001ca19722c7483202253a64bd3ce3ce7df6a337060ae1be6ffdc1d424e
Contents?: true
Size: 763 Bytes
Versions: 6
Compression:
Stored size: 763 Bytes
Contents
module DataMapper module Adapters module Sql # Quoting is a mixin that extends your DataMapper::Database singleton-class # to allow for object-name and value quoting to be exposed to the queries. # # DESIGN: Is there any need for this outside of the query objects? Should # we just include it in our query object subclasses and not rely on a Quoting # mixin being part of the "standard" Adapter interface? module Quoting def quote_table_name(name) name.ensure_wrapped_with(self.class::TABLE_QUOTING_CHARACTER) end def quote_column_name(name) name.ensure_wrapped_with(self.class::COLUMN_QUOTING_CHARACTER) end end # module Quoting end end end
Version data entries
6 entries across 6 versions & 1 rubygems