Skip to main content

transformation_projects

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

Overview​

Nametransformation_projects
TypeResource
Idfivetran.transformations.transformation_projects

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier for the transformation project within the Fivetran system
created_by_idstringThe unique identifier for the actor (user or system key) within the Fivetran system
group_idstringThe unique identifier for the group within the Fivetran system
created_atstring (date-time)The timestamp when the transformation project was created
errorsarrayThe list of errors occurred during project processing and setup
project_configobjectDepends on type (DBT_CORE).
setup_testsarrayThe setup tests results
statusstringThe status of transformation project (NOT_READY, READY, ERROR)
typestringTransformation project type (DBT_CORE)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectproject_idReturns transformation project details if a valid identifier was provided.
listselectcursor, limitReturns a list of all transformation projects available via API within your Fivetran account.
createinsertCreates a new transformation project.
updateupdateproject_idUpdates transformation project if a valid identifier was provided.
deletedeleteproject_idDeletes transformation project if a valid identifier was provided.
testexecproject_idTriggers tests for an existing transformation project.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
project_idstringThe unique identifier for the transformation project within the Fivetran system
cursorstringPaging cursor, [read more about pagination](https:​//fivetran.com/docs/rest-api/pagination)
limitinteger (int32)Number of records to fetch per page. Accepts a number in the range 1..1000; the default value is 100.

SELECT examples​

Returns transformation project details if a valid identifier was provided.

SELECT
id,
created_by_id,
group_id,
created_at,
errors,
project_config,
setup_tests,
status,
type
FROM fivetran.transformations.transformation_projects
WHERE project_id = '{{ project_id }}' -- required
;

INSERT examples​

Creates a new transformation project.

INSERT INTO fivetran.transformations.transformation_projects (
group_id,
type,
run_tests,
project_config
)
SELECT
'{{ group_id }}',
'{{ type }}',
{{ run_tests }},
'{{ project_config }}'
RETURNING
id,
created_by_id,
group_id,
created_at,
errors,
project_config,
setup_tests,
status,
type
;

UPDATE examples​

Updates transformation project if a valid identifier was provided.

UPDATE fivetran.transformations.transformation_projects
SET
run_tests = {{ run_tests }},
project_config = '{{ project_config }}'
WHERE
project_id = '{{ project_id }}' --required
RETURNING
id,
created_by_id,
group_id,
created_at,
errors,
project_config,
setup_tests,
status,
type;

DELETE examples​

Deletes transformation project if a valid identifier was provided.

DELETE FROM fivetran.transformations.transformation_projects
WHERE project_id = '{{ project_id }}' --required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Triggers tests for an existing transformation project.

EXEC fivetran.transformations.transformation_projects.test
@project_id='{{ project_id }}' --required
;