Giter Club home page Giter Club logo

Comments (8)

rbock avatar rbock commented on July 22, 2024

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.

Martini-edv avatar Martini-edv commented on July 22, 2024

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.

rbock avatar rbock commented on July 22, 2024

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.

rbock avatar rbock commented on July 22, 2024

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.

Martini-edv avatar Martini-edv commented on July 22, 2024

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.

rbock avatar rbock commented on July 22, 2024

OK, the good news is: It is definitely possible :-)

Alternative error handling sounds interesting, too, of course.

Best,

Roland

from sqlpp11.

knedlsepp avatar knedlsepp commented on July 22, 2024

This is also on my wishlist.

from sqlpp11.

rbock avatar rbock commented on July 22, 2024

I am compiling a wish list. This goes onto it.

Closing the ticket.

from sqlpp11.

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.