Giter Club home page Giter Club logo

Comments (4)

rbock avatar rbock commented on July 22, 2024

Hi Matthijs,

there are several types missing, of course (I mentioned BLOBs in an
earlier reply, which I plan to add soon). I'll have to go through the
SQL standard to see which ones I want to add to sqlpp11.

Other types or alternative implementations can be added by the connector
library. I haven't done that yet, but it should be fairly straight
forward to do. Just take a look at how the existing types are implemented.

If you want to give it a try, I'd be very interested in the results :-)

Best,

Roland

from sqlpp11.

matthijs avatar matthijs commented on July 22, 2024

Hi Roland,

Did you already take a look at the SQL standard for the types?

One question about the types:
Why did you put every type of an integer (tinyint, smallint, integer and bigint) in a int64_t ?
tinyint (1 byte)
smallint (2 bytes)
integer (4 bytes)
bigint (8 bytes)

Why not separate types?

Regards, Matthijs

from sqlpp11.

rbock avatar rbock commented on July 22, 2024

Hi Matthijs,

I took a look at the SQL standard types, although not long enough for a
complete answer.

BLOB and text seem to have the same interface as char/varchar, so I
guess I'll treat those a synonyms.

timestamp and date seem quite complex because different vendors offer
different interfaces (especially with respect to time zones). I tend to
leave those to the connector llibraries, but I am not sure yet.

As for the integral types:
Using the same type for all was the simplest start. Otherwise I would
have to adjust the type for operations like addition, or multiplication
etc. That's not impossible of course, but also not the most pressing
issue IMHO.

I am open to suggestions/patches, of course :-)

Cheers,

Roland

from sqlpp11.

rbock avatar rbock commented on July 22, 2024

I am closing this one with release 0.35, which brings day_point and time_point which correspond to date and datetime. See also the remarks on #23 .

If you are interested in specific types, please open new issues for those.

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.