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

Add makedate function to MysqlSqlModule #655 #671

Merged
merged 8 commits into from
May 27, 2022
Merged

Conversation

peixunzhang
Copy link
Contributor

No description provided.

@peixunzhang peixunzhang requested a review from a team as a code owner May 26, 2022 12:11
@CLAassistant
Copy link

CLAassistant commented May 26, 2022

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@sviezypan sviezypan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one comment and its good to go.
Also please format. I might have broken formatting when I was resolving conflicts from github directly.

val assertion = for {
r <- testResult.runCollect
} yield assert(r.head)(equalTo(expected))

assertion.mapErrorCause(cause => Cause.stackless(cause.untraced))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets simplify with
assertZIO(testResult.runHead.some)(equalTo(expected))

@@ -4,6 +4,7 @@ import java.sql.ResultSet
import java.time.{ LocalDate, Year }

import zio.sql.Sql
import java.time.LocalDate
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicated import. LocalDate is imported couple of lines above.

@sviezypan sviezypan merged commit cec08b3 into zio:master May 27, 2022
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

Successfully merging this pull request may close these issues.

4 participants