A minimal library to create common SQL patterns