puppetlabs/puppetdb — pull request #290 by cprice-puppet (2012-09-24 02:26:55+00:00)
Title: Maint/master/dry up sql command stuff

commit 4707f4af7fa9b2eeed0a7f23af3cf511d53f501d
Author: Chris Price
Date: Sun Sep 23 19:23:49 2012 -0700

DRY up the try+/fatality stuff in command.clj

This commit does the following:
DRY up the try+/fatality stuff in command.clj

This commit does the following:

1. defines a macro for our try+ / fatality pattern
2. rename `fatality!` to `fatality`, because it doesn't
actually have side effects.

Conflicts:

src/com/puppetlabs/puppetdb/command.clj

commit 600fd972c73f9659f30a2aea7dfe281fed1e90e2
Author: Chris Price
Date: Mon Sep 10 12:25:21 2012 -0700

DRY up some pre/post-conditions w/rt SQL query format

We have a somewhat bulky chunk of predicates that we
use to validate that SQL queries are being passed around
to our functions in the expected type of data structure.
Prior to this commit, we had copied and pasted those
predicates in several places; this introduces a
query/utils namespace and refactors the existing usages
to use the new single function.