Skip to content

Commit 251c1ab

Browse files
2 parents 0438ab1 + 5bcac0b commit 251c1ab

File tree

1 file changed

+28
-11
lines changed

1 file changed

+28
-11
lines changed

README.md

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
sqlite3pp_EZ
22
=========
33
* Unicode support
4+
* Support for all new SQLite3 sub types
5+
* Supports correct fetching DB Date and Datetime types
46
* Template Table class
57
* SQL Class Builder
68

@@ -21,18 +23,33 @@ SQLiteClassBuilder createMyClasses(
2123
);
2224
````
2325
## Generic template Table class having the following features:
24-
* Type safety for table column fields;
25-
* Table column of type INTEGER has variable member of type int
26+
* Type safety for table column fields, include additional types added by SQLite3.
27+
* Table column of type INTEGER has variable member of type Integer which is an alias for type int.
2628
* Table column of type TEXT has variable member of type Table::T_STR, which is alias for the type of string defined by the class (std:string, std::wstring, sqlite3pp::tstring, etc...)
27-
* Table column of type REAL has variable member of type double
28-
* Table column of type FLOAT has variable member of type float
29-
* Table column of type BOOLEAN has variable member of type bool
30-
* Table column of type TINYINT has variable member of type byte
31-
* Table column of type DOUBLE, DECIMAL, or NUMERIC, have variable member of type double
32-
*
33-
* Table column of type DATE and DATETIME has variable member of type time_t
34-
* Table column of type BIGINT has variable member of type __int64
35-
* Table column of type UNSIGNED BIG INT has variable member of type unsigned __int64
29+
* ... REAL has variable member of type Real, which is an alias for double.
30+
* ... FLOAT has variable member of type Float, which is an alias for double.
31+
* ... BOOLEAN has variable member of type Bolean, which is an alias for bool.
32+
* ... TINYINT has variable member of type Tinyint, which is an alias for unisigned char.
33+
* ... DATE is of type Date which has a time_t member variable.
34+
* ... DATETIME is of type Datetime, which has an std::tm member variable.
35+
* ... BIGINT is typed to **long long int** which is equevalent to type __int64, and it's a more portable type
36+
* ... UNSIGNED BIG INT is typed to **unsigned long long int**
37+
* The following types are also supported:
38+
* using Int = int;
39+
* using Int2 = int;
40+
* using Int8 = int;
41+
* using Smallint = short int;
42+
* using Mediumint = int;
43+
* sing Numeric = double;
44+
* using Decimal = double;
45+
* using DoublePrcsn = double;
46+
* using Double = double;
47+
* using Blob = std::shared_ptr<std::vector<Tinyint> >;
48+
* using Clob = std::shared_ptr< std::basic_string<unsigned char> >;
49+
* using Nchar = **std::wstring**;
50+
* using Nvarchar = **std::wstring**;
51+
* using Character = std::string;
52+
* using Varchar = std::string;
3653
* Automatically populate the Table class with associated table
3754
* Example:
3855
````cpp

0 commit comments

Comments
 (0)