-
Notifications
You must be signed in to change notification settings - Fork 0
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
#4: QueryResultRow does not instantiate the row data #29
#4: QueryResultRow does not instantiate the row data #29
Conversation
* `QueryResultRow` is now instantiated, so can be used even after connection close * `JsonBString` deprecated, replaced by `SimpleJsonString` * setup for separation of unit and integration tests * integration tests database setup * github build action enhanced to support integration tests
* running integration tests in workflow * full DB setup
balta/src/main/scala/za/co/absa/db/balta/classes/QueryResultRow.scala
Outdated
Show resolved
Hide resolved
balta/src/main/scala/za/co/absa/db/balta/classes/QueryResult.scala
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,6 @@ | |||
CREATE DATABASE mag_db |
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.
why mag_
? :D
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.
Well you had to notice, didn't you. 😉
Well, I sense there are parts that might become common to balta, fa-db, ultet (🤭 ) justifying a shared basic lib (mag = seed in Hu)
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.
curiosity is my superpower :D
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.
Okay, makes sense!
balta/src/test/resources/db/postgres/05_testing._base_types_data.sql
Outdated
Show resolved
Hide resolved
balta/src/test/scala/za/co/absa/db/balta/implicits/PostgresRowIntegrationTests.scala
Outdated
Show resolved
Hide resolved
balta/src/test/scala/za/co/absa/db/balta/implicits/PostgresRowIntegrationTests.scala
Outdated
Show resolved
Hide resolved
balta/src/test/scala/za/co/absa/db/balta/implicits/PostgresRowIntegrationTests.scala
Outdated
Show resolved
Hide resolved
balta/src/test/scala/za/co/absa/db/balta/implicits/PostgresRowIntegrationTests.scala
Outdated
Show resolved
Hide resolved
balta/src/test/scala/za/co/absa/db/balta/classes/QueryResultRowIntegrationTests.scala
Show resolved
Hide resolved
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.
I finished the review for now, I like it - especially the tests you implemented and integrated them into CI!
Co-authored-by: Ladislav Sulak <laco.sulak@gmail.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.
- pull
- code review
I am missing:
- code coverage measuring.
Nice work.
|
||
- name: Filename Inspector | ||
id: scan-test-files | ||
uses: AbsaOSS/filename-inspector@master |
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.
Version 0.1.0 has already been released:
balta/src/test/scala/za/co/absa/db/balta/classes/QueryResultRowIntegrationTests.scala
Outdated
Show resolved
Hide resolved
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.
Gonna approve from my side now, looks good! However Miroslav had a good point or two, please check his comments before merging
This is more a hobby project than an official stream of work, so I don't even dare to target for some coverage. RIght now the test coverage is rather low. So either the limit would be rather low, or the check failing constantly. I don't see the point. 🤷♂️ |
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.
- pull
- code review
- IT test run
QueryResultRow
is now instantiated, so can be used even after connection closeQueryResultRow
now hascolumnCount
property tooQueryResultRow
now hasrowNumber
property tooJsonBString
deprecated, replaced bySimpleJsonString
Closes #4
Closes #27