-
Notifications
You must be signed in to change notification settings - Fork 116
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
Implement renderInsert for Oracle #695
Conversation
Hi, I don't if I should get rid of the duplications between the Postgres module and this one. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for you work. Can you please also add few tests, something like in #685 ?
@peixunzhang seems that some tests have problems, can you please check? |
* wip * wip * wip * formatting * Insert tests * Update oracle/src/test/scala/zio/sql/oracle/OracleSqlModuleSpec.scala Co-authored-by: PeiZ <74068135+peixunzhang@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just had a couple of questions.
@@ -55,6 +58,13 @@ trait JdbcRunnableSpec extends ZIOSpecDefault with Jdbc { | |||
SqlDriver.live | |||
) | |||
|
|||
protected implicit def genInstances[R] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is this used for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
It is used to generate data for testing here:
https://github.com/zio/zio-sql/pull/695/files#diff-95c65e34d1de6f688c0376b4d84612f8fb80a163383f605194932ac51b427fcfR169
durationCol | ||
).values(row) | ||
|
||
// TODO: ensure we can read values back correctly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
has this worked? test like this would be awesome!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
if I remember correctly there was some issue with reading the data back. Can't check right now because of m1 chip.
Long term we should definitely enable this test.
No description provided.