diff --git a/relate/src/main/scala/com/lucidchart/relate/SqlResult.scala b/relate/src/main/scala/com/lucidchart/relate/SqlResult.scala index 2964c9f..85d80dc 100644 --- a/relate/src/main/scala/com/lucidchart/relate/SqlResult.scala +++ b/relate/src/main/scala/com/lucidchart/relate/SqlResult.scala @@ -20,8 +20,8 @@ object SqlResult { * The extraction methods (int, string, long, etc.) also have "strict" counterparts. The "strict" methods are slightly * faster, but do not do type checking or handle null values. */ -class SqlResult(val resultSet: java.sql.ResultSet) extends CollectionsSqlResult { - def withResultSet[A](f: (java.sql.ResultSet) => A) = Using.resource(resultSet)(f) +class SqlResult(private[relate] val resultSet: java.sql.ResultSet) extends CollectionsSqlResult { + private[relate] def withResultSet[A](f: (java.sql.ResultSet) => A) = Using.resource(resultSet)(f) def asSingle[A: RowParser](): A = asCollection[A, Seq](1).head def asSingle[A](parser: SqlRow => A): A = asCollection[A, Seq](parser, 1).head diff --git a/relate/src/main/scala/com/lucidchart/relate/SqlRow.scala b/relate/src/main/scala/com/lucidchart/relate/SqlRow.scala index 544207e..b6f5d2e 100644 --- a/relate/src/main/scala/com/lucidchart/relate/SqlRow.scala +++ b/relate/src/main/scala/com/lucidchart/relate/SqlRow.scala @@ -13,7 +13,7 @@ object SqlRow { def apply(rs: java.sql.ResultSet): SqlRow = new SqlRow(rs) } -class SqlRow(val resultSet: java.sql.ResultSet) { +class SqlRow(resultSet: java.sql.ResultSet) { /** * Get the number of the row the SqlResult is currently on