Sha256: 55b7fffb41a57d6019beaa3521bc6277d1db012703523e05a29d2442da52cffc
Contents?: true
Size: 355 Bytes
Versions: 1
Compression:
Stored size: 355 Bytes
Contents
module DataMapper module Queries class DeleteStatement def initialize(database, instance) @database, @instance = database, instance end def to_sql "DELETE FROM " << @database[@instance.class].to_sql << " WHERE id = " << @database.quote_value(@instance.key) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
datamapper-0.1.0 | lib/data_mapper/queries/delete_statement.rb |