avbdr/PHP-MySQLi-Database-Class — pull request #4 by screeper (2014-04-28 21:54:13+00:00)
Title: Added update "column = !column"

Useful for changing booleans in DB.
Update like this:

...
$db->update("table", array("col_boolean" => $db->not()));