Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce type alias for Sql[ZResultSet] #19

Open
jdegoes opened this issue Feb 14, 2022 · 1 comment
Open

Introduce type alias for Sql[ZResultSet] #19

jdegoes opened this issue Feb 14, 2022 · 1 comment

Comments

@jdegoes
Copy link
Member

jdegoes commented Feb 14, 2022

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.

@yisraelU
Copy link
Contributor

@jdegoes I think this can be closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants