Skip to content

Releases: thomasnield/rxkotlin-jdbc

Release 0.4.1

14 Aug 22:02
Compare
Choose a tag to compare

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() and parameters()

Release 0.3.1

25 Jul 23:41
11195e8
Compare
Choose a tag to compare

Added blockingGet() to UpdateOperation

RxKotlin-JDBC 0.3.0

14 May 19:34
Compare
Choose a tag to compare

whereIfProvided() has been renamed to whereOptional()

RxKotlin-JDBC 0.2.8

13 May 23:07
Compare
Choose a tag to compare

Minor fixes to the 0.2.7 release

RxKotlin-JDBC 0.2.7

13 May 22:55
0f2b4b0
Compare
Choose a tag to compare

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

09 May 02:09
Compare
Choose a tag to compare

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

15 Apr 17:24
Compare
Choose a tag to compare

Fixes to indexing of parameters.

Sequence API Fixes

22 Dec 20:02
Compare
Choose a tag to compare

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

27 Nov 01:22
Compare
Choose a tag to compare

This release fixes issue #2

Named Parameter Support

08 Oct 17:17
Compare
Choose a tag to compare

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.