Documentation
¶
Index ¶
- type BaseChunkInfo
- func (m BaseChunkInfo) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m BaseChunkInfo) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (to *BaseChunkInfo) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from BaseChunkInfo)
- func (to *BaseChunkInfo) SyncFieldsDuringRead(ctx context.Context, from BaseChunkInfo)
- func (m BaseChunkInfo) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m BaseChunkInfo) Type(ctx context.Context) attr.Type
- type BaseChunkInfo_SdkV2
- func (m BaseChunkInfo_SdkV2) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m BaseChunkInfo_SdkV2) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (to *BaseChunkInfo_SdkV2) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from BaseChunkInfo_SdkV2)
- func (to *BaseChunkInfo_SdkV2) SyncFieldsDuringRead(ctx context.Context, from BaseChunkInfo_SdkV2)
- func (m BaseChunkInfo_SdkV2) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m BaseChunkInfo_SdkV2) Type(ctx context.Context) attr.Type
- type CancelStatementRequest
- func (m CancelStatementRequest) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m CancelStatementRequest) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (to *CancelStatementRequest) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from CancelStatementRequest)
- func (to *CancelStatementRequest) SyncFieldsDuringRead(ctx context.Context, from CancelStatementRequest)
- func (m CancelStatementRequest) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m CancelStatementRequest) Type(ctx context.Context) attr.Type
- type CancelStatementRequest_SdkV2
- func (m CancelStatementRequest_SdkV2) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m CancelStatementRequest_SdkV2) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (to *CancelStatementRequest_SdkV2) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from CancelStatementRequest_SdkV2)
- func (to *CancelStatementRequest_SdkV2) SyncFieldsDuringRead(ctx context.Context, from CancelStatementRequest_SdkV2)
- func (m CancelStatementRequest_SdkV2) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m CancelStatementRequest_SdkV2) Type(ctx context.Context) attr.Type
- type CancelStatementResponse
- func (m CancelStatementResponse) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m CancelStatementResponse) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (to *CancelStatementResponse) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from CancelStatementResponse)
- func (to *CancelStatementResponse) SyncFieldsDuringRead(ctx context.Context, from CancelStatementResponse)
- func (m CancelStatementResponse) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m CancelStatementResponse) Type(ctx context.Context) attr.Type
- type CancelStatementResponse_SdkV2
- func (m CancelStatementResponse_SdkV2) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m CancelStatementResponse_SdkV2) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (to *CancelStatementResponse_SdkV2) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from CancelStatementResponse_SdkV2)
- func (to *CancelStatementResponse_SdkV2) SyncFieldsDuringRead(ctx context.Context, from CancelStatementResponse_SdkV2)
- func (m CancelStatementResponse_SdkV2) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m CancelStatementResponse_SdkV2) Type(ctx context.Context) attr.Type
- type ColumnInfo
- func (m ColumnInfo) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m ColumnInfo) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (to *ColumnInfo) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from ColumnInfo)
- func (to *ColumnInfo) SyncFieldsDuringRead(ctx context.Context, from ColumnInfo)
- func (m ColumnInfo) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m ColumnInfo) Type(ctx context.Context) attr.Type
- type ColumnInfo_SdkV2
- func (m ColumnInfo_SdkV2) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m ColumnInfo_SdkV2) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (to *ColumnInfo_SdkV2) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from ColumnInfo_SdkV2)
- func (to *ColumnInfo_SdkV2) SyncFieldsDuringRead(ctx context.Context, from ColumnInfo_SdkV2)
- func (m ColumnInfo_SdkV2) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m ColumnInfo_SdkV2) Type(ctx context.Context) attr.Type
- type ExecuteStatementRequest
- func (m ExecuteStatementRequest) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m ExecuteStatementRequest) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (m *ExecuteStatementRequest) GetParameters(ctx context.Context) ([]StatementParameter, bool)
- func (m *ExecuteStatementRequest) GetQueryTags(ctx context.Context) ([]QueryTag, bool)
- func (m *ExecuteStatementRequest) SetParameters(ctx context.Context, v []StatementParameter)
- func (m *ExecuteStatementRequest) SetQueryTags(ctx context.Context, v []QueryTag)
- func (to *ExecuteStatementRequest) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from ExecuteStatementRequest)
- func (to *ExecuteStatementRequest) SyncFieldsDuringRead(ctx context.Context, from ExecuteStatementRequest)
- func (m ExecuteStatementRequest) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m ExecuteStatementRequest) Type(ctx context.Context) attr.Type
- type ExecuteStatementRequest_SdkV2
- func (m ExecuteStatementRequest_SdkV2) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m ExecuteStatementRequest_SdkV2) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (m *ExecuteStatementRequest_SdkV2) GetParameters(ctx context.Context) ([]StatementParameter_SdkV2, bool)
- func (m *ExecuteStatementRequest_SdkV2) GetQueryTags(ctx context.Context) ([]QueryTag_SdkV2, bool)
- func (m *ExecuteStatementRequest_SdkV2) SetParameters(ctx context.Context, v []StatementParameter_SdkV2)
- func (m *ExecuteStatementRequest_SdkV2) SetQueryTags(ctx context.Context, v []QueryTag_SdkV2)
- func (to *ExecuteStatementRequest_SdkV2) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from ExecuteStatementRequest_SdkV2)
- func (to *ExecuteStatementRequest_SdkV2) SyncFieldsDuringRead(ctx context.Context, from ExecuteStatementRequest_SdkV2)
- func (m ExecuteStatementRequest_SdkV2) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m ExecuteStatementRequest_SdkV2) Type(ctx context.Context) attr.Type
- type ExternalLink
- func (m ExternalLink) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m ExternalLink) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (m *ExternalLink) GetHttpHeaders(ctx context.Context) (map[string]types.String, bool)
- func (m *ExternalLink) SetHttpHeaders(ctx context.Context, v map[string]types.String)
- func (to *ExternalLink) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from ExternalLink)
- func (to *ExternalLink) SyncFieldsDuringRead(ctx context.Context, from ExternalLink)
- func (m ExternalLink) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m ExternalLink) Type(ctx context.Context) attr.Type
- type ExternalLink_SdkV2
- func (m ExternalLink_SdkV2) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m ExternalLink_SdkV2) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (m *ExternalLink_SdkV2) GetHttpHeaders(ctx context.Context) (map[string]types.String, bool)
- func (m *ExternalLink_SdkV2) SetHttpHeaders(ctx context.Context, v map[string]types.String)
- func (to *ExternalLink_SdkV2) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from ExternalLink_SdkV2)
- func (to *ExternalLink_SdkV2) SyncFieldsDuringRead(ctx context.Context, from ExternalLink_SdkV2)
- func (m ExternalLink_SdkV2) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m ExternalLink_SdkV2) Type(ctx context.Context) attr.Type
- type GetResultDataRequest
- func (m GetResultDataRequest) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m GetResultDataRequest) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (to *GetResultDataRequest) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from GetResultDataRequest)
- func (to *GetResultDataRequest) SyncFieldsDuringRead(ctx context.Context, from GetResultDataRequest)
- func (m GetResultDataRequest) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m GetResultDataRequest) Type(ctx context.Context) attr.Type
- type GetResultDataRequest_SdkV2
- func (m GetResultDataRequest_SdkV2) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m GetResultDataRequest_SdkV2) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (to *GetResultDataRequest_SdkV2) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from GetResultDataRequest_SdkV2)
- func (to *GetResultDataRequest_SdkV2) SyncFieldsDuringRead(ctx context.Context, from GetResultDataRequest_SdkV2)
- func (m GetResultDataRequest_SdkV2) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m GetResultDataRequest_SdkV2) Type(ctx context.Context) attr.Type
- type GetStatementResultRequest
- func (m GetStatementResultRequest) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m GetStatementResultRequest) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (to *GetStatementResultRequest) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from GetStatementResultRequest)
- func (to *GetStatementResultRequest) SyncFieldsDuringRead(ctx context.Context, from GetStatementResultRequest)
- func (m GetStatementResultRequest) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m GetStatementResultRequest) Type(ctx context.Context) attr.Type
- type GetStatementResultRequest_SdkV2
- func (m GetStatementResultRequest_SdkV2) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m GetStatementResultRequest_SdkV2) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (to *GetStatementResultRequest_SdkV2) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from GetStatementResultRequest_SdkV2)
- func (to *GetStatementResultRequest_SdkV2) SyncFieldsDuringRead(ctx context.Context, from GetStatementResultRequest_SdkV2)
- func (m GetStatementResultRequest_SdkV2) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m GetStatementResultRequest_SdkV2) Type(ctx context.Context) attr.Type
- type QueryTag
- func (m QueryTag) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m QueryTag) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (to *QueryTag) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from QueryTag)
- func (to *QueryTag) SyncFieldsDuringRead(ctx context.Context, from QueryTag)
- func (m QueryTag) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m QueryTag) Type(ctx context.Context) attr.Type
- type QueryTag_SdkV2
- func (m QueryTag_SdkV2) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m QueryTag_SdkV2) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (to *QueryTag_SdkV2) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from QueryTag_SdkV2)
- func (to *QueryTag_SdkV2) SyncFieldsDuringRead(ctx context.Context, from QueryTag_SdkV2)
- func (m QueryTag_SdkV2) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m QueryTag_SdkV2) Type(ctx context.Context) attr.Type
- type ResultData
- func (m ResultData) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m ResultData) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (m *ResultData) GetDataArray(ctx context.Context) ([]types.Object, bool)
- func (m *ResultData) GetExternalLinks(ctx context.Context) ([]ExternalLink, bool)
- func (m *ResultData) SetDataArray(ctx context.Context, v []types.Object)
- func (m *ResultData) SetExternalLinks(ctx context.Context, v []ExternalLink)
- func (to *ResultData) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from ResultData)
- func (to *ResultData) SyncFieldsDuringRead(ctx context.Context, from ResultData)
- func (m ResultData) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m ResultData) Type(ctx context.Context) attr.Type
- type ResultData_SdkV2
- func (m ResultData_SdkV2) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m ResultData_SdkV2) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (m *ResultData_SdkV2) GetDataArray(ctx context.Context) ([]types.Object, bool)
- func (m *ResultData_SdkV2) GetExternalLinks(ctx context.Context) ([]ExternalLink_SdkV2, bool)
- func (m *ResultData_SdkV2) SetDataArray(ctx context.Context, v []types.Object)
- func (m *ResultData_SdkV2) SetExternalLinks(ctx context.Context, v []ExternalLink_SdkV2)
- func (to *ResultData_SdkV2) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from ResultData_SdkV2)
- func (to *ResultData_SdkV2) SyncFieldsDuringRead(ctx context.Context, from ResultData_SdkV2)
- func (m ResultData_SdkV2) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m ResultData_SdkV2) Type(ctx context.Context) attr.Type
- type ResultManifest
- func (m ResultManifest) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m *ResultManifest) GetChunks(ctx context.Context) ([]BaseChunkInfo, bool)
- func (m ResultManifest) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (m *ResultManifest) GetSchema(ctx context.Context) (Schema, bool)
- func (m *ResultManifest) SetChunks(ctx context.Context, v []BaseChunkInfo)
- func (m *ResultManifest) SetSchema(ctx context.Context, v Schema)
- func (to *ResultManifest) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from ResultManifest)
- func (to *ResultManifest) SyncFieldsDuringRead(ctx context.Context, from ResultManifest)
- func (m ResultManifest) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m ResultManifest) Type(ctx context.Context) attr.Type
- type ResultManifest_SdkV2
- func (m ResultManifest_SdkV2) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m *ResultManifest_SdkV2) GetChunks(ctx context.Context) ([]BaseChunkInfo_SdkV2, bool)
- func (m ResultManifest_SdkV2) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (m *ResultManifest_SdkV2) GetSchema(ctx context.Context) (Schema_SdkV2, bool)
- func (m *ResultManifest_SdkV2) SetChunks(ctx context.Context, v []BaseChunkInfo_SdkV2)
- func (m *ResultManifest_SdkV2) SetSchema(ctx context.Context, v Schema_SdkV2)
- func (to *ResultManifest_SdkV2) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from ResultManifest_SdkV2)
- func (to *ResultManifest_SdkV2) SyncFieldsDuringRead(ctx context.Context, from ResultManifest_SdkV2)
- func (m ResultManifest_SdkV2) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m ResultManifest_SdkV2) Type(ctx context.Context) attr.Type
- type Schema
- func (m Schema) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m *Schema) GetColumns(ctx context.Context) ([]ColumnInfo, bool)
- func (m Schema) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (m *Schema) SetColumns(ctx context.Context, v []ColumnInfo)
- func (to *Schema) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from Schema)
- func (to *Schema) SyncFieldsDuringRead(ctx context.Context, from Schema)
- func (m Schema) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m Schema) Type(ctx context.Context) attr.Type
- type Schema_SdkV2
- func (m Schema_SdkV2) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m *Schema_SdkV2) GetColumns(ctx context.Context) ([]ColumnInfo_SdkV2, bool)
- func (m Schema_SdkV2) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (m *Schema_SdkV2) SetColumns(ctx context.Context, v []ColumnInfo_SdkV2)
- func (to *Schema_SdkV2) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from Schema_SdkV2)
- func (to *Schema_SdkV2) SyncFieldsDuringRead(ctx context.Context, from Schema_SdkV2)
- func (m Schema_SdkV2) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m Schema_SdkV2) Type(ctx context.Context) attr.Type
- type ServiceError
- func (m ServiceError) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m ServiceError) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (to *ServiceError) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from ServiceError)
- func (to *ServiceError) SyncFieldsDuringRead(ctx context.Context, from ServiceError)
- func (m ServiceError) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m ServiceError) Type(ctx context.Context) attr.Type
- type ServiceError_SdkV2
- func (m ServiceError_SdkV2) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m ServiceError_SdkV2) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (to *ServiceError_SdkV2) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from ServiceError_SdkV2)
- func (to *ServiceError_SdkV2) SyncFieldsDuringRead(ctx context.Context, from ServiceError_SdkV2)
- func (m ServiceError_SdkV2) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m ServiceError_SdkV2) Type(ctx context.Context) attr.Type
- type StatementParameter
- func (m StatementParameter) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m StatementParameter) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (to *StatementParameter) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from StatementParameter)
- func (to *StatementParameter) SyncFieldsDuringRead(ctx context.Context, from StatementParameter)
- func (m StatementParameter) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m StatementParameter) Type(ctx context.Context) attr.Type
- type StatementParameter_SdkV2
- func (m StatementParameter_SdkV2) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m StatementParameter_SdkV2) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (to *StatementParameter_SdkV2) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from StatementParameter_SdkV2)
- func (to *StatementParameter_SdkV2) SyncFieldsDuringRead(ctx context.Context, from StatementParameter_SdkV2)
- func (m StatementParameter_SdkV2) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m StatementParameter_SdkV2) Type(ctx context.Context) attr.Type
- type StatementResponse
- func (m StatementResponse) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m StatementResponse) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (m *StatementResponse) GetManifest(ctx context.Context) (ResultManifest, bool)
- func (m *StatementResponse) GetResult(ctx context.Context) (ResultData, bool)
- func (m *StatementResponse) GetStatus(ctx context.Context) (StatementStatus, bool)
- func (m *StatementResponse) SetManifest(ctx context.Context, v ResultManifest)
- func (m *StatementResponse) SetResult(ctx context.Context, v ResultData)
- func (m *StatementResponse) SetStatus(ctx context.Context, v StatementStatus)
- func (to *StatementResponse) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from StatementResponse)
- func (to *StatementResponse) SyncFieldsDuringRead(ctx context.Context, from StatementResponse)
- func (m StatementResponse) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m StatementResponse) Type(ctx context.Context) attr.Type
- type StatementResponse_SdkV2
- func (m StatementResponse_SdkV2) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m StatementResponse_SdkV2) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (m *StatementResponse_SdkV2) GetManifest(ctx context.Context) (ResultManifest_SdkV2, bool)
- func (m *StatementResponse_SdkV2) GetResult(ctx context.Context) (ResultData_SdkV2, bool)
- func (m *StatementResponse_SdkV2) GetStatus(ctx context.Context) (StatementStatus_SdkV2, bool)
- func (m *StatementResponse_SdkV2) SetManifest(ctx context.Context, v ResultManifest_SdkV2)
- func (m *StatementResponse_SdkV2) SetResult(ctx context.Context, v ResultData_SdkV2)
- func (m *StatementResponse_SdkV2) SetStatus(ctx context.Context, v StatementStatus_SdkV2)
- func (to *StatementResponse_SdkV2) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from StatementResponse_SdkV2)
- func (to *StatementResponse_SdkV2) SyncFieldsDuringRead(ctx context.Context, from StatementResponse_SdkV2)
- func (m StatementResponse_SdkV2) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m StatementResponse_SdkV2) Type(ctx context.Context) attr.Type
- type StatementStatus
- func (m StatementStatus) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m StatementStatus) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (m *StatementStatus) GetError(ctx context.Context) (ServiceError, bool)
- func (m *StatementStatus) SetError(ctx context.Context, v ServiceError)
- func (to *StatementStatus) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from StatementStatus)
- func (to *StatementStatus) SyncFieldsDuringRead(ctx context.Context, from StatementStatus)
- func (m StatementStatus) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m StatementStatus) Type(ctx context.Context) attr.Type
- type StatementStatus_SdkV2
- func (m StatementStatus_SdkV2) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m StatementStatus_SdkV2) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (m *StatementStatus_SdkV2) GetError(ctx context.Context) (ServiceError_SdkV2, bool)
- func (m *StatementStatus_SdkV2) SetError(ctx context.Context, v ServiceError_SdkV2)
- func (to *StatementStatus_SdkV2) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from StatementStatus_SdkV2)
- func (to *StatementStatus_SdkV2) SyncFieldsDuringRead(ctx context.Context, from StatementStatus_SdkV2)
- func (m StatementStatus_SdkV2) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m StatementStatus_SdkV2) Type(ctx context.Context) attr.Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseChunkInfo ¶
type BaseChunkInfo struct {
// The number of bytes in the result chunk. This field is not available when
// using `INLINE` disposition.
ByteCount types.Int64 `tfsdk:"byte_count"`
// The position within the sequence of result set chunks.
ChunkIndex types.Int64 `tfsdk:"chunk_index"`
// The number of rows within the result chunk.
RowCount types.Int64 `tfsdk:"row_count"`
// The starting row offset within the result set.
RowOffset types.Int64 `tfsdk:"row_offset"`
}
Metadata of one result set chunk, as listed in the result manifest.
func (BaseChunkInfo) ApplySchemaCustomizations ¶
func (m BaseChunkInfo) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
func (BaseChunkInfo) GetComplexFieldTypes ¶
GetComplexFieldTypes returns a map of the types of elements in complex fields in BaseChunkInfo. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.
func (*BaseChunkInfo) SyncFieldsDuringCreateOrUpdate ¶
func (to *BaseChunkInfo) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from BaseChunkInfo)
func (*BaseChunkInfo) SyncFieldsDuringRead ¶
func (to *BaseChunkInfo) SyncFieldsDuringRead(ctx context.Context, from BaseChunkInfo)
func (BaseChunkInfo) ToObjectValue ¶
func (m BaseChunkInfo) ToObjectValue(ctx context.Context) basetypes.ObjectValue
TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, BaseChunkInfo only implements ToObjectValue() and Type().
type BaseChunkInfo_SdkV2 ¶
type BaseChunkInfo_SdkV2 struct {
// The number of bytes in the result chunk. This field is not available when
// using `INLINE` disposition.
ByteCount types.Int64 `tfsdk:"byte_count"`
// The position within the sequence of result set chunks.
ChunkIndex types.Int64 `tfsdk:"chunk_index"`
// The number of rows within the result chunk.
RowCount types.Int64 `tfsdk:"row_count"`
// The starting row offset within the result set.
RowOffset types.Int64 `tfsdk:"row_offset"`
}
Metadata of one result set chunk, as listed in the result manifest.
func (BaseChunkInfo_SdkV2) ApplySchemaCustomizations ¶
func (m BaseChunkInfo_SdkV2) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
func (BaseChunkInfo_SdkV2) GetComplexFieldTypes ¶
GetComplexFieldTypes returns a map of the types of elements in complex fields in BaseChunkInfo. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.
func (*BaseChunkInfo_SdkV2) SyncFieldsDuringCreateOrUpdate ¶
func (to *BaseChunkInfo_SdkV2) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from BaseChunkInfo_SdkV2)
func (*BaseChunkInfo_SdkV2) SyncFieldsDuringRead ¶
func (to *BaseChunkInfo_SdkV2) SyncFieldsDuringRead(ctx context.Context, from BaseChunkInfo_SdkV2)
func (BaseChunkInfo_SdkV2) ToObjectValue ¶
func (m BaseChunkInfo_SdkV2) ToObjectValue(ctx context.Context) basetypes.ObjectValue
TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, BaseChunkInfo_SdkV2 only implements ToObjectValue() and Type().
type CancelStatementRequest ¶
type CancelStatementRequest struct {
// The statement ID is returned upon successfully submitting a SQL
// statement, and is a required reference for all subsequent calls.
StatementId types.String `tfsdk:"-"`
// The ID of the SQL warehouse that ran the statement.
WarehouseId types.String `tfsdk:"-"`
}
Request to cancel the statement given in the path on the warehouse given in the path.
func (CancelStatementRequest) ApplySchemaCustomizations ¶
func (m CancelStatementRequest) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
func (CancelStatementRequest) GetComplexFieldTypes ¶
GetComplexFieldTypes returns a map of the types of elements in complex fields in CancelStatementRequest. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.
func (*CancelStatementRequest) SyncFieldsDuringCreateOrUpdate ¶
func (to *CancelStatementRequest) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from CancelStatementRequest)
func (*CancelStatementRequest) SyncFieldsDuringRead ¶
func (to *CancelStatementRequest) SyncFieldsDuringRead(ctx context.Context, from CancelStatementRequest)
func (CancelStatementRequest) ToObjectValue ¶
func (m CancelStatementRequest) ToObjectValue(ctx context.Context) basetypes.ObjectValue
TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, CancelStatementRequest only implements ToObjectValue() and Type().
type CancelStatementRequest_SdkV2 ¶
type CancelStatementRequest_SdkV2 struct {
// The statement ID is returned upon successfully submitting a SQL
// statement, and is a required reference for all subsequent calls.
StatementId types.String `tfsdk:"-"`
// The ID of the SQL warehouse that ran the statement.
WarehouseId types.String `tfsdk:"-"`
}
Request to cancel the statement given in the path on the warehouse given in the path.
func (CancelStatementRequest_SdkV2) ApplySchemaCustomizations ¶
func (m CancelStatementRequest_SdkV2) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
func (CancelStatementRequest_SdkV2) GetComplexFieldTypes ¶
func (m CancelStatementRequest_SdkV2) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
GetComplexFieldTypes returns a map of the types of elements in complex fields in CancelStatementRequest. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.
func (*CancelStatementRequest_SdkV2) SyncFieldsDuringCreateOrUpdate ¶
func (to *CancelStatementRequest_SdkV2) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from CancelStatementRequest_SdkV2)
func (*CancelStatementRequest_SdkV2) SyncFieldsDuringRead ¶
func (to *CancelStatementRequest_SdkV2) SyncFieldsDuringRead(ctx context.Context, from CancelStatementRequest_SdkV2)
func (CancelStatementRequest_SdkV2) ToObjectValue ¶
func (m CancelStatementRequest_SdkV2) ToObjectValue(ctx context.Context) basetypes.ObjectValue
TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, CancelStatementRequest_SdkV2 only implements ToObjectValue() and Type().
type CancelStatementResponse ¶
type CancelStatementResponse struct {
}
Empty response to a cancel request. Receiving it means the cancel request was accepted.
func (CancelStatementResponse) ApplySchemaCustomizations ¶
func (m CancelStatementResponse) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
func (CancelStatementResponse) GetComplexFieldTypes ¶
GetComplexFieldTypes returns a map of the types of elements in complex fields in CancelStatementResponse. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.
func (*CancelStatementResponse) SyncFieldsDuringCreateOrUpdate ¶
func (to *CancelStatementResponse) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from CancelStatementResponse)
func (*CancelStatementResponse) SyncFieldsDuringRead ¶
func (to *CancelStatementResponse) SyncFieldsDuringRead(ctx context.Context, from CancelStatementResponse)
func (CancelStatementResponse) ToObjectValue ¶
func (m CancelStatementResponse) ToObjectValue(ctx context.Context) basetypes.ObjectValue
TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, CancelStatementResponse only implements ToObjectValue() and Type().
type CancelStatementResponse_SdkV2 ¶
type CancelStatementResponse_SdkV2 struct {
}
Empty response to a cancel request. Receiving it means the cancel request was accepted.
func (CancelStatementResponse_SdkV2) ApplySchemaCustomizations ¶
func (m CancelStatementResponse_SdkV2) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
func (CancelStatementResponse_SdkV2) GetComplexFieldTypes ¶
func (m CancelStatementResponse_SdkV2) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
GetComplexFieldTypes returns a map of the types of elements in complex fields in CancelStatementResponse. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.
func (*CancelStatementResponse_SdkV2) SyncFieldsDuringCreateOrUpdate ¶
func (to *CancelStatementResponse_SdkV2) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from CancelStatementResponse_SdkV2)
func (*CancelStatementResponse_SdkV2) SyncFieldsDuringRead ¶
func (to *CancelStatementResponse_SdkV2) SyncFieldsDuringRead(ctx context.Context, from CancelStatementResponse_SdkV2)
func (CancelStatementResponse_SdkV2) ToObjectValue ¶
func (m CancelStatementResponse_SdkV2) ToObjectValue(ctx context.Context) basetypes.ObjectValue
TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, CancelStatementResponse_SdkV2 only implements ToObjectValue() and Type().
type ColumnInfo ¶
type ColumnInfo struct {
// The name of the column.
Name types.String `tfsdk:"name"`
// The ordinal position of the column (starting at position 0).
Position types.Int64 `tfsdk:"position"`
// The format of the interval type.
TypeIntervalType types.String `tfsdk:"type_interval_type"`
// The name of the base data type. This doesn't include details for complex
// types such as STRUCT, MAP or ARRAY.
TypeName types.String `tfsdk:"type_name"`
// Specifies the number of digits in a number. This applies to the DECIMAL
// type.
TypePrecision types.Int64 `tfsdk:"type_precision"`
// Specifies the number of digits to the right of the decimal point in a
// number. This applies to the DECIMAL type.
TypeScale types.Int64 `tfsdk:"type_scale"`
// The full SQL type specification.
TypeText types.String `tfsdk:"type_text"`
}
Describes one column of the result set: its name, SQL type, and position.
func (ColumnInfo) ApplySchemaCustomizations ¶
func (m ColumnInfo) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
func (ColumnInfo) GetComplexFieldTypes ¶
GetComplexFieldTypes returns a map of the types of elements in complex fields in ColumnInfo. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.
func (*ColumnInfo) SyncFieldsDuringCreateOrUpdate ¶
func (to *ColumnInfo) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from ColumnInfo)
func (*ColumnInfo) SyncFieldsDuringRead ¶
func (to *ColumnInfo) SyncFieldsDuringRead(ctx context.Context, from ColumnInfo)
func (ColumnInfo) ToObjectValue ¶
func (m ColumnInfo) ToObjectValue(ctx context.Context) basetypes.ObjectValue
TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ColumnInfo only implements ToObjectValue() and Type().
type ColumnInfo_SdkV2 ¶
type ColumnInfo_SdkV2 struct {
// The name of the column.
Name types.String `tfsdk:"name"`
// The ordinal position of the column (starting at position 0).
Position types.Int64 `tfsdk:"position"`
// The format of the interval type.
TypeIntervalType types.String `tfsdk:"type_interval_type"`
// The name of the base data type. This doesn't include details for complex
// types such as STRUCT, MAP or ARRAY.
TypeName types.String `tfsdk:"type_name"`
// Specifies the number of digits in a number. This applies to the DECIMAL
// type.
TypePrecision types.Int64 `tfsdk:"type_precision"`
// Specifies the number of digits to the right of the decimal point in a
// number. This applies to the DECIMAL type.
TypeScale types.Int64 `tfsdk:"type_scale"`
// The full SQL type specification.
TypeText types.String `tfsdk:"type_text"`
}
Describes one column of the result set: its name, SQL type, and position.
func (ColumnInfo_SdkV2) ApplySchemaCustomizations ¶
func (m ColumnInfo_SdkV2) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
func (ColumnInfo_SdkV2) GetComplexFieldTypes ¶
GetComplexFieldTypes returns a map of the types of elements in complex fields in ColumnInfo. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.
func (*ColumnInfo_SdkV2) SyncFieldsDuringCreateOrUpdate ¶
func (to *ColumnInfo_SdkV2) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from ColumnInfo_SdkV2)
func (*ColumnInfo_SdkV2) SyncFieldsDuringRead ¶
func (to *ColumnInfo_SdkV2) SyncFieldsDuringRead(ctx context.Context, from ColumnInfo_SdkV2)
func (ColumnInfo_SdkV2) ToObjectValue ¶
func (m ColumnInfo_SdkV2) ToObjectValue(ctx context.Context) basetypes.ObjectValue
TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ColumnInfo_SdkV2 only implements ToObjectValue() and Type().
type ExecuteStatementRequest ¶
type ExecuteStatementRequest struct {
// Applies the given byte limit to the statement's result size. Byte counts
// are based on internal data representations and might not match the final
// size in the requested `format`. If the result was truncated due to the
// byte limit, then `truncated` in the response is set to `true`. When using
// `EXTERNAL_LINKS` disposition, a default `byte_limit` of 100 GiB is
// applied if `byte_limit` is not explicitly set.
ByteLimit types.Int64 `tfsdk:"byte_limit"`
// Sets default catalog for statement execution, similar to [`USE CATALOG`]
// in SQL.
//
// [`USE CATALOG`]: https://docs.databricks.com/sql/language-manual/sql-ref-syntax-ddl-use-catalog.html
Catalog types.String `tfsdk:"catalog"`
// The fetch disposition provides two modes of fetching results: `INLINE`
// and `EXTERNAL_LINKS`.
//
// Statements executed with `INLINE` disposition will return result data
// inline, in `JSON_ARRAY` format, in a series of chunks. If a given
// statement produces a result set with a size larger than 25 MiB, that
// statement execution is aborted, and no result set will be available.
//
// **NOTE** Byte limits are computed based upon internal representations of
// the result set data, and might not match the sizes visible in JSON
// responses.
//
// Statements executed with `EXTERNAL_LINKS` disposition will return result
// data as external links: URLs that point to cloud storage internal to the
// workspace. Using `EXTERNAL_LINKS` disposition allows statements to
// generate arbitrarily sized result sets for fetching up to 100 GiB. The
// resulting links have two important properties:
//
// 1. They point to resources _external_ to the Databricks compute;
// therefore any associated authentication information (typically a personal
// access token, OAuth token, or similar) _must be removed_ when fetching
// from these links.
//
// 2. These are short-lived cloud-storage URLs with a specific expiration,
// indicated in the response. The behavior when attempting to use an expired
// link is cloud specific.
Disposition types.String `tfsdk:"disposition"`
// Statement execution supports three result formats: `JSON_ARRAY`,
// `ARROW_STREAM`, and `CSV`. Set `format` explicitly: on Lakehouse//RT
// warehouses, an omitted `format` with the `INLINE` disposition currently
// returns Arrow data rather than `JSON_ARRAY`.
//
// Important: The formats `ARROW_STREAM` and `CSV` are supported only with
// `EXTERNAL_LINKS` disposition. `JSON_ARRAY` is supported in `INLINE` and
// `EXTERNAL_LINKS` disposition.
//
// When specifying `format=JSON_ARRAY`, result data will be formatted as an
// array of arrays of values, where each value is either the *string
// representation* of a value, or `null`. For example, the output of `SELECT
// concat('id-', id) AS strCol, id AS intCol, null AS nullCol FROM range(3)`
// would look like this:
//
// “` [ [ "id-1", "1", null ], [ "id-2", "2", null ], [ "id-3", "3", null
// ], ] “`
//
// When specifying `format=JSON_ARRAY` and `disposition=EXTERNAL_LINKS`,
// each chunk in the result contains compact JSON with no indentation or
// extra whitespace.
//
// When specifying `format=ARROW_STREAM` and `disposition=EXTERNAL_LINKS`,
// each chunk in the result will be formatted as Apache Arrow Stream. See
// the [Apache Arrow streaming format].
//
// When specifying `format=CSV` and `disposition=EXTERNAL_LINKS`, each chunk
// in the result will be a CSV according to [RFC 4180] standard. All column
// values will have *string representation* similar to the `JSON_ARRAY`
// format, and `null` values will be encoded as “null”. Only the first
// chunk in the result would contain a header row with column names. For
// example, the output of `SELECT concat('id-', id) AS strCol, id AS intCol,
// null as nullCol FROM range(3)` would look like this:
//
// “` strCol,intCol,nullCol id-1,1,null id-2,2,null id-3,3,null “`
//
// [Apache Arrow streaming format]: https://arrow.apache.org/docs/format/Columnar.html#ipc-streaming-format
// [RFC 4180]: https://www.rfc-editor.org/rfc/rfc4180
Format types.String `tfsdk:"format"`
// When `wait_timeout > 0s`, the call will block up to the specified time.
// If the statement execution doesn't finish within this time,
// `on_wait_timeout` determines whether the execution should continue or be
// canceled. When set to `CONTINUE`, the statement execution continues
// asynchronously and the call returns a statement ID which can be used for
// polling the statement status. When set to `CANCEL`, the statement
// execution is canceled and the call returns with a `CANCELED` state.
// Lakehouse//RT warehouses currently don't support `CANCEL`: the statement
// keeps running as with `CONTINUE`.
OnWaitTimeout types.String `tfsdk:"on_wait_timeout"`
// A list of parameters to pass into a SQL statement containing parameter
// markers. A parameter consists of a name, a value, and optionally a type.
// To represent a NULL value, the `value` field may be omitted or set to
// `null` explicitly. If the `type` field is omitted, the value is
// interpreted as a string.
//
// If the type is given, parameters will be checked for type correctness
// according to the given type. A value is correct if the provided string
// can be converted to the requested type using the `cast` function. The
// exact semantics are described in the section [`cast` function] of the SQL
// language reference.
//
// For example, the following statement contains two parameters, `my_name`
// and `my_date`:
//
// “` SELECT * FROM my_table WHERE name = :my_name AND date = :my_date “`
//
// The parameters can be passed in the request body as follows:
//
// ` { ..., "statement": "SELECT * FROM my_table WHERE name = :my_name AND
// date = :my_date", "parameters": [ { "name": "my_name", "value": "the
// name" }, { "name": "my_date", "value": "2020-01-01", "type": "DATE" } ] }
// `
//
// Currently, positional parameters denoted by a `?` marker are not
// supported by the Databricks SQL Statement Execution API.
//
// Also see the section [Parameter markers] of the SQL language reference.
//
// [Parameter markers]: https://docs.databricks.com/sql/language-manual/sql-ref-parameter-marker.html
// [`cast` function]: https://docs.databricks.com/sql/language-manual/functions/cast.html
Parameters types.List `tfsdk:"parameters"`
// An array of query tags to annotate a SQL statement. A query tag consists
// of a non-empty key and, optionally, a value. To represent a NULL value,
// either omit the `value` field or manually set it to `null` or white
// space. Refer to the SQL language reference for the format specification
// of query tags. There's no significance to the order of tags. Only one
// value per key will be recorded. A sequence in excess of 20 query tags
// will be coerced to 20. Example:
//
// { ..., "query_tags": [ { "key": "team", "value": "eng" }, { "key": "some
// key only tag" } ] }
QueryTags types.List `tfsdk:"query_tags"`
// Applies the given row limit to the statement's result set, but unlike the
// `LIMIT` clause in SQL, it also sets the `truncated` field in the response
// to indicate whether the result was trimmed due to the limit or not.
RowLimit types.Int64 `tfsdk:"row_limit"`
// Sets default schema for statement execution, similar to [`USE SCHEMA`] in
// SQL.
//
// [`USE SCHEMA`]: https://docs.databricks.com/sql/language-manual/sql-ref-syntax-ddl-use-schema.html
Schema types.String `tfsdk:"schema"`
// The SQL statement to execute. The statement can optionally be
// parameterized, see `parameters`. The maximum query text size is 16 MiB.
Statement types.String `tfsdk:"statement"`
// The time in seconds the call will wait for the statement's result set as
// `Ns`, where `N` can be set to 0 or to a value between 5 and 50.
//
// When set to `0s`, the statement will execute in asynchronous mode and the
// call will not wait for the execution to finish. In this case, the call
// returns directly with `PENDING` state and a statement ID which can be
// used for polling the statement status.
//
// When set between 5 and 50 seconds, the call will behave synchronously up
// to this timeout and wait for the statement execution to finish. If the
// execution finishes within this time, the call returns immediately with a
// manifest and result data (or a `FAILED` state in case of an execution
// error). If the statement takes longer to execute, `on_wait_timeout`
// determines what should happen after the timeout is reached.
WaitTimeout types.String `tfsdk:"wait_timeout"`
// The ID of the SQL warehouse to run the statement on. Currently, only
// [Lakehouse//RT] warehouses are supported. See also [What are SQL
// warehouses?].
//
// [Lakehouse//RT]: https://docs.databricks.com/compute/sql-warehouse/real-time.html
// [What are SQL warehouses?]: https://docs.databricks.com/sql/admin/warehouse-type.html
WarehouseId types.String `tfsdk:"-"`
}
Request to execute a SQL statement on the warehouse given in the path.
func (ExecuteStatementRequest) ApplySchemaCustomizations ¶
func (m ExecuteStatementRequest) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
func (ExecuteStatementRequest) GetComplexFieldTypes ¶
GetComplexFieldTypes returns a map of the types of elements in complex fields in ExecuteStatementRequest. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.
func (*ExecuteStatementRequest) GetParameters ¶
func (m *ExecuteStatementRequest) GetParameters(ctx context.Context) ([]StatementParameter, bool)
GetParameters returns the value of the Parameters field in ExecuteStatementRequest as a slice of StatementParameter values. If the field is unknown or null, the boolean return value is false.
func (*ExecuteStatementRequest) GetQueryTags ¶
func (m *ExecuteStatementRequest) GetQueryTags(ctx context.Context) ([]QueryTag, bool)
GetQueryTags returns the value of the QueryTags field in ExecuteStatementRequest as a slice of QueryTag values. If the field is unknown or null, the boolean return value is false.
func (*ExecuteStatementRequest) SetParameters ¶
func (m *ExecuteStatementRequest) SetParameters(ctx context.Context, v []StatementParameter)
SetParameters sets the value of the Parameters field in ExecuteStatementRequest.
func (*ExecuteStatementRequest) SetQueryTags ¶
func (m *ExecuteStatementRequest) SetQueryTags(ctx context.Context, v []QueryTag)
SetQueryTags sets the value of the QueryTags field in ExecuteStatementRequest.
func (*ExecuteStatementRequest) SyncFieldsDuringCreateOrUpdate ¶
func (to *ExecuteStatementRequest) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from ExecuteStatementRequest)
func (*ExecuteStatementRequest) SyncFieldsDuringRead ¶
func (to *ExecuteStatementRequest) SyncFieldsDuringRead(ctx context.Context, from ExecuteStatementRequest)
func (ExecuteStatementRequest) ToObjectValue ¶
func (m ExecuteStatementRequest) ToObjectValue(ctx context.Context) basetypes.ObjectValue
TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ExecuteStatementRequest only implements ToObjectValue() and Type().
type ExecuteStatementRequest_SdkV2 ¶
type ExecuteStatementRequest_SdkV2 struct {
// Applies the given byte limit to the statement's result size. Byte counts
// are based on internal data representations and might not match the final
// size in the requested `format`. If the result was truncated due to the
// byte limit, then `truncated` in the response is set to `true`. When using
// `EXTERNAL_LINKS` disposition, a default `byte_limit` of 100 GiB is
// applied if `byte_limit` is not explicitly set.
ByteLimit types.Int64 `tfsdk:"byte_limit"`
// Sets default catalog for statement execution, similar to [`USE CATALOG`]
// in SQL.
//
// [`USE CATALOG`]: https://docs.databricks.com/sql/language-manual/sql-ref-syntax-ddl-use-catalog.html
Catalog types.String `tfsdk:"catalog"`
// The fetch disposition provides two modes of fetching results: `INLINE`
// and `EXTERNAL_LINKS`.
//
// Statements executed with `INLINE` disposition will return result data
// inline, in `JSON_ARRAY` format, in a series of chunks. If a given
// statement produces a result set with a size larger than 25 MiB, that
// statement execution is aborted, and no result set will be available.
//
// **NOTE** Byte limits are computed based upon internal representations of
// the result set data, and might not match the sizes visible in JSON
// responses.
//
// Statements executed with `EXTERNAL_LINKS` disposition will return result
// data as external links: URLs that point to cloud storage internal to the
// workspace. Using `EXTERNAL_LINKS` disposition allows statements to
// generate arbitrarily sized result sets for fetching up to 100 GiB. The
// resulting links have two important properties:
//
// 1. They point to resources _external_ to the Databricks compute;
// therefore any associated authentication information (typically a personal
// access token, OAuth token, or similar) _must be removed_ when fetching
// from these links.
//
// 2. These are short-lived cloud-storage URLs with a specific expiration,
// indicated in the response. The behavior when attempting to use an expired
// link is cloud specific.
Disposition types.String `tfsdk:"disposition"`
// Statement execution supports three result formats: `JSON_ARRAY`,
// `ARROW_STREAM`, and `CSV`. Set `format` explicitly: on Lakehouse//RT
// warehouses, an omitted `format` with the `INLINE` disposition currently
// returns Arrow data rather than `JSON_ARRAY`.
//
// Important: The formats `ARROW_STREAM` and `CSV` are supported only with
// `EXTERNAL_LINKS` disposition. `JSON_ARRAY` is supported in `INLINE` and
// `EXTERNAL_LINKS` disposition.
//
// When specifying `format=JSON_ARRAY`, result data will be formatted as an
// array of arrays of values, where each value is either the *string
// representation* of a value, or `null`. For example, the output of `SELECT
// concat('id-', id) AS strCol, id AS intCol, null AS nullCol FROM range(3)`
// would look like this:
//
// “` [ [ "id-1", "1", null ], [ "id-2", "2", null ], [ "id-3", "3", null
// ], ] “`
//
// When specifying `format=JSON_ARRAY` and `disposition=EXTERNAL_LINKS`,
// each chunk in the result contains compact JSON with no indentation or
// extra whitespace.
//
// When specifying `format=ARROW_STREAM` and `disposition=EXTERNAL_LINKS`,
// each chunk in the result will be formatted as Apache Arrow Stream. See
// the [Apache Arrow streaming format].
//
// When specifying `format=CSV` and `disposition=EXTERNAL_LINKS`, each chunk
// in the result will be a CSV according to [RFC 4180] standard. All column
// values will have *string representation* similar to the `JSON_ARRAY`
// format, and `null` values will be encoded as “null”. Only the first
// chunk in the result would contain a header row with column names. For
// example, the output of `SELECT concat('id-', id) AS strCol, id AS intCol,
// null as nullCol FROM range(3)` would look like this:
//
// “` strCol,intCol,nullCol id-1,1,null id-2,2,null id-3,3,null “`
//
// [Apache Arrow streaming format]: https://arrow.apache.org/docs/format/Columnar.html#ipc-streaming-format
// [RFC 4180]: https://www.rfc-editor.org/rfc/rfc4180
Format types.String `tfsdk:"format"`
// When `wait_timeout > 0s`, the call will block up to the specified time.
// If the statement execution doesn't finish within this time,
// `on_wait_timeout` determines whether the execution should continue or be
// canceled. When set to `CONTINUE`, the statement execution continues
// asynchronously and the call returns a statement ID which can be used for
// polling the statement status. When set to `CANCEL`, the statement
// execution is canceled and the call returns with a `CANCELED` state.
// Lakehouse//RT warehouses currently don't support `CANCEL`: the statement
// keeps running as with `CONTINUE`.
OnWaitTimeout types.String `tfsdk:"on_wait_timeout"`
// A list of parameters to pass into a SQL statement containing parameter
// markers. A parameter consists of a name, a value, and optionally a type.
// To represent a NULL value, the `value` field may be omitted or set to
// `null` explicitly. If the `type` field is omitted, the value is
// interpreted as a string.
//
// If the type is given, parameters will be checked for type correctness
// according to the given type. A value is correct if the provided string
// can be converted to the requested type using the `cast` function. The
// exact semantics are described in the section [`cast` function] of the SQL
// language reference.
//
// For example, the following statement contains two parameters, `my_name`
// and `my_date`:
//
// “` SELECT * FROM my_table WHERE name = :my_name AND date = :my_date “`
//
// The parameters can be passed in the request body as follows:
//
// ` { ..., "statement": "SELECT * FROM my_table WHERE name = :my_name AND
// date = :my_date", "parameters": [ { "name": "my_name", "value": "the
// name" }, { "name": "my_date", "value": "2020-01-01", "type": "DATE" } ] }
// `
//
// Currently, positional parameters denoted by a `?` marker are not
// supported by the Databricks SQL Statement Execution API.
//
// Also see the section [Parameter markers] of the SQL language reference.
//
// [Parameter markers]: https://docs.databricks.com/sql/language-manual/sql-ref-parameter-marker.html
// [`cast` function]: https://docs.databricks.com/sql/language-manual/functions/cast.html
Parameters types.List `tfsdk:"parameters"`
// An array of query tags to annotate a SQL statement. A query tag consists
// of a non-empty key and, optionally, a value. To represent a NULL value,
// either omit the `value` field or manually set it to `null` or white
// space. Refer to the SQL language reference for the format specification
// of query tags. There's no significance to the order of tags. Only one
// value per key will be recorded. A sequence in excess of 20 query tags
// will be coerced to 20. Example:
//
// { ..., "query_tags": [ { "key": "team", "value": "eng" }, { "key": "some
// key only tag" } ] }
QueryTags types.List `tfsdk:"query_tags"`
// Applies the given row limit to the statement's result set, but unlike the
// `LIMIT` clause in SQL, it also sets the `truncated` field in the response
// to indicate whether the result was trimmed due to the limit or not.
RowLimit types.Int64 `tfsdk:"row_limit"`
// Sets default schema for statement execution, similar to [`USE SCHEMA`] in
// SQL.
//
// [`USE SCHEMA`]: https://docs.databricks.com/sql/language-manual/sql-ref-syntax-ddl-use-schema.html
Schema types.String `tfsdk:"schema"`
// The SQL statement to execute. The statement can optionally be
// parameterized, see `parameters`. The maximum query text size is 16 MiB.
Statement types.String `tfsdk:"statement"`
// The time in seconds the call will wait for the statement's result set as
// `Ns`, where `N` can be set to 0 or to a value between 5 and 50.
//
// When set to `0s`, the statement will execute in asynchronous mode and the
// call will not wait for the execution to finish. In this case, the call
// returns directly with `PENDING` state and a statement ID which can be
// used for polling the statement status.
//
// When set between 5 and 50 seconds, the call will behave synchronously up
// to this timeout and wait for the statement execution to finish. If the
// execution finishes within this time, the call returns immediately with a
// manifest and result data (or a `FAILED` state in case of an execution
// error). If the statement takes longer to execute, `on_wait_timeout`
// determines what should happen after the timeout is reached.
WaitTimeout types.String `tfsdk:"wait_timeout"`
// The ID of the SQL warehouse to run the statement on. Currently, only
// [Lakehouse//RT] warehouses are supported. See also [What are SQL
// warehouses?].
//
// [Lakehouse//RT]: https://docs.databricks.com/compute/sql-warehouse/real-time.html
// [What are SQL warehouses?]: https://docs.databricks.com/sql/admin/warehouse-type.html
WarehouseId types.String `tfsdk:"-"`
}
Request to execute a SQL statement on the warehouse given in the path.
func (ExecuteStatementRequest_SdkV2) ApplySchemaCustomizations ¶
func (m ExecuteStatementRequest_SdkV2) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
func (ExecuteStatementRequest_SdkV2) GetComplexFieldTypes ¶
func (m ExecuteStatementRequest_SdkV2) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
GetComplexFieldTypes returns a map of the types of elements in complex fields in ExecuteStatementRequest. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.
func (*ExecuteStatementRequest_SdkV2) GetParameters ¶
func (m *ExecuteStatementRequest_SdkV2) GetParameters(ctx context.Context) ([]StatementParameter_SdkV2, bool)
GetParameters returns the value of the Parameters field in ExecuteStatementRequest_SdkV2 as a slice of StatementParameter_SdkV2 values. If the field is unknown or null, the boolean return value is false.
func (*ExecuteStatementRequest_SdkV2) GetQueryTags ¶
func (m *ExecuteStatementRequest_SdkV2) GetQueryTags(ctx context.Context) ([]QueryTag_SdkV2, bool)
GetQueryTags returns the value of the QueryTags field in ExecuteStatementRequest_SdkV2 as a slice of QueryTag_SdkV2 values. If the field is unknown or null, the boolean return value is false.
func (*ExecuteStatementRequest_SdkV2) SetParameters ¶
func (m *ExecuteStatementRequest_SdkV2) SetParameters(ctx context.Context, v []StatementParameter_SdkV2)
SetParameters sets the value of the Parameters field in ExecuteStatementRequest_SdkV2.
func (*ExecuteStatementRequest_SdkV2) SetQueryTags ¶
func (m *ExecuteStatementRequest_SdkV2) SetQueryTags(ctx context.Context, v []QueryTag_SdkV2)
SetQueryTags sets the value of the QueryTags field in ExecuteStatementRequest_SdkV2.
func (*ExecuteStatementRequest_SdkV2) SyncFieldsDuringCreateOrUpdate ¶
func (to *ExecuteStatementRequest_SdkV2) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from ExecuteStatementRequest_SdkV2)
func (*ExecuteStatementRequest_SdkV2) SyncFieldsDuringRead ¶
func (to *ExecuteStatementRequest_SdkV2) SyncFieldsDuringRead(ctx context.Context, from ExecuteStatementRequest_SdkV2)
func (ExecuteStatementRequest_SdkV2) ToObjectValue ¶
func (m ExecuteStatementRequest_SdkV2) ToObjectValue(ctx context.Context) basetypes.ObjectValue
TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ExecuteStatementRequest_SdkV2 only implements ToObjectValue() and Type().
type ExternalLink ¶
type ExternalLink struct {
// The number of bytes in the result chunk. This field is not available when
// using `INLINE` disposition.
ByteCount types.Int64 `tfsdk:"byte_count"`
// The position within the sequence of result set chunks.
ChunkIndex types.Int64 `tfsdk:"chunk_index"`
// Indicates the date-time that the given external link will expire and
// become invalid, after which point a new `external_link` must be
// requested.
Expiration types.String `tfsdk:"expiration"`
// A short-lived cloud-storage URL pointing to a chunk of result data,
// hosted by an external service, with a short expiration time (<= 15
// minutes). As this URL contains a temporary credential, it should be
// considered sensitive and the client should not expose this URL in a log.
ExternalLink types.String `tfsdk:"external_link"`
// HTTP headers that must be included with a GET request to the
// `external_link`. Each header is provided as a key-value pair. Headers are
// typically used to pass a decryption key to the external service. The
// values of these headers should be considered sensitive and the client
// should not expose these values in a log.
HttpHeaders types.Map `tfsdk:"http_headers"`
// When fetching, provides the `chunk_index` for the _next_ chunk. If
// absent, indicates there are no more chunks. The next chunk can be fetched
// with a get-result-chunk request for that index.
NextChunkIndex types.Int64 `tfsdk:"next_chunk_index"`
// When fetching, provides a link to fetch the _next_ chunk. If absent,
// indicates there are no more chunks. This link is an absolute `path` to be
// joined with your `$DATABRICKS_HOST`, and should be treated as an opaque
// link. This is an alternative to using `next_chunk_index`. Lakehouse//RT
// warehouses currently don't return this field; use `next_chunk_index`
// instead.
NextChunkInternalLink types.String `tfsdk:"next_chunk_internal_link"`
// The number of rows within the result chunk.
RowCount types.Int64 `tfsdk:"row_count"`
// The starting row offset within the result set.
RowOffset types.Int64 `tfsdk:"row_offset"`
}
A short-lived cloud-storage link to one chunk of result data.
func (ExternalLink) ApplySchemaCustomizations ¶
func (m ExternalLink) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
func (ExternalLink) GetComplexFieldTypes ¶
GetComplexFieldTypes returns a map of the types of elements in complex fields in ExternalLink. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.
func (*ExternalLink) GetHttpHeaders ¶
GetHttpHeaders returns the value of the HttpHeaders field in ExternalLink as a map of string to types.String values. If the field is unknown or null, the boolean return value is false.
func (*ExternalLink) SetHttpHeaders ¶
SetHttpHeaders sets the value of the HttpHeaders field in ExternalLink.
func (*ExternalLink) SyncFieldsDuringCreateOrUpdate ¶
func (to *ExternalLink) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from ExternalLink)
func (*ExternalLink) SyncFieldsDuringRead ¶
func (to *ExternalLink) SyncFieldsDuringRead(ctx context.Context, from ExternalLink)
func (ExternalLink) ToObjectValue ¶
func (m ExternalLink) ToObjectValue(ctx context.Context) basetypes.ObjectValue
TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ExternalLink only implements ToObjectValue() and Type().
type ExternalLink_SdkV2 ¶
type ExternalLink_SdkV2 struct {
// The number of bytes in the result chunk. This field is not available when
// using `INLINE` disposition.
ByteCount types.Int64 `tfsdk:"byte_count"`
// The position within the sequence of result set chunks.
ChunkIndex types.Int64 `tfsdk:"chunk_index"`
// Indicates the date-time that the given external link will expire and
// become invalid, after which point a new `external_link` must be
// requested.
Expiration types.String `tfsdk:"expiration"`
// A short-lived cloud-storage URL pointing to a chunk of result data,
// hosted by an external service, with a short expiration time (<= 15
// minutes). As this URL contains a temporary credential, it should be
// considered sensitive and the client should not expose this URL in a log.
ExternalLink types.String `tfsdk:"external_link"`
// HTTP headers that must be included with a GET request to the
// `external_link`. Each header is provided as a key-value pair. Headers are
// typically used to pass a decryption key to the external service. The
// values of these headers should be considered sensitive and the client
// should not expose these values in a log.
HttpHeaders types.Map `tfsdk:"http_headers"`
// When fetching, provides the `chunk_index` for the _next_ chunk. If
// absent, indicates there are no more chunks. The next chunk can be fetched
// with a get-result-chunk request for that index.
NextChunkIndex types.Int64 `tfsdk:"next_chunk_index"`
// When fetching, provides a link to fetch the _next_ chunk. If absent,
// indicates there are no more chunks. This link is an absolute `path` to be
// joined with your `$DATABRICKS_HOST`, and should be treated as an opaque
// link. This is an alternative to using `next_chunk_index`. Lakehouse//RT
// warehouses currently don't return this field; use `next_chunk_index`
// instead.
NextChunkInternalLink types.String `tfsdk:"next_chunk_internal_link"`
// The number of rows within the result chunk.
RowCount types.Int64 `tfsdk:"row_count"`
// The starting row offset within the result set.
RowOffset types.Int64 `tfsdk:"row_offset"`
}
A short-lived cloud-storage link to one chunk of result data.
func (ExternalLink_SdkV2) ApplySchemaCustomizations ¶
func (m ExternalLink_SdkV2) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
func (ExternalLink_SdkV2) GetComplexFieldTypes ¶
GetComplexFieldTypes returns a map of the types of elements in complex fields in ExternalLink. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.
func (*ExternalLink_SdkV2) GetHttpHeaders ¶
GetHttpHeaders returns the value of the HttpHeaders field in ExternalLink_SdkV2 as a map of string to types.String values. If the field is unknown or null, the boolean return value is false.
func (*ExternalLink_SdkV2) SetHttpHeaders ¶
SetHttpHeaders sets the value of the HttpHeaders field in ExternalLink_SdkV2.
func (*ExternalLink_SdkV2) SyncFieldsDuringCreateOrUpdate ¶
func (to *ExternalLink_SdkV2) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from ExternalLink_SdkV2)
func (*ExternalLink_SdkV2) SyncFieldsDuringRead ¶
func (to *ExternalLink_SdkV2) SyncFieldsDuringRead(ctx context.Context, from ExternalLink_SdkV2)
func (ExternalLink_SdkV2) ToObjectValue ¶
func (m ExternalLink_SdkV2) ToObjectValue(ctx context.Context) basetypes.ObjectValue
TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ExternalLink_SdkV2 only implements ToObjectValue() and Type().
type GetResultDataRequest ¶
type GetResultDataRequest struct {
// The zero-based index of the result chunk to fetch.
ChunkIndex types.Int64 `tfsdk:"-"`
// The statement ID is returned upon successfully submitting a SQL
// statement, and is a required reference for all subsequent calls.
StatementId types.String `tfsdk:"-"`
// The ID of the SQL warehouse that ran the statement.
WarehouseId types.String `tfsdk:"-"`
}
func (GetResultDataRequest) ApplySchemaCustomizations ¶
func (m GetResultDataRequest) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
func (GetResultDataRequest) GetComplexFieldTypes ¶
GetComplexFieldTypes returns a map of the types of elements in complex fields in GetResultDataRequest. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.
func (*GetResultDataRequest) SyncFieldsDuringCreateOrUpdate ¶
func (to *GetResultDataRequest) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from GetResultDataRequest)
func (*GetResultDataRequest) SyncFieldsDuringRead ¶
func (to *GetResultDataRequest) SyncFieldsDuringRead(ctx context.Context, from GetResultDataRequest)
func (GetResultDataRequest) ToObjectValue ¶
func (m GetResultDataRequest) ToObjectValue(ctx context.Context) basetypes.ObjectValue
TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, GetResultDataRequest only implements ToObjectValue() and Type().
type GetResultDataRequest_SdkV2 ¶
type GetResultDataRequest_SdkV2 struct {
// The zero-based index of the result chunk to fetch.
ChunkIndex types.Int64 `tfsdk:"-"`
// The statement ID is returned upon successfully submitting a SQL
// statement, and is a required reference for all subsequent calls.
StatementId types.String `tfsdk:"-"`
// The ID of the SQL warehouse that ran the statement.
WarehouseId types.String `tfsdk:"-"`
}
func (GetResultDataRequest_SdkV2) ApplySchemaCustomizations ¶
func (m GetResultDataRequest_SdkV2) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
func (GetResultDataRequest_SdkV2) GetComplexFieldTypes ¶
func (m GetResultDataRequest_SdkV2) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
GetComplexFieldTypes returns a map of the types of elements in complex fields in GetResultDataRequest. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.
func (*GetResultDataRequest_SdkV2) SyncFieldsDuringCreateOrUpdate ¶
func (to *GetResultDataRequest_SdkV2) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from GetResultDataRequest_SdkV2)
func (*GetResultDataRequest_SdkV2) SyncFieldsDuringRead ¶
func (to *GetResultDataRequest_SdkV2) SyncFieldsDuringRead(ctx context.Context, from GetResultDataRequest_SdkV2)
func (GetResultDataRequest_SdkV2) ToObjectValue ¶
func (m GetResultDataRequest_SdkV2) ToObjectValue(ctx context.Context) basetypes.ObjectValue
TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, GetResultDataRequest_SdkV2 only implements ToObjectValue() and Type().
type GetStatementResultRequest ¶
type GetStatementResultRequest struct {
// The statement ID is returned upon successfully submitting a SQL
// statement, and is a required reference for all subsequent calls.
StatementId types.String `tfsdk:"-"`
// The ID of the SQL warehouse that ran the statement.
WarehouseId types.String `tfsdk:"-"`
}
func (GetStatementResultRequest) ApplySchemaCustomizations ¶
func (m GetStatementResultRequest) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
func (GetStatementResultRequest) GetComplexFieldTypes ¶
func (m GetStatementResultRequest) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
GetComplexFieldTypes returns a map of the types of elements in complex fields in GetStatementResultRequest. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.
func (*GetStatementResultRequest) SyncFieldsDuringCreateOrUpdate ¶
func (to *GetStatementResultRequest) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from GetStatementResultRequest)
func (*GetStatementResultRequest) SyncFieldsDuringRead ¶
func (to *GetStatementResultRequest) SyncFieldsDuringRead(ctx context.Context, from GetStatementResultRequest)
func (GetStatementResultRequest) ToObjectValue ¶
func (m GetStatementResultRequest) ToObjectValue(ctx context.Context) basetypes.ObjectValue
TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, GetStatementResultRequest only implements ToObjectValue() and Type().
type GetStatementResultRequest_SdkV2 ¶
type GetStatementResultRequest_SdkV2 struct {
// The statement ID is returned upon successfully submitting a SQL
// statement, and is a required reference for all subsequent calls.
StatementId types.String `tfsdk:"-"`
// The ID of the SQL warehouse that ran the statement.
WarehouseId types.String `tfsdk:"-"`
}
func (GetStatementResultRequest_SdkV2) ApplySchemaCustomizations ¶
func (m GetStatementResultRequest_SdkV2) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
func (GetStatementResultRequest_SdkV2) GetComplexFieldTypes ¶
func (m GetStatementResultRequest_SdkV2) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
GetComplexFieldTypes returns a map of the types of elements in complex fields in GetStatementResultRequest. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.
func (*GetStatementResultRequest_SdkV2) SyncFieldsDuringCreateOrUpdate ¶
func (to *GetStatementResultRequest_SdkV2) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from GetStatementResultRequest_SdkV2)
func (*GetStatementResultRequest_SdkV2) SyncFieldsDuringRead ¶
func (to *GetStatementResultRequest_SdkV2) SyncFieldsDuringRead(ctx context.Context, from GetStatementResultRequest_SdkV2)
func (GetStatementResultRequest_SdkV2) ToObjectValue ¶
func (m GetStatementResultRequest_SdkV2) ToObjectValue(ctx context.Context) basetypes.ObjectValue
TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, GetStatementResultRequest_SdkV2 only implements ToObjectValue() and Type().
type QueryTag ¶
* A query execution can be annotated with an optional key-value pair to allow users to attribute the executions by key and optional value to filter by. QueryTag is the user-facing representation.
func (QueryTag) ApplySchemaCustomizations ¶
func (m QueryTag) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
func (QueryTag) GetComplexFieldTypes ¶
GetComplexFieldTypes returns a map of the types of elements in complex fields in QueryTag. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.
func (*QueryTag) SyncFieldsDuringCreateOrUpdate ¶
func (*QueryTag) SyncFieldsDuringRead ¶
func (QueryTag) ToObjectValue ¶
func (m QueryTag) ToObjectValue(ctx context.Context) basetypes.ObjectValue
TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, QueryTag only implements ToObjectValue() and Type().
type QueryTag_SdkV2 ¶
* A query execution can be annotated with an optional key-value pair to allow users to attribute the executions by key and optional value to filter by. QueryTag is the user-facing representation.
func (QueryTag_SdkV2) ApplySchemaCustomizations ¶
func (m QueryTag_SdkV2) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
func (QueryTag_SdkV2) GetComplexFieldTypes ¶
GetComplexFieldTypes returns a map of the types of elements in complex fields in QueryTag. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.
func (*QueryTag_SdkV2) SyncFieldsDuringCreateOrUpdate ¶
func (to *QueryTag_SdkV2) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from QueryTag_SdkV2)
func (*QueryTag_SdkV2) SyncFieldsDuringRead ¶
func (to *QueryTag_SdkV2) SyncFieldsDuringRead(ctx context.Context, from QueryTag_SdkV2)
func (QueryTag_SdkV2) ToObjectValue ¶
func (m QueryTag_SdkV2) ToObjectValue(ctx context.Context) basetypes.ObjectValue
TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, QueryTag_SdkV2 only implements ToObjectValue() and Type().
type ResultData ¶
type ResultData struct {
// The number of bytes in the result chunk. This field is not available when
// using `INLINE` disposition.
ByteCount types.Int64 `tfsdk:"byte_count"`
// The position within the sequence of result set chunks.
ChunkIndex types.Int64 `tfsdk:"chunk_index"`
// The `JSON_ARRAY` format is an array of arrays of values, where each
// non-null value is formatted as a string. Null values are encoded as JSON
// `null`.
DataArray types.List `tfsdk:"data_array"`
// Short-lived cloud-storage links to the result data, used with the
// `EXTERNAL_LINKS` disposition.
ExternalLinks types.List `tfsdk:"external_links"`
// When fetching, provides the `chunk_index` for the _next_ chunk. If
// absent, indicates there are no more chunks. The next chunk can be fetched
// with a get-result-chunk request for that index.
NextChunkIndex types.Int64 `tfsdk:"next_chunk_index"`
// When fetching, provides a link to fetch the _next_ chunk. If absent,
// indicates there are no more chunks. This link is an absolute `path` to be
// joined with your `$DATABRICKS_HOST`, and should be treated as an opaque
// link. This is an alternative to using `next_chunk_index`. Lakehouse//RT
// warehouses currently don't return this field; use `next_chunk_index`
// instead.
NextChunkInternalLink types.String `tfsdk:"next_chunk_internal_link"`
// The number of rows within the result chunk.
RowCount types.Int64 `tfsdk:"row_count"`
// The starting row offset within the result set.
RowOffset types.Int64 `tfsdk:"row_offset"`
}
Contains the result data of a single chunk when using `INLINE` disposition. When using `EXTERNAL_LINKS` disposition, the array `external_links` is used instead to provide short-lived cloud-storage URLs to the result data in cloud storage. Exactly one of these alternatives is used. (While the `external_links` array prepares the API to return multiple links in a single response, currently only a single link is returned.)
func (ResultData) ApplySchemaCustomizations ¶
func (m ResultData) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
func (ResultData) GetComplexFieldTypes ¶
GetComplexFieldTypes returns a map of the types of elements in complex fields in ResultData. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.
func (*ResultData) GetDataArray ¶
GetDataArray returns the value of the DataArray field in ResultData as a slice of types.Object values. If the field is unknown or null, the boolean return value is false.
func (*ResultData) GetExternalLinks ¶
func (m *ResultData) GetExternalLinks(ctx context.Context) ([]ExternalLink, bool)
GetExternalLinks returns the value of the ExternalLinks field in ResultData as a slice of ExternalLink values. If the field is unknown or null, the boolean return value is false.
func (*ResultData) SetDataArray ¶
func (m *ResultData) SetDataArray(ctx context.Context, v []types.Object)
SetDataArray sets the value of the DataArray field in ResultData.
func (*ResultData) SetExternalLinks ¶
func (m *ResultData) SetExternalLinks(ctx context.Context, v []ExternalLink)
SetExternalLinks sets the value of the ExternalLinks field in ResultData.
func (*ResultData) SyncFieldsDuringCreateOrUpdate ¶
func (to *ResultData) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from ResultData)
func (*ResultData) SyncFieldsDuringRead ¶
func (to *ResultData) SyncFieldsDuringRead(ctx context.Context, from ResultData)
func (ResultData) ToObjectValue ¶
func (m ResultData) ToObjectValue(ctx context.Context) basetypes.ObjectValue
TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ResultData only implements ToObjectValue() and Type().
type ResultData_SdkV2 ¶
type ResultData_SdkV2 struct {
// The number of bytes in the result chunk. This field is not available when
// using `INLINE` disposition.
ByteCount types.Int64 `tfsdk:"byte_count"`
// The position within the sequence of result set chunks.
ChunkIndex types.Int64 `tfsdk:"chunk_index"`
// The `JSON_ARRAY` format is an array of arrays of values, where each
// non-null value is formatted as a string. Null values are encoded as JSON
// `null`.
DataArray types.List `tfsdk:"data_array"`
// Short-lived cloud-storage links to the result data, used with the
// `EXTERNAL_LINKS` disposition.
ExternalLinks types.List `tfsdk:"external_links"`
// When fetching, provides the `chunk_index` for the _next_ chunk. If
// absent, indicates there are no more chunks. The next chunk can be fetched
// with a get-result-chunk request for that index.
NextChunkIndex types.Int64 `tfsdk:"next_chunk_index"`
// When fetching, provides a link to fetch the _next_ chunk. If absent,
// indicates there are no more chunks. This link is an absolute `path` to be
// joined with your `$DATABRICKS_HOST`, and should be treated as an opaque
// link. This is an alternative to using `next_chunk_index`. Lakehouse//RT
// warehouses currently don't return this field; use `next_chunk_index`
// instead.
NextChunkInternalLink types.String `tfsdk:"next_chunk_internal_link"`
// The number of rows within the result chunk.
RowCount types.Int64 `tfsdk:"row_count"`
// The starting row offset within the result set.
RowOffset types.Int64 `tfsdk:"row_offset"`
}
Contains the result data of a single chunk when using `INLINE` disposition. When using `EXTERNAL_LINKS` disposition, the array `external_links` is used instead to provide short-lived cloud-storage URLs to the result data in cloud storage. Exactly one of these alternatives is used. (While the `external_links` array prepares the API to return multiple links in a single response, currently only a single link is returned.)
func (ResultData_SdkV2) ApplySchemaCustomizations ¶
func (m ResultData_SdkV2) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
func (ResultData_SdkV2) GetComplexFieldTypes ¶
GetComplexFieldTypes returns a map of the types of elements in complex fields in ResultData. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.
func (*ResultData_SdkV2) GetDataArray ¶
GetDataArray returns the value of the DataArray field in ResultData_SdkV2 as a slice of types.Object values. If the field is unknown or null, the boolean return value is false.
func (*ResultData_SdkV2) GetExternalLinks ¶
func (m *ResultData_SdkV2) GetExternalLinks(ctx context.Context) ([]ExternalLink_SdkV2, bool)
GetExternalLinks returns the value of the ExternalLinks field in ResultData_SdkV2 as a slice of ExternalLink_SdkV2 values. If the field is unknown or null, the boolean return value is false.
func (*ResultData_SdkV2) SetDataArray ¶
func (m *ResultData_SdkV2) SetDataArray(ctx context.Context, v []types.Object)
SetDataArray sets the value of the DataArray field in ResultData_SdkV2.
func (*ResultData_SdkV2) SetExternalLinks ¶
func (m *ResultData_SdkV2) SetExternalLinks(ctx context.Context, v []ExternalLink_SdkV2)
SetExternalLinks sets the value of the ExternalLinks field in ResultData_SdkV2.
func (*ResultData_SdkV2) SyncFieldsDuringCreateOrUpdate ¶
func (to *ResultData_SdkV2) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from ResultData_SdkV2)
func (*ResultData_SdkV2) SyncFieldsDuringRead ¶
func (to *ResultData_SdkV2) SyncFieldsDuringRead(ctx context.Context, from ResultData_SdkV2)
func (ResultData_SdkV2) ToObjectValue ¶
func (m ResultData_SdkV2) ToObjectValue(ctx context.Context) basetypes.ObjectValue
TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ResultData_SdkV2 only implements ToObjectValue() and Type().
type ResultManifest ¶
type ResultManifest struct {
// Array of result set chunk metadata.
Chunks types.List `tfsdk:"chunks"`
// The format of the result data, as requested with `format`.
Format types.String `tfsdk:"format"`
// The schema of the result set: the ordered list of column descriptions.
Schema types.Object `tfsdk:"schema"`
// The total number of bytes in the result set. This field is not available
// when using `INLINE` disposition.
TotalByteCount types.Int64 `tfsdk:"total_byte_count"`
// The total number of chunks that the result set has been divided into.
TotalChunkCount types.Int64 `tfsdk:"total_chunk_count"`
// The total number of rows in the result set.
TotalRowCount types.Int64 `tfsdk:"total_row_count"`
// Indicates whether the result is truncated due to `row_limit` or
// `byte_limit`.
Truncated types.Bool `tfsdk:"truncated"`
}
The result manifest provides schema and metadata for the result set.
func (ResultManifest) ApplySchemaCustomizations ¶
func (m ResultManifest) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
func (*ResultManifest) GetChunks ¶
func (m *ResultManifest) GetChunks(ctx context.Context) ([]BaseChunkInfo, bool)
GetChunks returns the value of the Chunks field in ResultManifest as a slice of BaseChunkInfo values. If the field is unknown or null, the boolean return value is false.
func (ResultManifest) GetComplexFieldTypes ¶
GetComplexFieldTypes returns a map of the types of elements in complex fields in ResultManifest. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.
func (*ResultManifest) GetSchema ¶
func (m *ResultManifest) GetSchema(ctx context.Context) (Schema, bool)
GetSchema returns the value of the Schema field in ResultManifest as a Schema value. If the field is unknown or null, the boolean return value is false.
func (*ResultManifest) SetChunks ¶
func (m *ResultManifest) SetChunks(ctx context.Context, v []BaseChunkInfo)
SetChunks sets the value of the Chunks field in ResultManifest.
func (*ResultManifest) SetSchema ¶
func (m *ResultManifest) SetSchema(ctx context.Context, v Schema)
SetSchema sets the value of the Schema field in ResultManifest.
func (*ResultManifest) SyncFieldsDuringCreateOrUpdate ¶
func (to *ResultManifest) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from ResultManifest)
func (*ResultManifest) SyncFieldsDuringRead ¶
func (to *ResultManifest) SyncFieldsDuringRead(ctx context.Context, from ResultManifest)
func (ResultManifest) ToObjectValue ¶
func (m ResultManifest) ToObjectValue(ctx context.Context) basetypes.ObjectValue
TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ResultManifest only implements ToObjectValue() and Type().
type ResultManifest_SdkV2 ¶
type ResultManifest_SdkV2 struct {
// Array of result set chunk metadata.
Chunks types.List `tfsdk:"chunks"`
// The format of the result data, as requested with `format`.
Format types.String `tfsdk:"format"`
// The schema of the result set: the ordered list of column descriptions.
Schema types.List `tfsdk:"schema"`
// The total number of bytes in the result set. This field is not available
// when using `INLINE` disposition.
TotalByteCount types.Int64 `tfsdk:"total_byte_count"`
// The total number of chunks that the result set has been divided into.
TotalChunkCount types.Int64 `tfsdk:"total_chunk_count"`
// The total number of rows in the result set.
TotalRowCount types.Int64 `tfsdk:"total_row_count"`
// Indicates whether the result is truncated due to `row_limit` or
// `byte_limit`.
Truncated types.Bool `tfsdk:"truncated"`
}
The result manifest provides schema and metadata for the result set.
func (ResultManifest_SdkV2) ApplySchemaCustomizations ¶
func (m ResultManifest_SdkV2) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
func (*ResultManifest_SdkV2) GetChunks ¶
func (m *ResultManifest_SdkV2) GetChunks(ctx context.Context) ([]BaseChunkInfo_SdkV2, bool)
GetChunks returns the value of the Chunks field in ResultManifest_SdkV2 as a slice of BaseChunkInfo_SdkV2 values. If the field is unknown or null, the boolean return value is false.
func (ResultManifest_SdkV2) GetComplexFieldTypes ¶
GetComplexFieldTypes returns a map of the types of elements in complex fields in ResultManifest. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.
func (*ResultManifest_SdkV2) GetSchema ¶
func (m *ResultManifest_SdkV2) GetSchema(ctx context.Context) (Schema_SdkV2, bool)
GetSchema returns the value of the Schema field in ResultManifest_SdkV2 as a Schema_SdkV2 value. If the field is unknown or null, the boolean return value is false.
func (*ResultManifest_SdkV2) SetChunks ¶
func (m *ResultManifest_SdkV2) SetChunks(ctx context.Context, v []BaseChunkInfo_SdkV2)
SetChunks sets the value of the Chunks field in ResultManifest_SdkV2.
func (*ResultManifest_SdkV2) SetSchema ¶
func (m *ResultManifest_SdkV2) SetSchema(ctx context.Context, v Schema_SdkV2)
SetSchema sets the value of the Schema field in ResultManifest_SdkV2.
func (*ResultManifest_SdkV2) SyncFieldsDuringCreateOrUpdate ¶
func (to *ResultManifest_SdkV2) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from ResultManifest_SdkV2)
func (*ResultManifest_SdkV2) SyncFieldsDuringRead ¶
func (to *ResultManifest_SdkV2) SyncFieldsDuringRead(ctx context.Context, from ResultManifest_SdkV2)
func (ResultManifest_SdkV2) ToObjectValue ¶
func (m ResultManifest_SdkV2) ToObjectValue(ctx context.Context) basetypes.ObjectValue
TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ResultManifest_SdkV2 only implements ToObjectValue() and Type().
type Schema ¶
type Schema struct {
// The number of columns in the result set.
ColumnCount types.Int64 `tfsdk:"column_count"`
// The column descriptions, in result set order.
Columns types.List `tfsdk:"columns"`
}
The schema is an ordered list of column descriptions.
func (Schema) ApplySchemaCustomizations ¶
func (m Schema) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
func (*Schema) GetColumns ¶
func (m *Schema) GetColumns(ctx context.Context) ([]ColumnInfo, bool)
GetColumns returns the value of the Columns field in Schema as a slice of ColumnInfo values. If the field is unknown or null, the boolean return value is false.
func (Schema) GetComplexFieldTypes ¶
GetComplexFieldTypes returns a map of the types of elements in complex fields in Schema. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.
func (*Schema) SetColumns ¶
func (m *Schema) SetColumns(ctx context.Context, v []ColumnInfo)
SetColumns sets the value of the Columns field in Schema.
func (*Schema) SyncFieldsDuringCreateOrUpdate ¶
func (*Schema) SyncFieldsDuringRead ¶
func (Schema) ToObjectValue ¶
func (m Schema) ToObjectValue(ctx context.Context) basetypes.ObjectValue
TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, Schema only implements ToObjectValue() and Type().
type Schema_SdkV2 ¶
type Schema_SdkV2 struct {
// The number of columns in the result set.
ColumnCount types.Int64 `tfsdk:"column_count"`
// The column descriptions, in result set order.
Columns types.List `tfsdk:"columns"`
}
The schema is an ordered list of column descriptions.
func (Schema_SdkV2) ApplySchemaCustomizations ¶
func (m Schema_SdkV2) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
func (*Schema_SdkV2) GetColumns ¶
func (m *Schema_SdkV2) GetColumns(ctx context.Context) ([]ColumnInfo_SdkV2, bool)
GetColumns returns the value of the Columns field in Schema_SdkV2 as a slice of ColumnInfo_SdkV2 values. If the field is unknown or null, the boolean return value is false.
func (Schema_SdkV2) GetComplexFieldTypes ¶
GetComplexFieldTypes returns a map of the types of elements in complex fields in Schema. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.
func (*Schema_SdkV2) SetColumns ¶
func (m *Schema_SdkV2) SetColumns(ctx context.Context, v []ColumnInfo_SdkV2)
SetColumns sets the value of the Columns field in Schema_SdkV2.
func (*Schema_SdkV2) SyncFieldsDuringCreateOrUpdate ¶
func (to *Schema_SdkV2) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from Schema_SdkV2)
func (*Schema_SdkV2) SyncFieldsDuringRead ¶
func (to *Schema_SdkV2) SyncFieldsDuringRead(ctx context.Context, from Schema_SdkV2)
func (Schema_SdkV2) ToObjectValue ¶
func (m Schema_SdkV2) ToObjectValue(ctx context.Context) basetypes.ObjectValue
TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, Schema_SdkV2 only implements ToObjectValue() and Type().
type ServiceError ¶
type ServiceError struct {
// The error code that classifies the failure.
ErrorCode types.String `tfsdk:"error_code"`
// A brief summary of the error condition.
Message types.String `tfsdk:"message"`
}
The error that caused a statement execution to fail.
func (ServiceError) ApplySchemaCustomizations ¶
func (m ServiceError) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
func (ServiceError) GetComplexFieldTypes ¶
GetComplexFieldTypes returns a map of the types of elements in complex fields in ServiceError. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.
func (*ServiceError) SyncFieldsDuringCreateOrUpdate ¶
func (to *ServiceError) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from ServiceError)
func (*ServiceError) SyncFieldsDuringRead ¶
func (to *ServiceError) SyncFieldsDuringRead(ctx context.Context, from ServiceError)
func (ServiceError) ToObjectValue ¶
func (m ServiceError) ToObjectValue(ctx context.Context) basetypes.ObjectValue
TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ServiceError only implements ToObjectValue() and Type().
type ServiceError_SdkV2 ¶
type ServiceError_SdkV2 struct {
// The error code that classifies the failure.
ErrorCode types.String `tfsdk:"error_code"`
// A brief summary of the error condition.
Message types.String `tfsdk:"message"`
}
The error that caused a statement execution to fail.
func (ServiceError_SdkV2) ApplySchemaCustomizations ¶
func (m ServiceError_SdkV2) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
func (ServiceError_SdkV2) GetComplexFieldTypes ¶
GetComplexFieldTypes returns a map of the types of elements in complex fields in ServiceError. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.
func (*ServiceError_SdkV2) SyncFieldsDuringCreateOrUpdate ¶
func (to *ServiceError_SdkV2) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from ServiceError_SdkV2)
func (*ServiceError_SdkV2) SyncFieldsDuringRead ¶
func (to *ServiceError_SdkV2) SyncFieldsDuringRead(ctx context.Context, from ServiceError_SdkV2)
func (ServiceError_SdkV2) ToObjectValue ¶
func (m ServiceError_SdkV2) ToObjectValue(ctx context.Context) basetypes.ObjectValue
TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ServiceError_SdkV2 only implements ToObjectValue() and Type().
type StatementParameter ¶
type StatementParameter struct {
// The name of a parameter marker to be substituted in the statement.
Name types.String `tfsdk:"name"`
// The data type, given as a string. For example: `INT`, `STRING`,
// `DECIMAL(10,2)`. If no type is given the type is assumed to be `STRING`.
// Complex types, such as `ARRAY`, `MAP`, and `STRUCT` are not supported.
// For valid types, refer to the section [Data types] of the SQL language
// reference.
//
// [Data types]: https://docs.databricks.com/sql/language-manual/functions/cast.html
Type_ types.String `tfsdk:"type"`
// The value to substitute, represented as a string. If omitted, the value
// is interpreted as NULL.
Value types.String `tfsdk:"value"`
}
A named parameter to substitute for a parameter marker in the statement.
func (StatementParameter) ApplySchemaCustomizations ¶
func (m StatementParameter) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
func (StatementParameter) GetComplexFieldTypes ¶
GetComplexFieldTypes returns a map of the types of elements in complex fields in StatementParameter. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.
func (*StatementParameter) SyncFieldsDuringCreateOrUpdate ¶
func (to *StatementParameter) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from StatementParameter)
func (*StatementParameter) SyncFieldsDuringRead ¶
func (to *StatementParameter) SyncFieldsDuringRead(ctx context.Context, from StatementParameter)
func (StatementParameter) ToObjectValue ¶
func (m StatementParameter) ToObjectValue(ctx context.Context) basetypes.ObjectValue
TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, StatementParameter only implements ToObjectValue() and Type().
type StatementParameter_SdkV2 ¶
type StatementParameter_SdkV2 struct {
// The name of a parameter marker to be substituted in the statement.
Name types.String `tfsdk:"name"`
// The data type, given as a string. For example: `INT`, `STRING`,
// `DECIMAL(10,2)`. If no type is given the type is assumed to be `STRING`.
// Complex types, such as `ARRAY`, `MAP`, and `STRUCT` are not supported.
// For valid types, refer to the section [Data types] of the SQL language
// reference.
//
// [Data types]: https://docs.databricks.com/sql/language-manual/functions/cast.html
Type_ types.String `tfsdk:"type"`
// The value to substitute, represented as a string. If omitted, the value
// is interpreted as NULL.
Value types.String `tfsdk:"value"`
}
A named parameter to substitute for a parameter marker in the statement.
func (StatementParameter_SdkV2) ApplySchemaCustomizations ¶
func (m StatementParameter_SdkV2) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
func (StatementParameter_SdkV2) GetComplexFieldTypes ¶
GetComplexFieldTypes returns a map of the types of elements in complex fields in StatementParameter. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.
func (*StatementParameter_SdkV2) SyncFieldsDuringCreateOrUpdate ¶
func (to *StatementParameter_SdkV2) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from StatementParameter_SdkV2)
func (*StatementParameter_SdkV2) SyncFieldsDuringRead ¶
func (to *StatementParameter_SdkV2) SyncFieldsDuringRead(ctx context.Context, from StatementParameter_SdkV2)
func (StatementParameter_SdkV2) ToObjectValue ¶
func (m StatementParameter_SdkV2) ToObjectValue(ctx context.Context) basetypes.ObjectValue
TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, StatementParameter_SdkV2 only implements ToObjectValue() and Type().
type StatementResponse ¶
type StatementResponse struct {
// The schema and metadata of the result set. Present when `status.state` is
// `SUCCEEDED`.
Manifest types.Object `tfsdk:"manifest"`
// The first chunk of result data. Present when `status.state` is
// `SUCCEEDED`.
Result types.Object `tfsdk:"result"`
// The statement ID is returned upon successfully submitting a SQL
// statement, and is a required reference for all subsequent calls.
StatementId types.String `tfsdk:"statement_id"`
// The execution state of the statement and, if it failed, the error
// details.
Status types.Object `tfsdk:"status"`
}
Statement Execution (Lakehouse//RT) is version 2 of the Statement Execution API. It is optimized for Lakehouse//RT warehouses, with lower latency and higher concurrency, and takes `warehouse_id` as a path parameter on every call. It currently supports Lakehouse//RT warehouses only. The Statement Execution API (version 1) works with all SQL warehouse types, including Lakehouse//RT.
func (StatementResponse) ApplySchemaCustomizations ¶
func (m StatementResponse) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
func (StatementResponse) GetComplexFieldTypes ¶
GetComplexFieldTypes returns a map of the types of elements in complex fields in StatementResponse. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.
func (*StatementResponse) GetManifest ¶
func (m *StatementResponse) GetManifest(ctx context.Context) (ResultManifest, bool)
GetManifest returns the value of the Manifest field in StatementResponse as a ResultManifest value. If the field is unknown or null, the boolean return value is false.
func (*StatementResponse) GetResult ¶
func (m *StatementResponse) GetResult(ctx context.Context) (ResultData, bool)
GetResult returns the value of the Result field in StatementResponse as a ResultData value. If the field is unknown or null, the boolean return value is false.
func (*StatementResponse) GetStatus ¶
func (m *StatementResponse) GetStatus(ctx context.Context) (StatementStatus, bool)
GetStatus returns the value of the Status field in StatementResponse as a StatementStatus value. If the field is unknown or null, the boolean return value is false.
func (*StatementResponse) SetManifest ¶
func (m *StatementResponse) SetManifest(ctx context.Context, v ResultManifest)
SetManifest sets the value of the Manifest field in StatementResponse.
func (*StatementResponse) SetResult ¶
func (m *StatementResponse) SetResult(ctx context.Context, v ResultData)
SetResult sets the value of the Result field in StatementResponse.
func (*StatementResponse) SetStatus ¶
func (m *StatementResponse) SetStatus(ctx context.Context, v StatementStatus)
SetStatus sets the value of the Status field in StatementResponse.
func (*StatementResponse) SyncFieldsDuringCreateOrUpdate ¶
func (to *StatementResponse) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from StatementResponse)
func (*StatementResponse) SyncFieldsDuringRead ¶
func (to *StatementResponse) SyncFieldsDuringRead(ctx context.Context, from StatementResponse)
func (StatementResponse) ToObjectValue ¶
func (m StatementResponse) ToObjectValue(ctx context.Context) basetypes.ObjectValue
TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, StatementResponse only implements ToObjectValue() and Type().
type StatementResponse_SdkV2 ¶
type StatementResponse_SdkV2 struct {
// The schema and metadata of the result set. Present when `status.state` is
// `SUCCEEDED`.
Manifest types.List `tfsdk:"manifest"`
// The first chunk of result data. Present when `status.state` is
// `SUCCEEDED`.
Result types.List `tfsdk:"result"`
// The statement ID is returned upon successfully submitting a SQL
// statement, and is a required reference for all subsequent calls.
StatementId types.String `tfsdk:"statement_id"`
// The execution state of the statement and, if it failed, the error
// details.
Status types.List `tfsdk:"status"`
}
Statement Execution (Lakehouse//RT) is version 2 of the Statement Execution API. It is optimized for Lakehouse//RT warehouses, with lower latency and higher concurrency, and takes `warehouse_id` as a path parameter on every call. It currently supports Lakehouse//RT warehouses only. The Statement Execution API (version 1) works with all SQL warehouse types, including Lakehouse//RT.
func (StatementResponse_SdkV2) ApplySchemaCustomizations ¶
func (m StatementResponse_SdkV2) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
func (StatementResponse_SdkV2) GetComplexFieldTypes ¶
GetComplexFieldTypes returns a map of the types of elements in complex fields in StatementResponse. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.
func (*StatementResponse_SdkV2) GetManifest ¶
func (m *StatementResponse_SdkV2) GetManifest(ctx context.Context) (ResultManifest_SdkV2, bool)
GetManifest returns the value of the Manifest field in StatementResponse_SdkV2 as a ResultManifest_SdkV2 value. If the field is unknown or null, the boolean return value is false.
func (*StatementResponse_SdkV2) GetResult ¶
func (m *StatementResponse_SdkV2) GetResult(ctx context.Context) (ResultData_SdkV2, bool)
GetResult returns the value of the Result field in StatementResponse_SdkV2 as a ResultData_SdkV2 value. If the field is unknown or null, the boolean return value is false.
func (*StatementResponse_SdkV2) GetStatus ¶
func (m *StatementResponse_SdkV2) GetStatus(ctx context.Context) (StatementStatus_SdkV2, bool)
GetStatus returns the value of the Status field in StatementResponse_SdkV2 as a StatementStatus_SdkV2 value. If the field is unknown or null, the boolean return value is false.
func (*StatementResponse_SdkV2) SetManifest ¶
func (m *StatementResponse_SdkV2) SetManifest(ctx context.Context, v ResultManifest_SdkV2)
SetManifest sets the value of the Manifest field in StatementResponse_SdkV2.
func (*StatementResponse_SdkV2) SetResult ¶
func (m *StatementResponse_SdkV2) SetResult(ctx context.Context, v ResultData_SdkV2)
SetResult sets the value of the Result field in StatementResponse_SdkV2.
func (*StatementResponse_SdkV2) SetStatus ¶
func (m *StatementResponse_SdkV2) SetStatus(ctx context.Context, v StatementStatus_SdkV2)
SetStatus sets the value of the Status field in StatementResponse_SdkV2.
func (*StatementResponse_SdkV2) SyncFieldsDuringCreateOrUpdate ¶
func (to *StatementResponse_SdkV2) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from StatementResponse_SdkV2)
func (*StatementResponse_SdkV2) SyncFieldsDuringRead ¶
func (to *StatementResponse_SdkV2) SyncFieldsDuringRead(ctx context.Context, from StatementResponse_SdkV2)
func (StatementResponse_SdkV2) ToObjectValue ¶
func (m StatementResponse_SdkV2) ToObjectValue(ctx context.Context) basetypes.ObjectValue
TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, StatementResponse_SdkV2 only implements ToObjectValue() and Type().
type StatementStatus ¶
type StatementStatus struct {
// The error details. Only populated when `state` is `FAILED`.
Error types.Object `tfsdk:"error"`
// SQLSTATE error code returned when the statement execution fails. Only
// populated when the statement status is `FAILED`.
SqlState types.String `tfsdk:"sql_state"`
// Statement execution state: - `PENDING`: waiting for warehouse -
// `RUNNING`: running - `SUCCEEDED`: execution was successful, result data
// available for fetch - `FAILED`: execution failed; reason for failure
// described in accompanying error message - `CANCELED`: user canceled; can
// come from explicit cancel call, or timeout with `on_wait_timeout=CANCEL`
// - `CLOSED`: execution successful, and statement closed; result no longer
// available for fetch
State types.String `tfsdk:"state"`
}
The status response includes execution state and if relevant, error information.
func (StatementStatus) ApplySchemaCustomizations ¶
func (m StatementStatus) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
func (StatementStatus) GetComplexFieldTypes ¶
GetComplexFieldTypes returns a map of the types of elements in complex fields in StatementStatus. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.
func (*StatementStatus) GetError ¶
func (m *StatementStatus) GetError(ctx context.Context) (ServiceError, bool)
GetError returns the value of the Error field in StatementStatus as a ServiceError value. If the field is unknown or null, the boolean return value is false.
func (*StatementStatus) SetError ¶
func (m *StatementStatus) SetError(ctx context.Context, v ServiceError)
SetError sets the value of the Error field in StatementStatus.
func (*StatementStatus) SyncFieldsDuringCreateOrUpdate ¶
func (to *StatementStatus) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from StatementStatus)
func (*StatementStatus) SyncFieldsDuringRead ¶
func (to *StatementStatus) SyncFieldsDuringRead(ctx context.Context, from StatementStatus)
func (StatementStatus) ToObjectValue ¶
func (m StatementStatus) ToObjectValue(ctx context.Context) basetypes.ObjectValue
TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, StatementStatus only implements ToObjectValue() and Type().
type StatementStatus_SdkV2 ¶
type StatementStatus_SdkV2 struct {
// The error details. Only populated when `state` is `FAILED`.
Error types.List `tfsdk:"error"`
// SQLSTATE error code returned when the statement execution fails. Only
// populated when the statement status is `FAILED`.
SqlState types.String `tfsdk:"sql_state"`
// Statement execution state: - `PENDING`: waiting for warehouse -
// `RUNNING`: running - `SUCCEEDED`: execution was successful, result data
// available for fetch - `FAILED`: execution failed; reason for failure
// described in accompanying error message - `CANCELED`: user canceled; can
// come from explicit cancel call, or timeout with `on_wait_timeout=CANCEL`
// - `CLOSED`: execution successful, and statement closed; result no longer
// available for fetch
State types.String `tfsdk:"state"`
}
The status response includes execution state and if relevant, error information.
func (StatementStatus_SdkV2) ApplySchemaCustomizations ¶
func (m StatementStatus_SdkV2) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
func (StatementStatus_SdkV2) GetComplexFieldTypes ¶
GetComplexFieldTypes returns a map of the types of elements in complex fields in StatementStatus. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.
func (*StatementStatus_SdkV2) GetError ¶
func (m *StatementStatus_SdkV2) GetError(ctx context.Context) (ServiceError_SdkV2, bool)
GetError returns the value of the Error field in StatementStatus_SdkV2 as a ServiceError_SdkV2 value. If the field is unknown or null, the boolean return value is false.
func (*StatementStatus_SdkV2) SetError ¶
func (m *StatementStatus_SdkV2) SetError(ctx context.Context, v ServiceError_SdkV2)
SetError sets the value of the Error field in StatementStatus_SdkV2.
func (*StatementStatus_SdkV2) SyncFieldsDuringCreateOrUpdate ¶
func (to *StatementStatus_SdkV2) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from StatementStatus_SdkV2)
func (*StatementStatus_SdkV2) SyncFieldsDuringRead ¶
func (to *StatementStatus_SdkV2) SyncFieldsDuringRead(ctx context.Context, from StatementStatus_SdkV2)
func (StatementStatus_SdkV2) ToObjectValue ¶
func (m StatementStatus_SdkV2) ToObjectValue(ctx context.Context) basetypes.ObjectValue
TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, StatementStatus_SdkV2 only implements ToObjectValue() and Type().