snowflake.core.table.PrimaryKey

class snowflake.core.table.PrimaryKey(name: str | None = None, column_names: List[str] | None = None)

Bases: ConstraintModel

Methods

__init__(name: str | None = None, column_names: List[str] | None = None)
classmethod from_dict(obj: dict) PrimaryKeyModel

Create an instance of PrimaryKey from a dict

to_dict()

Returns the dictionary representation of the model using alias