Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    That needs to be
    val strValue = new String(bytes, StandardCharsets.UTF_8)
     Text(column.name, column.columnType, strValue)
    I hadn’t written tests yet for much of the Result, since that API was going to change at some point
    @enginoid Thanks for catching this!
    Can you log a bug for me on github? I’ll push a change today
    Fred Jonsson
    @enginoid
    Ahh, I see. Thanks for looking into it!
    Will do!
    Fred Jonsson
    @enginoid
    I've filed this away here: finagle/roc#70
    Jeffrey N. Davis
    @penland365
    Thanks so much @enginoid
    jeremyrsmith
    @jeremyrsmith
    Hi there, am I right in thinking that roc's Binary is used for the postgres binary protocol?
    was poking around the source and some of the binary decoders seem to assume a text format (i.e. the timestamp one)
    I have many of the decoders for postgres binary values implemented in scala if that would be useful
    Jeffrey N. Davis
    @penland365
    @jeremyrsmith Hi! Sorry, I’ve been on vacation recently.
    Yes, you’re 100% correct, Binary is meant to represent the Binary Postgresql encodings.
    If you’ve got many of the binary decoders that would be a HUGE help for the project - I absolutely could be wrong on some of the format, I got some of the binary encodings by looking at the Postgres jdbc code
    jeremyrsmith
    @jeremyrsmith
    Can CircleCI provide a postgres server during test like Travis can?
    I've found a good way to test binary decoders is to use a postgres server and push ScalaCheck generators through it like SELECT int4send($1::int4);
    jeremyrsmith
    @jeremyrsmith
    I noticed in some spots you use NIO ByteBuffer to wrap the byte array and read it, and in others you make a new netty buffer and copy the byte array into it; is one preferred over the other?
    there's also a bit of an issue with ambiguity - sometimes a logical scala type will map to two different type OIDs that have different codecs. IE Json - you would probably think use as[Json] for both json and jsonb but these have slightly different codecs and currently the ElementDecoder[Json] instance won't know which to use since it doesn't receive the OID.
    jeremyrsmith
    @jeremyrsmith
    @penland365 finagle/roc#72
    what's the plan for parameterized queries? Will there be an ElementEncoder typeclass for passing params?
    Jeffrey N. Davis
    @penland365
    I’ve gone back and forth. I coded up the Fast Function Call interface to get a feel for how to represent that Request / Response format in different ways, and I haven’t found what “feels” like the simplest solution to that yet
    Finding a nice typesafe solution that’s “obvious” has been more difficult for the Request than the Response
    Fred Jonsson
    @enginoid
    I'm finally back with some more details about the mysterious "Could not find element X in Row" bug: finagle/roc#74
    Jeffrey N. Davis
    @penland365
    Awesome! I'm doing morning stuff with kids, but I will look at that bug report in a couple of hours
    Divan Visagie
    @divanvisagie
    Hi , what is the strategy for prepared statements?
    Jeffrey N. Davis
    @penland365
    Hi @divanvisagie , sorry, was on vacation last week.
    Prepared Statements are something I’ve been working on and around recently, and I hope to dive int it further this month
    Jeffrey N. Davis
    @penland365
    I just pushed a new version, 0.0.4 containg dependency updates - Fiangle 6.36.0, Cats 0.6.0, Circe to 0.5.0-M2
    Vladimir Popov
    @dokwork_twitter

    Hi! How I can set value of argument in the sql query. For example:

    val req = new Request("SELECT * FROM user WHERE name = ?")

    What i shoul do for set "John" as argument of query?