Skip to main content

compilation_results

Creates, updates, deletes, gets or lists a compilation_results resource.

Overview

Namecompilation_results
TypeResource
Idgoogle.dataform.compilation_results

Fields

NameDatatypeDescription
namestringOutput only. The compilation result's name.
codeCompilationConfigobjectConfigures various aspects of Dataform code compilation.
compilationErrorsarrayOutput only. Errors encountered during project compilation.
createTimestringOutput only. The timestamp of when the compilation result was created.
dataEncryptionStateobjectDescribes encryption state of a resource.
dataformCoreVersionstringOutput only. The version of @dataform/core that was used for compilation.
gitCommitishstringImmutable. Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository. Examples: - a commit SHA: 12ade345 - a tag: tag1 - a branch name: branch1
releaseConfigstringImmutable. The name of the release config to compile. Must be in the format projects/*/locations/*/repositories/*/releaseConfigs/*.
resolvedGitCommitShastringOutput only. The fully resolved Git commit SHA of the code that was compiled. Not set for compilation results whose source is a workspace.
workspacestringImmutable. The name of the workspace to compile. Must be in the format projects/*/locations/*/repositories/*/workspaces/*.

Methods

NameAccessible byRequired ParamsDescription
getSELECTcompilationResultsId, locationsId, projectsId, repositoriesIdFetches a single CompilationResult.
listSELECTlocationsId, projectsId, repositoriesIdLists CompilationResults in a given Repository.
querySELECTcompilationResultsId, locationsId, projectsId, repositoriesIdReturns CompilationResultActions in a given CompilationResult.
createINSERTlocationsId, projectsId, repositoriesIdCreates a new CompilationResult in a given project and location.

SELECT examples

Lists CompilationResults in a given Repository.

SELECT
name,
codeCompilationConfig,
compilationErrors,
createTime,
dataEncryptionState,
dataformCoreVersion,
gitCommitish,
releaseConfig,
resolvedGitCommitSha,
workspace
FROM google.dataform.compilation_results
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND repositoriesId = '{{ repositoriesId }}';

INSERT example

Use the following StackQL query and manifest file to create a new compilation_results resource.

/*+ create */
INSERT INTO google.dataform.compilation_results (
locationsId,
projectsId,
repositoriesId,
gitCommitish,
workspace,
releaseConfig,
codeCompilationConfig
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ repositoriesId }}',
'{{ gitCommitish }}',
'{{ workspace }}',
'{{ releaseConfig }}',
'{{ codeCompilationConfig }}'
;