OpaqueTableStorage¶
- class lsst.daf.butler.registry.interfaces.OpaqueTableStorage(name: str)¶
- Bases: - ABC- An interface that manages the records associated with a particular opaque table in a - Registry.- Parameters:
- namestr
- Name of the opaque table. 
 
- name
 - Methods Summary - delete(columns, *rows)- Remove records from an opaque table. - fetch(**where)- Retrieve records from an opaque table. - insert(*data)- Insert records into the table - Methods Documentation - abstract delete(columns: Iterable[str], *rows: dict) None¶
- Remove records from an opaque table. - Parameters:
- columns: `~collections.abc.Iterable` of `str`
- The names of columns that will be used to constrain the rows to be deleted; these will be combined via - ANDto form the- WHEREclause of the delete query.
- *rows
- Positional arguments are the keys of rows to be deleted, as dictionaries mapping column name to value. The keys in all dictionaries must be exactly the names in - columns.
 
 
 - abstract fetch(**where: Any) Iterator[dict]¶
- Retrieve records from an opaque table. - Parameters:
- **where
- Additional keyword arguments are interpreted as equality constraints that restrict the returned rows (combined with AND); keyword arguments are column names and values are the values they must have. 
 
- Yields:
- rowdict
- A dictionary representing a single result row. 
 
- row