Giter VIP home page Giter VIP logo

Comments (5)

rbock avatar rbock commented on August 19, 2024

Hi,

That sounds very promising! As far as I can tell from your description, there are no critical issues.

Regarding encoding: I use sqlpp11 with UTF-8 most of the time.

I haven't really thought about wide strings yet. Assuming you don't need table or column names to be presented internally as wide character sequences, the main thing would be to allow wide character strings as text, I think. That might be just a few lines of code in the main library, actually. And then you could work with a serializer that produces SQL with wide characters...

Maybe you want to experiment with that?

Let me know when you think it is ready to be tested or used by others. I will add a link to sqlpp11's readme.

from sqlpp11.

Erroneous1 avatar Erroneous1 commented on August 19, 2024

I use UTF-8 myself as well because I'm mainly a Linux developer. When I do have to do Windows I always just do everything in ASCII because wide characters make no sense to me in a UTF-8 enabled world.

I think I should test update, remove, and the dynamic_ variants before I'd say it is ready, but if those behave the same way as either select or insert I'd say it should be ready now. BTW, is there a way to iterate through a results row by column, say for printing the values? In my ODBCTest.cpp I've got some functions to print out the returned results, but it would be nice if I could iterate over the columns instead of breaking everything up into different lines (especially since "NULL" isn't the same type as a given column so I can't use a ternary operator).

from sqlpp11.

rbock avatar rbock commented on August 19, 2024

As of now, there is no way to iterate through the columns. But it should be quite simple to add an accept method that takes a visitor argument.

Actually, there already are such methods, see for instance _bind() in result_row.h.

You could either submit a pull request with an accept method or write an issue (the latter will probably take a few days to get dealt with).

from sqlpp11.

rbock avatar rbock commented on August 19, 2024

Hi,

Any update on the odbc connector? Do you think it makes sense to link to it already?

Best,

Roland

from sqlpp11.

Erroneous1 avatar Erroneous1 commented on August 19, 2024

Yes link away. For some reason I thought you meant binary link instead of hyper link.

I tested insert, update, select, and delete. Should work fine, though I personally am considering it experimental until I finish a project using it.

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.