Class: River::InsertManyParams
- Inherits:
-
Object
- Object
- River::InsertManyParams
- 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
-
#args ⇒ Object
readonly
Job args to insert.
-
#insert_opts ⇒ Object
readonly
Insertion options to use with the insert.
Instance Method Summary collapse
-
#initialize(args, insert_opts: nil) ⇒ InsertManyParams
constructor
A new instance of InsertManyParams.
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
#args ⇒ Object (readonly)
Job args to insert.
274 275 276 |
# File 'lib/client.rb', line 274 def args @args end |
#insert_opts ⇒ Object (readonly)
Insertion options to use with the insert.
277 278 279 |
# File 'lib/client.rb', line 277 def insert_opts @insert_opts end |