MappingRule
import type { MappingRule } from "https://googleapis.deno.dev/v1/datamigration:v1.ts";
Definition of a transformation that is to be applied to a group of entities in the source schema. Several such transformations can be applied to an entity sequentially to define the corresponding entity in the target schema.
§Properties
Optional. Rule to specify how the data contained in a column should be transformed (such as trimmed, rounded, etc) provided that the data meets certain criteria.
Optional. Rule to specify how multiple tables should be converted with an additional rowid column.
Optional. Rule to specify how multiple entities should be relocated into a different schema.
Required. The rule filter
Optional. Rule to specify the list of columns to include or exclude from a table.
Optional. Rule to specify how multiple columns should be converted to a different data type.
Optional. Rule to specify how multiple entities should be renamed.
Full name of the mapping rule resource, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{set}/mappingRule/{rule}.
Output only. The revision ID of the mapping rule. A new revision is committed whenever the mapping rule is changed in any way. The format is an 8-character hexadecimal string.
Required. The order in which the rule is applied. Lower order rules are applied before higher value rules so they may end up being overridden.
Required. The rule scope
Optional. Rule to specify the primary key for a table
Optional. Rule to specify how a single column is converted.
Optional. Rule to specify how a single entity should be renamed.
Optional. Rule to specify how a single package is converted.
Optional. Rule to change the sql code for an entity, for example, function, procedure.