Sha256: c3578d4b17bdc7e3cd37efeff44e027a0d017301878faa7a07f3a0ababb83e3b

Contents?: true

Size: 404 Bytes

Versions: 1

Compression:

Stored size: 404 Bytes

Contents

require 'upsert/buffer/pg_connection/column_definition'
require 'upsert/buffer/pg_connection/merge_function'

class Upsert
  class Buffer
    # @private
    class PG_Connection < Buffer
      def ready
        return if rows.empty?
        row = rows.shift
        MergeFunction.execute self, row
      end

      def clear_database_functions
        MergeFunction.clear self
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
upsert-0.5.0 lib/upsert/buffer/pg_connection.rb