-
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
Feature/doobie with status #106
Merged
Merged
Changes from all commits
Commits
Show all changes
68 commits
Select commit
Hold shift + click to select a range
91f4e39
#99: DBEngine requirement removed from DBSchema. Fixes #99.
salamonpavel 5045b8a
#99: Added DBSchema tests in order to increase code coverage.
salamonpavel 15e9603
tmp code of doobie integration
salamonpavel 264f510
tmp code of doobie integration
salamonpavel 27fac52
tmp code of doobie integration
salamonpavel c1baa58
it example, status handling (extends not the implementation)
salamonpavel d12d96a
integration tests
salamonpavel 804035d
integration tests
salamonpavel d83b274
minors
salamonpavel 491e235
enceladus example fixed
salamonpavel 088065f
build related
salamonpavel d766c25
alternative constructors
salamonpavel 6f0845e
licences added
salamonpavel 991b446
allow for other types for doobiepgengine
salamonpavel 8bd682e
scaladocs update with respect to generic type of doobiedbengine
salamonpavel 25c42ec
fix formatting
salamonpavel 1b789bb
fix slick part and added cats effect dependency
salamonpavel a95d958
minors
salamonpavel f49645c
relax monad requirement from dobiepgengine
salamonpavel b76801b
minors
salamonpavel d75b13a
tmp commit
salamonpavel a3784d7
tmp commit
salamonpavel bcd8d75
first working version
salamonpavel 3a1f740
working version with status handling available to be defined by clien…
salamonpavel bd2a21f
StandardQueryStatusHandlingTest
salamonpavel 45e483e
Slick tests refactoring
salamonpavel 6684599
exceptions with docs
salamonpavel 320073e
docs for the supporting classes
salamonpavel 62f62b7
docs for dbfunction and query
salamonpavel 88fce85
docs doobie module
salamonpavel 299dde5
reduce the amount of docs in dbfunction
salamonpavel 0c58a68
minors
salamonpavel 84e30ef
minors
salamonpavel 5f95411
slick function docs
salamonpavel 6cd018d
selectEntry available for both Doobie and Slick modules
salamonpavel e4a16f7
package renamed, new test for all dates and times common in java, pac…
salamonpavel 742ab50
write times and dates test
salamonpavel 80a72d4
test of unsuccessfull functions with status
salamonpavel af15e7f
other types reading test
salamonpavel 6711e88
clean-up
salamonpavel 43b60c4
scala 2.13 support
salamonpavel 414cfa0
added missing licenses
salamonpavel f5db217
github action for 2.13
salamonpavel 03a4a58
clean-up
salamonpavel 852bf6d
doobie module part of coverage reporting
salamonpavel 7695b29
ExplicitNamingRequiredTest
salamonpavel 2799189
DBFunctionFabricTest
salamonpavel 9a2eeea
pr comments addressed
salamonpavel e3c6e7f
asisnaming test
salamonpavel b8a4338
downgrade to 1.0.0-RC2 as that's last version with compatible hikari
salamonpavel 94d0212
package object removed - obsolete, meta instances test
salamonpavel f647caa
docs how to set up things in zio app
salamonpavel cdb6feb
docs how to set up things in zio app
salamonpavel 712ac82
2.13.11 -> 2.13.12
salamonpavel 6efd571
doc strings refactored
salamonpavel 8144e89
Added license headers.
salamonpavel bc729ea
Change package name
salamonpavel e8a5607
added Doobie into readme files
salamonpavel 9df379f
fix jacoco report settings
salamonpavel 1050b60
first scala 2.12
salamonpavel cddce94
upgrade jacoco-report action to 1.4
salamonpavel 0c724ed
upgrade jacoco-report action to 1.5
salamonpavel bb0de8c
exclude UserDefinedStatusHandling
salamonpavel 4db0a7b
exclude DBEngine
salamonpavel 17cd6bd
exclude DBFunction
salamonpavel 15b3b15
exclude slick and doobie
salamonpavel 3e10b58
exclude slick and doobie
salamonpavel 9c65cc3
tmp disable jacoco fail action
salamonpavel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,3 +46,5 @@ dist | |
test-output | ||
build.log | ||
.bsp | ||
/.bloop/ | ||
/.metals/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
version = "3.5.3" | ||
runner.dialect = scala213 | ||
|
||
maxColumn = 120 | ||
|
||
align.preset = some | ||
align.multiline = false | ||
|
||
align.tokens = [ | ||
{ | ||
code = "<-" | ||
}, | ||
{ | ||
code = "=>" | ||
owners = [{ | ||
regex = "Case" | ||
}] | ||
} | ||
] | ||
|
||
indent.main = 2 | ||
indent.defnSite = 2 | ||
|
||
lineEndings = unix | ||
|
||
docstrings.blankFirstLine = yes | ||
docstrings.style = AsteriskSpace | ||
docstrings.wrap = no | ||
docstrings.removeEmpty = true | ||
|
||
align.openParenDefnSite = false | ||
align.openParenCallSite = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
perhaps these two can even live in
Query.scala
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 believe they have to be defined like this in DBEngine, otherwise we wouldn't be able to reference them as dBEngine.QueryType[R] and dBEngine.QueryWithStatusType[R] in DBFunction, respectively DBFunctionWithStatus.
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.
QueryType
is a type member of theDBEngine
abstract class. It's a higher-kinded type, meaning it's a type that takes another type as a parameter.The
<: Query[R]
part is a type bound. It means that whatever typeQueryType[R]
is, it must be a subtype ofQuery[R]
.Query[R]
is presumably another type that represents a database query that returns results of typeR
.In the context of
DBEngine
,QueryType
is used to abstract over the specific type of queries that a particular database engine can execute. One of the key features of type members is that they can be overriden in subclasses or subtraits. Different implementations ofDBEngine
can use different types of queries, as long as they are subtypes ofQuery[R]
.For example, one implementation of
DBEngine
might use SQL queries, while another might use NoSQL queries. These different types of queries can have different methods and properties, but as long as they are subtypes ofQuery[R]
, they can be used withDBEngine
.This is a powerful feature of Scala's type system that allows for a high level of abstraction and flexibility in your code.