Method
create_id_from
(
pk_table: pw.Table,
pk_columns: dict[str, api.Value],
instance: api.Value | None = None,
)
Source from the content-addressed store, hash-verified
| 194 | |
| 195 | @staticmethod |
| 196 | def create_id_from( |
| 197 | pk_table: pw.Table, |
| 198 | pk_columns: dict[str, api.Value], |
| 199 | instance: api.Value | None = None, |
| 200 | ) -> api.Pointer: |
| 201 | values = list(pk_columns.values()) |
| 202 | if instance is None: |
| 203 | return api.ref_scalar(*values) |
| 204 | else: |
| 205 | return api.ref_scalar_with_instance(*values, instance=instance) |
| 206 | |
| 207 | |
| 208 | # This class is an abstract subclass of OnChangeCallback, which takes a list of entries |