Hello Tommi,

I was thinking it would be really neat if tntdb supported
64 bit integers, which seem to be supported by sqlite3,
MySQL 5.0 (natively in 5.1), PostgresQL 8.1 and
Oracle 10g release 2.  I can volunteer to provide diffs
to implement it for all the databases that tntdb supports
if you like?

64 bit integers would be really useful as keys.

I wonder if maybe it might be useful to add methods
for 16 bit integers, and maybe redundant methods
for 32 bit integers?

I'm not really sure what to call the typedefs and
method names.  One idea is something like:

namespace tntdb
{
  class Value
  {
public:
    typedef unsigned size_type;
    typedef unsigned short unsigned16;
    typedef unsigned unsigned32;
    typedef unsigned long long unsigned64;

    typedef short int16;
    typedef int int32;
    typedef long long int64;

    unsigned16 getUnsigned16() const;
    unsigned32 getUnsigned32() const;
    unsigned64 getUnsigned64() const;

    int16 getInt16() const;
    int32 getInt32() const;
    int64 getInt64() const;
  };
};

Thanks, Mark


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to