Giter Site home page Giter Site logo

Make named parameters posible about hdbi HOT 2 OPEN

s9gf4ult avatar s9gf4ult commented on September 27, 2024
Make named parameters posible

from hdbi.

Comments (2)

smoothdeveloper avatar smoothdeveloper commented on September 27, 2024

Regarding the special query parser, it seems to me that it's not really needed as it's sql implementation specific, sqlite supports different syntaxes (http://www.sqlite.org/lang_expr.html#varparam), sql server uses @paramName, etc.

That is unless we want to have a syntax specific to hdbi and have driver implementation performs the translation to the implementation specific notation, it should also support sql implementation specific / pass through.

It's a good idea to have statements almost ready to execute outside of haskell by putting it in a query / management tool; if there is a special syntax, one would need to perform additional changes before running the query in the external tool.

from hdbi.

s9gf4ult avatar s9gf4ult commented on September 27, 2024

There is method runRaw in Connection. It performs raw query without any transformations. But this query can not get parameter while it is raw and parameters must be already substitued.

I think that special syntax is good because as you say all databases have it's own query syntax for named parameters. It looks logical if you can perform one query with one syntax on different databases.

from hdbi.

Related Issues (7)

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.