diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-14 16:36:58 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-21 15:40:00 +0200 |
commit | f14743ef28248ea8a8ad9bae1c7c3d6a354da257 (patch) | |
tree | bcfa7088ae70d7fff9656b102c7c5a9d9ad17f73 /odb/relational/sqlite/context.hxx | |
parent | add8086259fb21f1e42aba6546c55e607d87ce93 (diff) |
Add support for SQLite type system, adjust code generators
Diffstat (limited to 'odb/relational/sqlite/context.hxx')
-rw-r--r-- | odb/relational/sqlite/context.hxx | 50 |
1 files changed, 3 insertions, 47 deletions
diff --git a/odb/relational/sqlite/context.hxx b/odb/relational/sqlite/context.hxx index 0aff8f5..1aa18af 100644 --- a/odb/relational/sqlite/context.hxx +++ b/odb/relational/sqlite/context.hxx @@ -18,60 +18,16 @@ namespace relational // enum core_type { - // Integral types. - // - TINYINT, - SMALLINT, - MEDIUMINT, - INT, - BIGINT, - - // Float types. - // - FLOAT, - DOUBLE, - DECIMAL, - - // Data-time types. - // - DATE, - TIME, - DATETIME, - TIMESTAMP, - YEAR, - - // String and binary types. - // - CHAR, - BINARY, - VARCHAR, - VARBINARY, - TINYTEXT, - TINYBLOB, + INTEGER, + REAL, TEXT, BLOB, - MEDIUMTEXT, - MEDIUMBLOB, - LONGTEXT, - LONGBLOB, - - // Other types. - // - BIT, - ENUM, - SET, - - // Invalid type. - // invalid }; - sql_type () : type (invalid), unsign (false), range (false) {} + sql_type (): type (invalid) {} core_type type; - bool unsign; - bool range; - unsigned int range_value; // MySQL max value is 2^32 - 1 (LONGBLOG/TEXT). }; class context: public virtual relational::context |