Class: Batchly::Request::DbRequest
- Defined in:
- lib/batchly-sdk/request/db_request.rb
Overview
DbRequest is a type of request that supports relational data sources Request holds the base data and source connection string
Instance Attribute Summary collapse
-
#connection_string ⇒ Object
connection string
string. -
#content_path ⇒ Object
Path for loading additional content - Path to container from where code is executed
string. -
#data ⇒ Object
dataset of data required to process unit of work.
-
#id ⇒ Object
id for the Unit of Work
string. -
#parameters ⇒ Object
Values for parameters configured via UI
hashTable.
Instance Method Summary collapse
-
#initialize(id = nil, parameters = nil, connection_string = nil, data = nil, content_path = nil) ⇒ DbRequest
constructor
A new instance of DbRequest.
Constructor Details
#initialize(id = nil, parameters = nil, connection_string = nil, data = nil, content_path = nil) ⇒ DbRequest
Returns a new instance of DbRequest.
11 12 13 14 15 16 17 |
# File 'lib/batchly-sdk/request/db_request.rb', line 11 def initialize(id = nil, parameters = nil, connection_string = nil, data = nil, content_path = nil) @id = id @parameters = parameters @connection_string = connection_string @data = data @content_path = content_path end |
Instance Attribute Details
#connection_string ⇒ Object
connection string string
26 27 28 |
# File 'lib/batchly-sdk/request/db_request.rb', line 26 def connection_string @connection_string end |
#content_path ⇒ Object
Path for loading additional content - Path to container from where code is executed string
33 34 35 |
# File 'lib/batchly-sdk/request/db_request.rb', line 33 def content_path @content_path end |
#data ⇒ Object
dataset of data required to process unit of work. hashTable If the configured query returns multiple record sets, each record set is a table within the dataset.
30 31 32 |
# File 'lib/batchly-sdk/request/db_request.rb', line 30 def data @data end |
#id ⇒ Object
id for the Unit of Work string
20 21 22 |
# File 'lib/batchly-sdk/request/db_request.rb', line 20 def id @id end |
#parameters ⇒ Object
Values for parameters configured via UI hashTable
23 24 25 |
# File 'lib/batchly-sdk/request/db_request.rb', line 23 def parameters @parameters end |