Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Mark Siebert
    @msiebert
    as you commanded, judd
    James Judd
    @jjudd
    Woo
    Gregg Hernandez
    @gregghz
    yay!
    Gregg Hernandez
    @gregghz
    I've got a WIP branch for relate to add some neat macros. Right now I have the def macros generateParseable and generateSnakeParseable. I also have a @Record annotation macro. All of these things generate Parseable[A] for any case class. Any thoughts/ideas on other possible macros?
    aappddeevv
    @aappddeevv
    I've been using relate and its been working great. Had a question, it seems there are two primary modes for the query strings, expandable and and the interpolated approach. Is this right?
    Gregg Hernandez
    @gregghz
    That's correct. There's a branch and PR floating around that removes the expandable approach since it's generally more verbose and kind of clumsy. No firm plans yet though
    At lucid, after the interpolated approach was merged, we ported everything to use that method. It's just easier to get right, more readable, and generally better.
    aappddeevv
    @aappddeevv
    Got it. The use case I have is metadata driven flat file loads to rdbms. I define mapping functions elsewhere and implicitly pick up string to Parameter functions then apply that to the csv values for the insert statement. I don't have domain objects and there are no "types" close to the statements. Everything still worked great.
    jargalbaatar
    @gijan
    Hi
    row.longOption("ID") Oracle 11g MatchError BigDecimal, is Fixed
    Gregg Hernandez
    @gregghz
    Try row.bigDecimal("ID").longValue if you're sure the value fits in a long.
    bigDecimalOption, I mean
    jargalbaatar
    @gijan
    def getLong(value: Option[BigDecimal]):Option[Long] = {
    value match {
    case Some(x) => Some(x.longValue())
    case _ => None
    }
    }
    my ?
    :D
    Gregg Hernandez
    @gregghz
    row.bigDecimalOption("ID").map(_.longValue) will work too. A little less boiler plate.
    jargalbaatar
    @gijan
    thanks.
    row.bigDecimalOptoin("BLA") Invalid Column result None
    Anorm (get("BLA") ?)
    joda DateTime suppoert
    my first Test Anorm vs Relate rows=20 Anorm(29 ms) vs Relate(19 ms)
    jargalbaatar
    @gijan
    method apply in object RowParser is deprecated: Use plain SqlResult => A
    warning
    ruslanasa
    @ruslanasa
    hi everybody, anybody knows about plans to release relate for scala 2.12 ?
    Gregg Hernandez
    @gregghz
    I keep thinking about it. I'll take a glance and see what needs to be done real quick.
    specs2, scalameter and anorm all don't have a scala 2.12 release. In theory this means we should be able to build against 2.12 but not run tests/benchmarks against it.
    @ruslanasa also, sorry for taking so long to reply :(
    Gregg Hernandez
    @gregghz
    while we might be able to do something pretty tricky to get a 2.12 build out now, it's much more likely that we'll have to wait for those projects to update to 2.12
    ruslanasa
    @ruslanasa
    @gregghz thank you for responding!
    ruslanasa
    @ruslanasa
    @gregghz I'll be using 2.11 for now!
    @gregghz I'll be using 2.11 for now.
    Anorm is not available, but we can figure out a way to exclude it.
    Gregg Hernandez
    @gregghz
    Weird. Back in December I think I just changed the scala version to 2.12 and saw what failed to resolve. I'm guessing I needed to bump versions of those projects too.
    Paul Draper
    @pauldraper
    Yeah, that's probably it
    Paul Draper
    @pauldraper
    lucidsoftware/relate#41
    ^ 2.12 upgrade