{"push_id":665860015,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"6796cfc6f1c697c79db423696d35f2821648de5d","before":"f177a5114d20a3bd45ca09ffb27d8a8c3c88f8ec","commits":[{"sha":"6796cfc6f1c697c79db423696d35f2821648de5d","author":{"email":"1fa2ef4755a9226cb9a0a4840bd89b158ac71391@mattbostock.com","name":"Matt Bostock"},"message":"Replace SQLite's total() with something portable\n\n`total()` is specific to SQLite. It differs from `sum()` in that\n`total()` will return null if no rows with non-null values are returned.\n\nIn our case, this would cause our database queries to fail because `nil`\nwould be returned instead of the integer we were expecting.\n\nUsing `coalesce()`, which is supported by both SQLite and PostgreSQL,\nwill return the first non-null value it encounters, so zero (0) is\nreturned if no rows are found.","distinct":true,"url":"https://api.github.com/repos/mattbostock/leavediary/commits/6796cfc6f1c697c79db423696d35f2821648de5d"}]}