Coder Social home page Coder Social logo

Comments (4)

csummers avatar csummers commented on June 2, 2024

@ricardojmendez I think I'm willing to put this kind of thing directly into the next version of HugSQL. Specifically, I'm going to provide a :transform-param-keys and :transform-db-keys to handle converting incoming parameter keys (as you're asking for here) and to handle keys coming out of the database without having to override the hugsql-result-fn multimethod.

from conman.

yogthos avatar yogthos commented on June 2, 2024

Fantastic, let's leave this open as a reminder, and I can push out a new version of conman to match once it's in HugSQL.

from conman.

ricardojmendez avatar ricardojmendez commented on June 2, 2024

Perfect, that sounds like the best place for it @csummers. Tabling this change myself then. Cheers!

from conman.

nikolap avatar nikolap commented on June 2, 2024

If using the new default with next-jdbc, you can use :builder-fn configurations to manage this. https://github.com/seancorfield/next-jdbc/blob/master/doc/result-set-builders.md

You would have to override the hugsql adapter, e.g.

(hugsql/set-adapter! (next-adapter/hugsql-adapter-next-jdbc {:builder-fn my-fn-here}))

from conman.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.