Sha256: 9b36d8177f79fb1fa965df3292b7df98e68ca1fa09619a1b2ce5c90bc1ef97ca

Contents?: true

Size: 278 Bytes

Versions: 10

Compression:

Stored size: 278 Bytes

Contents

# frozen_string_literal: true

module LunaPark
  module Extensions
    module Repositories
      module Postgres
        module Delete
          def delete(uid)
            dataset.returning.where(primary_key => uid).delete
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
luna_park-0.12.1 lib/luna_park/extensions/repositories/postgres/delete.rb
luna_park-0.12.0 lib/luna_park/extensions/repositories/postgres/delete.rb
luna_park-0.11.7 lib/luna_park/extensions/repositories/postgres/delete.rb
luna_park-0.11.6 lib/luna_park/extensions/repositories/postgres/delete.rb
luna_park-0.11.5 lib/luna_park/extensions/repositories/postgres/delete.rb
luna_park-0.11.4 lib/luna_park/extensions/repositories/postgres/delete.rb
luna_park-0.11.3 lib/luna_park/extensions/repositories/postgres/delete.rb
luna_park-0.11.2 lib/luna_park/extensions/repositories/postgres/delete.rb
luna_park-0.11.1 lib/luna_park/extensions/repositories/postgres/delete.rb
luna_park-0.11.0 lib/luna_park/extensions/repositories/postgres/delete.rb