Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data SubStatementData = SubStatementData' {}
- newSubStatementData :: Text -> SubStatementData
- subStatementData_createdAt :: Lens' SubStatementData (Maybe UTCTime)
- subStatementData_duration :: Lens' SubStatementData (Maybe Integer)
- subStatementData_error :: Lens' SubStatementData (Maybe Text)
- subStatementData_hasResultSet :: Lens' SubStatementData (Maybe Bool)
- subStatementData_queryString :: Lens' SubStatementData (Maybe Text)
- subStatementData_redshiftQueryId :: Lens' SubStatementData (Maybe Integer)
- subStatementData_resultRows :: Lens' SubStatementData (Maybe Integer)
- subStatementData_resultSize :: Lens' SubStatementData (Maybe Integer)
- subStatementData_status :: Lens' SubStatementData (Maybe StatementStatusString)
- subStatementData_updatedAt :: Lens' SubStatementData (Maybe UTCTime)
- subStatementData_id :: Lens' SubStatementData Text
Documentation
data SubStatementData Source #
Information about an SQL statement.
See: newSubStatementData
smart constructor.
SubStatementData' | |
|
Instances
Create a value of SubStatementData
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:createdAt:SubStatementData'
, subStatementData_createdAt
- The date and time (UTC) the statement was created.
$sel:duration:SubStatementData'
, subStatementData_duration
- The amount of time in nanoseconds that the statement ran.
$sel:error:SubStatementData'
, subStatementData_error
- The error message from the cluster if the SQL statement encountered an
error while running.
$sel:hasResultSet:SubStatementData'
, subStatementData_hasResultSet
- A value that indicates whether the statement has a result set. The
result set can be empty. The value is true for an empty result set.
$sel:queryString:SubStatementData'
, subStatementData_queryString
- The SQL statement text.
$sel:redshiftQueryId:SubStatementData'
, subStatementData_redshiftQueryId
- The SQL statement identifier. This value is a universally unique
identifier (UUID) generated by Amazon Redshift Data API.
$sel:resultRows:SubStatementData'
, subStatementData_resultRows
- Either the number of rows returned from the SQL statement or the number
of rows affected. If result size is greater than zero, the result rows
can be the number of rows affected by SQL statements such as INSERT,
UPDATE, DELETE, COPY, and others. A -1
indicates the value is null.
$sel:resultSize:SubStatementData'
, subStatementData_resultSize
- The size in bytes of the returned results. A -1
indicates the value is
null.
$sel:status:SubStatementData'
, subStatementData_status
- The status of the SQL statement. An example is the that the SQL
statement finished.
$sel:updatedAt:SubStatementData'
, subStatementData_updatedAt
- The date and time (UTC) that the statement metadata was last updated.
$sel:id:SubStatementData'
, subStatementData_id
- The identifier of the SQL statement. This value is a universally unique
identifier (UUID) generated by Amazon Redshift Data API. A suffix
indicates the number of the SQL statement. For example,
d9b6c0c9-0747-4bf4-b142-e8883122f766:2
has a suffix of :2
that
indicates the second SQL statement of a batch query.
subStatementData_createdAt :: Lens' SubStatementData (Maybe UTCTime) Source #
The date and time (UTC) the statement was created.
subStatementData_duration :: Lens' SubStatementData (Maybe Integer) Source #
The amount of time in nanoseconds that the statement ran.
subStatementData_error :: Lens' SubStatementData (Maybe Text) Source #
The error message from the cluster if the SQL statement encountered an error while running.
subStatementData_hasResultSet :: Lens' SubStatementData (Maybe Bool) Source #
A value that indicates whether the statement has a result set. The result set can be empty. The value is true for an empty result set.
subStatementData_queryString :: Lens' SubStatementData (Maybe Text) Source #
The SQL statement text.
subStatementData_redshiftQueryId :: Lens' SubStatementData (Maybe Integer) Source #
The SQL statement identifier. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.
subStatementData_resultRows :: Lens' SubStatementData (Maybe Integer) Source #
Either the number of rows returned from the SQL statement or the number
of rows affected. If result size is greater than zero, the result rows
can be the number of rows affected by SQL statements such as INSERT,
UPDATE, DELETE, COPY, and others. A -1
indicates the value is null.
subStatementData_resultSize :: Lens' SubStatementData (Maybe Integer) Source #
The size in bytes of the returned results. A -1
indicates the value is
null.
subStatementData_status :: Lens' SubStatementData (Maybe StatementStatusString) Source #
The status of the SQL statement. An example is the that the SQL statement finished.
subStatementData_updatedAt :: Lens' SubStatementData (Maybe UTCTime) Source #
The date and time (UTC) that the statement metadata was last updated.
subStatementData_id :: Lens' SubStatementData Text Source #
The identifier of the SQL statement. This value is a universally unique
identifier (UUID) generated by Amazon Redshift Data API. A suffix
indicates the number of the SQL statement. For example,
d9b6c0c9-0747-4bf4-b142-e8883122f766:2
has a suffix of :2
that
indicates the second SQL statement of a batch query.