Counts

class sqlcompyre.results.Counts(left: int, right: int)[source]

Investigate the counts of database objects.

Attributes:
diff

The absolute difference in counts.

equal

Whether the counts are the same.

fraction_left

The left count divided by the right count.

fraction_right

The right count divided by the left count.

gain_left

The left count minus the right count.

gain_right

The right count minus the left count.

property diff: int

The absolute difference in counts.

property equal: bool

Whether the counts are the same.

property fraction_left: float

The left count divided by the right count.

property fraction_right: float

The right count divided by the left count.

property gain_left: int

The left count minus the right count.

property gain_right: int

The right count minus the left count.

left: int

The counts of the “left” database object.

right: int

The counts of the “right” database object.