Skip to content

Commit

Permalink
final revisions to presentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin.Snyder committed Sep 10, 2013
1 parent 54ea657 commit f6c7b1e
Show file tree
Hide file tree
Showing 2 changed files with 180 additions and 208 deletions.
Expand Up @@ -62,7 +62,7 @@ object Example {
* @return a single JSON string containing the exported results
*/
def queryToJSON(conn: Jdbc.ConnectionInfo, sql: String) =
Jdbc.withResultsIterator(conn, sql, it => mapper.writeValueAsString(it))
Jdbc.withResultsIterator(conn, sql, it => mapper.writeValueAsString(it))

def queryToJSONPartial(conn: Jdbc.ConnectionInfo, sql: String, start: Int, rows: Int) =
Jdbc.withResultsIterator(conn, sql, it => mapper.writeValueAsString(it.drop(start).take(rows)))
Expand Down

0 comments on commit f6c7b1e

Please sign in to comment.