_base#
Defines the base Constraint
class.
Classes#
A known, enforceable fact about a table. |
- class Constraint#
Bases:
abc.ABC
A known, enforceable fact about a table.
Constraints provide information about the contents of a table to help produce differentially-private results. For example, a constraint might say that each ID in a table corresponds to no more than two rows in that table (the
MaxRowsPerID
constraint). Constraints are applied via theQueryBuilder.enforce()
method.This class is a base class for all constraints, and cannot be used directly.