Releases: thomasnield/rxkotlin-jdbc
Release 0.4.1
This release contains a major enhancements and some large refactorings reorganizing the codebase.
- Batching support is now here, see README to learn more
- Code has been separated into several files
- Some extensions were added to
PreparedStatement
,parameter()
andparameters()
Release 0.3.1
Added blockingGet()
to UpdateOperation
RxKotlin-JDBC 0.3.0
whereIfProvided()
has been renamed to whereOptional()
RxKotlin-JDBC 0.2.8
Minor fixes to the 0.2.7 release
RxKotlin-JDBC 0.2.7
Added a whereIfProvided()
experimental functionality. This allows you to dynamically pick and choose WHERE conditions using Kotlin default parameter functions.
See README for more info.
0.2.6
This release has a convenience called toPipeline()
, which is an API-friendly deference to choose receiving mapped query results through an Observable,
Flowable,
Sequence,
Single, or
Maybe`.
data class User(val userName: String, val password: String)
fun getUsers() = conn.select("SELECT * FROM USER")
.toPipeline {
User(it.getString("USERNAME"), it.getString("PASSWORD"))
}
fun main(args: Array<String>) {
getUsers().toFlowable().subscribe { println("Receiving $it via Flowable") }
getUsers().toObservable().subscribe { println("Receiving $it via Observable") }
getUsers().toSequence().forEach { println("Receiving $it via Sequence") }
}
0.2.4
Fixes to indexing of parameters.
Sequence API Fixes
I have found that using RxJava blocking operators to support toSequence()
operators was not the best approach (e.g. too much risk for interruption exceptions in Rx contexts), so I re-implemented them at the Iterable
level.
On top of the re-implementation of toSequence()
, I also added blockingFirst()
and blockingFirstOrNull()
operators.
This Sequence
API may be candidate for extraction into a separate library in the future (and be used as a dependency in this one), but until we hit a 1.0 version it's home will be here. The transition should be fairly painless and require only a few import changes.
Please view README for details.
Bug fix with nameless parameters
This release fixes issue #2
Named Parameter Support
Major changes to the implementation of RxKotlin-JDBC have occurred, particularly to better support named parameters and more flexible builder implementations.
Please review README for usage examples.