Class: PeaAlterResponse
- Inherits:
-
PeaResponse
- Object
- PeaResponse
- PeaAlterResponse
- Defined in:
- lib/pea_response.rb
Overview
Represents the concept of response in the case of an ALTER query executed on the database of an AS/400 server by a PeaClient object.
Instance Method Summary collapse
-
#initialize(has_succeeded, sql_message, sql_state, table_schema) ⇒ PeaAlterResponse
constructor
Initialize a new instance of the PeaAlterResponse class.
- #table_schema ⇒ Object
Methods inherited from PeaResponse
#has_succeeded, #sql_message, #sql_state
Constructor Details
#initialize(has_succeeded, sql_message, sql_state, table_schema) ⇒ PeaAlterResponse
Initialize a new instance of the PeaAlterResponse class.
Params:
has_succeeded
-
Boolean set to true if the query has correctly been executed. Set to true if the SQL state is 00000.
sql_message
-
SQL message return from the execution of the query.
sql_state
-
SQL state return from the execution of the query.
table_schema
-
Schema of the table if the SQL create query creates a new table. The Schema is a Dictionary with columns’ name as key and a ColumnInfo object as value.
81 82 83 84 85 |
# File 'lib/pea_response.rb', line 81 def initialize(has_succeeded, , sql_state, table_schema) super has_succeeded, , sql_state @table_schema = table_schema end |
Instance Method Details
#table_schema ⇒ Object
87 88 89 |
# File 'lib/pea_response.rb', line 87 def table_schema @table_schema end |