Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

MultiEntityRename

import type { MultiEntityRename } from "https://googleapis.deno.dev/v1/datamigration:v1.ts";

Options to configure rule type MultiEntityRename. The rule is used to rename multiple entities. The rule filter field can refer to one or more entities. The rule scope can be one of: Database, Schema, Table, Column, Constraint, Index, View, Function, Stored Procedure, Materialized View, Sequence, UDT

interface MultiEntityRename {
newNamePattern?: string;
sourceNameTransformation?:
| "ENTITY_NAME_TRANSFORMATION_UNSPECIFIED"
| "ENTITY_NAME_TRANSFORMATION_NO_TRANSFORMATION"
| "ENTITY_NAME_TRANSFORMATION_LOWER_CASE"
| "ENTITY_NAME_TRANSFORMATION_UPPER_CASE"
| "ENTITY_NAME_TRANSFORMATION_CAPITALIZED_CASE";
}

§Properties

§
newNamePattern?: string
[src]

Optional. The pattern used to generate the new entity's name. This pattern must include the characters '{name}', which will be replaced with the name of the original entity. For example, the pattern 't_{name}' for an entity name jobs would be converted to 't_jobs'. If unspecified, the default value for this field is '{name}'

§
sourceNameTransformation?: "ENTITY_NAME_TRANSFORMATION_UNSPECIFIED" | "ENTITY_NAME_TRANSFORMATION_NO_TRANSFORMATION" | "ENTITY_NAME_TRANSFORMATION_LOWER_CASE" | "ENTITY_NAME_TRANSFORMATION_UPPER_CASE" | "ENTITY_NAME_TRANSFORMATION_CAPITALIZED_CASE"
[src]

Optional. Additional transformation that can be done on the source entity name before it is being used by the new_name_pattern, for example lower case. If no transformation is desired, use NO_TRANSFORMATION