Class: River::InsertManyParams

Inherits:
Object
  • Object
show all
Defined in:
lib/client.rb

Overview

A single job to insert that’s part of an #insert_many batch insert. Unlike sending raw job args, supports an InsertOpts to pair with the job.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args, insert_opts: nil) ⇒ InsertManyParams

Returns a new instance of InsertManyParams.



279
280
281
282
# File 'lib/client.rb', line 279

def initialize(args, insert_opts: nil)
  @args = args
  @insert_opts = insert_opts
end

Instance Attribute Details

#argsObject (readonly)

Job args to insert.



274
275
276
# File 'lib/client.rb', line 274

def args
  @args
end

#insert_optsObject (readonly)

Insertion options to use with the insert.



277
278
279
# File 'lib/client.rb', line 277

def insert_opts
  @insert_opts
end