https://kotlinlang.org logo
Join SlackCommunities
Powered by
# kdbc
  • e

    edvin

    03/09/2017, 3:51 PM
    It will probably hurt right now, and I think we both have more important things to do though.
  • t

    thomasnield

    03/09/2017, 3:58 PM
    @edvin I think as soon as Gradle 3.5 is out officially, I think it might be good to start using it for a startup project or two just to get familiar. It helps to be ahead of the curve. It prevents urgent need for learning it later.
  • e

    edvin

    03/09/2017, 3:59 PM
    @thomasnield Good plan. I'll do the same.
    K 1
    👍 1
  • t

    thomasnield

    03/18/2017, 4:16 AM
    I've been working on this today at work. Ill have some stuff to give back on Monday.
  • e

    edvin

    03/18/2017, 7:13 AM
    Exciting! I've been missing working on this as well, I have a project I want to use it for but things have been crazy lately.
  • t

    thomasnield

    03/18/2017, 12:32 PM
    @edvin no worries, me too
  • e

    edvin

    03/18/2017, 1:01 PM
    I guess you have a thing or two to do at work these days :))
  • t

    thomasnield

    03/18/2017, 1:52 PM
    @edvin haha on my first and second day, I've had a lot of people approach me and have high expectations. No pressure. I may push to start a project that would allow me to showcase TornadoFX and Kotlin for rewriting one of the aircraft turnaround metric tools written in MS Access. I've gotten a lot of people asking if I could help with that...
  • r

    ron

    03/18/2017, 3:33 PM
    gods rewriting that in anything but ms ACCESS is an improvement
    😱 1
  • e

    edvin

    03/18/2017, 3:58 PM
    @thomasnield Wow, that sounds like a very nice use case. And if you can rid the world of an MS Access "app" in the process, that's almost like humanitarian aid. Go for it!
    K 1
  • r

    ron

    03/18/2017, 3:59 PM
    not almost, it is humanitarian aid
  • t

    thomasnield

    03/18/2017, 4:09 PM
    To quote Mike Judge's Silicon Valley, "to make the world a better place..." by replatforming legacy Microsoft Access applications.
  • e

    edvin

    03/18/2017, 4:11 PM
    Haha 😆
  • t

    thomasnield

    03/25/2017, 3:58 AM
    I'm curious, when you do a Sequence operator that abandons the iteration early, does disposal of JDBC ResultSet happen appropriately?
  • e

    edvin

    03/25/2017, 7:23 AM
    @thomasnield No, and that would be dangerous. I think I wrote a comment about that in the code. If you need a sequence and abandon it early, you must call
    close()
    explicitly on the Query, or do
    query.use{}
    . (I just added that)
  • e

    edvin

    03/25/2017, 7:23 AM
    Didn't find a comment though, maybe it was in an earlier iteration 🙂
  • e

    edvin

    03/25/2017, 7:29 AM
    @thomasnield Hmm.. maybe I was too quick.. Should we close the resultSet or the connection in close()?
  • t

    thomasnield

    03/25/2017, 12:01 PM
    Perhaps both at times? What if I use operators that only take the first few elements?
  • e

    edvin

    03/27/2017, 12:56 PM
    If we close the connection, we close the ResultSet, so maybe that's fine. If you wrap in a
    query.use { }
    block, you can just take a few elements an you'll be fine. Without the use block you'd have to consume everything, or we need to find a hook to close the resultSet.
  • m

    mesquka

    04/26/2017, 2:22 PM
    @mesquka has left the channel
  • r

    rrader

    05/19/2017, 7:14 AM
    https://blog.jooq.org/2017/05/18/10-nice-examples-of-writing-sql-in-kotlin-with-jooq/
  • p

    Petros Paraskevopoulos

    07/07/2017, 12:42 PM
    @Petros Paraskevopoulos has left the channel
  • t

    thomasnield

    12/26/2017, 5:33 PM
    Hey @edvin, I kind of started creating a fluent JDBC API to work with Sequences that fits my needs. Do you think this should be added to KDBC at some point? My
    rxkotlin-jdbc
    library can simply add
    toObservable()
    and
    toFlowable()
    extensions on top of it.
  • t

    thomasnield

    12/26/2017, 5:33 PM
    https://github.com/thomasnield/rxkotlin-jdbc
  • e

    edvin

    12/26/2017, 5:38 PM
    Hey Thomas! Absolutely, no need to reinvent the wheel if they have a common base. I'd really like to get back into KDBC, because I see myself using it down the line.
  • e

    edvin

    12/26/2017, 5:40 PM
    I have my idea about how to perform queries, I don't know if that fits your vision though. I don't think the examples in the readme are completely up to date, I will take a look tonight!
  • t

    thomasnield

    12/27/2017, 2:25 AM
    @edvin no rush, I'm still maturing things on my end too but I think it's starting to solidify.
  • t

    thomasnield

    12/27/2017, 2:25 AM
    I've been using this in production at work for some time.
  • t

    thomasnield

    12/27/2017, 2:26 AM
    But I think we can still try to make KDBC the SQLAlchemy of Kotlin, and support multiple idioms and approaches to JDBC querying.
  • e

    edvin

    12/27/2017, 1:49 PM
    Yeah, that's a good idea. Different approaches from just strings to type safe queries should be supported 🙂
    👍 1