zio-jdbc icon indicating copy to clipboard operation
zio-jdbc copied to clipboard

Introduce type alias for Sql[ZResultSet]

Open jdegoes opened this issue 3 years ago • 1 comments

The type Sql[ZResultSet] is of special significance: it indicates a fragment of a SQL query, which has probably not yet been completed (to represent fully-formed SQL), nor mapped into any concrete data type.

To better indicate the purpose of this type, we can introduce a SqlFragment type alias inside the jdbc package object.

package zio

package object jdbc {
   type SqlFragment = Sql[ZResultSet]
}

Then we can update existing references to Sql[ZResultSet] to instead refer to SqlFragment.

jdegoes avatar Feb 14 '22 16:02 jdegoes

@jdegoes I think this can be closed

yisraelU avatar Feb 20 '22 01:02 yisraelU