View Source GoogleApi.DataMigration.V1.Model.ConstraintEntity (google_api_data_migration v0.21.0)
Constraint is not used as an independent entity, it is retrieved as part of another entity such as Table or View.
Attributes
-
customFeatures
(type:map()
, default:nil
) - Custom engine specific features. -
name
(type:String.t
, default:nil
) - The name of the table constraint. -
referenceColumns
(type:list(String.t)
, default:nil
) - Reference columns which may be associated with the constraint. For example, if the constraint is a FOREIGN_KEY, this represents the list of full names of referenced columns by the foreign key. -
referenceTable
(type:String.t
, default:nil
) - Reference table which may be associated with the constraint. For example, if the constraint is a FOREIGN_KEY, this represents the list of full name of the referenced table by the foreign key. -
tableColumns
(type:list(String.t)
, default:nil
) - Table columns used as part of the Constraint, for example primary key constraint should list the columns which constitutes the key. -
tableName
(type:String.t
, default:nil
) - Table which is associated with the constraint. In case the constraint is defined on a table, this field is left empty as this information is stored in parent_name. However, if constraint is defined on a view, this field stores the table name on which the view is defined. -
type
(type:String.t
, default:nil
) - Type of constraint, for example unique, primary key, foreign key (currently only primary key is supported).
Summary
Functions
Unwrap a decoded JSON object into its complex fields.