Comments (2)
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hdbi.