AlphaAlphaExperimental, requires experimental: { transformations: true } in the client options.
AlphaExperimental, requires experimental: { transformations: true } in the client options.
AlphaExperimental, requires experimental: { transformations: true } in the client options.
AlphaExperimental, requires experimental: { transformations: true } in the client options.
Cancels the running job of the transformation.
await client.transformations.cancel({ externalId: 'my-transformation' });
const transformations = await client.transformations.create([
{
externalId: 'my-transformation',
name: 'My transformation',
ignoreNullFields: true,
query: 'select * from `db`.`table`',
destination: { type: 'assets' },
conflictMode: 'upsert',
},
]);
await client.transformations.delete([{ id: 123 }, { externalId: 'my-transformation' }]);
const transformations = await client.transformations
.filter({ filter: { destinationType: 'assets', isPublic: true } })
.autoPagingToArray({ limit: 100 });
const transformations = await client.transformations
.list({ includePublic: true })
.autoPagingToArray({ limit: 100 });
Optionalquery: TransformationListQueryconst transformations = await client.transformations.retrieve(
[{ id: 123 }, { externalId: 'my-transformation' }],
{ withJobDetails: false }
);
Starts a job for the transformation and returns it.
const job = await client.transformations.run({ externalId: 'my-transformation' });
const transformations = await client.transformations.update([
{
externalId: 'my-transformation',
update: { query: { set: 'select * from `db`.`other_table`' } },
},
]);
Transformation jobs
Experimental, requires
experimental: { transformations: true }in the client options.