Danger You are looking at the documentation for an older version of the SDV! We are no longer supporting or maintaining this version of the software Click here to go to the new docs pages.
Danger
You are looking at the documentation for an older version of the SDV! We are no longer supporting or maintaining this version of the software
Click here to go to the new docs pages.
Metadata.
get_primary_key
Get the name of the primary key of the indicated table, if it has one.
table_name (str) – Name of table for which to get the primary key field.
Primary key field name. None if the table has no primary key.
None
str or None
ValueError – If table does not exist in this metadata.