forked from qt-creator/qt-creator
Sqlite: Cleanup table and column handling
Using values instead of pointers makes the handling much easier. We can remove ColumnDefinition too, and use SqliteColumn instead. Change-Id: I224db9cc569c4dfb6e2746179b02096904bfbccb Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -37,7 +37,8 @@
|
||||
# define SQLITE_EXPORT Q_DECL_IMPORT
|
||||
#endif
|
||||
|
||||
enum class ColumnType {
|
||||
enum class ColumnType : char
|
||||
{
|
||||
Numeric,
|
||||
Integer,
|
||||
Real,
|
||||
@@ -45,11 +46,19 @@ enum class ColumnType {
|
||||
None
|
||||
};
|
||||
|
||||
enum class ColumnConstraint {
|
||||
enum class IsPrimaryKey : char
|
||||
{
|
||||
No,
|
||||
Yes
|
||||
};
|
||||
|
||||
enum class ColumnConstraint : char
|
||||
{
|
||||
PrimaryKey
|
||||
};
|
||||
|
||||
enum class JournalMode {
|
||||
enum class JournalMode : char
|
||||
{
|
||||
Delete,
|
||||
Truncate,
|
||||
Persist,
|
||||
@@ -57,7 +66,8 @@ enum class JournalMode {
|
||||
Wal
|
||||
};
|
||||
|
||||
enum TextEncoding {
|
||||
enum TextEncoding : char
|
||||
{
|
||||
Utf8,
|
||||
Utf16le,
|
||||
Utf16be,
|
||||
|
||||
Reference in New Issue
Block a user