Skip to content

Commit

Permalink
Remove unneeded newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin.Snyder committed Sep 25, 2013
1 parent f6c7b1e commit a2812e1
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -61,11 +61,9 @@ object Example {
* @param sql SQL Statement to execute for JSON results conversion
* @return a single JSON string containing the exported results
*/
def queryToJSON(conn: Jdbc.ConnectionInfo, sql: String) =
Jdbc.withResultsIterator(conn, sql, it => mapper.writeValueAsString(it))
def queryToJSON(conn: Jdbc.ConnectionInfo, sql: String) = 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)))
def queryToJSONPartial(conn: Jdbc.ConnectionInfo, sql: String, start: Int, rows: Int) = Jdbc.withResultsIterator(conn, sql, it => mapper.writeValueAsString(it.drop(start).take(rows)))

def main(args: Array[String]) {
initializeDatabase()
Expand Down

0 comments on commit a2812e1

Please sign in to comment.