Skip to content

Instantly share code, notes, and snippets.

@wilig
Created August 18, 2010 17:51
Show Gist options
  • Save wilig/535600 to your computer and use it in GitHub Desktop.
Save wilig/535600 to your computer and use it in GitHub Desktop.
(defn limit
[num query]
(merge-with concat query (stmt " LIMIT " num)))
(defn offset
[num query]
(merge-with concat query (stmt " OFFSET " num)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment