in nl2sql/datasets/base.py [0:0]
def invert(self) -> "EntitySet":
"""
Returnes the complement of the provided keys based on the schema.
"""
return EntitySet(
ids=list(
{
f"{db}.{tab}.{col}"
for db, tabval in self.dataset_schema.items()
for tab, colval in tabval.items()
for col in colval.keys()
}
- set(self.ids)
),
dataset_schema=self.dataset_schema,
)