Comments (8)
How you implement those "bind" calls is up to the requirements of the database.
What you write about Sybase sounds like the way that sqlite does it, too. Can you take a look at the sqlilte3 connector and see if that matches? You might also take a look at the two different result types in the mysql connector. The bind_result, which is used for prepared statements, could be similar (in fact, the basic idea is pretty much the same as with the sqlite3 connector).
Let me know :-)
Regards,
Roland
from sqlpp11.
Currently I have looked at SQLITE3 and there I found out, that there is no real binding. SQLITE3 extecute the statement, gets the row and THEN gets the value from the result set column into the variable seperately ... as far as I have understood this.
In Sybase I have to bind the variables BEFORE any row is read. Therefore infact, there is no need to do anything when a row is fetched.
But I will try to get the MySQL stuff tomorrow to see, if it different there.
BR Michael
from sqlpp11.
I think I understand the idea better now. The MySQL stuff is a bit different from sqlite3, but still not exactly what you are looking for.
But it should be possible, though. You could do the binding when the first row is fetched and do nothing for all following rows...
Best,
Roland
from sqlpp11.
Going through the current issues, I wondered if you are still interested in creating a connector to Sybase? It should certainly be possible and might be even more interesting now, with that pull request that will allow compilation with MSVC.
Let me know if I can help.
Cheers,
Roland
from sqlpp11.
Well, I have created the connector within a project in a company, so it is up to them to upload this connector. Their development network have had no access to the WWW for me, so I could not upload it here, sorry. Works fine, added new error handling instead of raising exeptions which speeds up the processes.
BR
Michael
from sqlpp11.
OK, the good news is: It is definitely possible :-)
Alternative error handling sounds interesting, too, of course.
Best,
Roland
from sqlpp11.
This is also on my wishlist.
from sqlpp11.
I am compiling a wish list. This goes onto it.
Closing the ticket.
from sqlpp11.
Related Issues (20)
- How to use cascade delete HOT 2
- Length of the blob received by "select" HOT 2
- Datetime column breaking insertions into database HOT 9
- sqlpp/connection_pool.h: pooled_connection is inaccessable HOT 1
- SQLite3 connection pool error using HOT 4
- Support for pragma tables HOT 1
- sqlite3_step return code 5 with connection pool HOT 2
- how to get a column by string? HOT 2
- how can I use a in where condition,I always get an error? HOT 4
- mingw64, vcpkg, CMake, Project installation cannot find mariadb ? HOT 5
- sqlite connector: execute() silently ignores statements after the first one HOT 7
- how to use binary equal in where HOT 2
- Is there any opentracing support in sqlpp,like jaeger?Will it be supported in the future? HOT 1
- how to fix update exception? HOT 23
- How to retrieve the row count of a query result? HOT 6
- mysql does not seem to support the TIME type HOT 4
- Multiple table query error HOT 3
- Mysql prepared_statement.h missing _bind_time_of_day_parameter function HOT 3
- How do I get record with count of references from one to many? HOT 4
- Handling of `::sqlpp::tag::enforce_null_result_treatment` does not seem to be implemented, NULL documentation is erroneous HOT 11
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 sqlpp11.