Sqlite: Improve Sqlite wrapper

It is now possible to read values at once.

for (auto [name, value] : statement.tupleValues<String, int>(1000, "foo", 20))
   ....

Change-Id: I3d4bc5218810b4620e1df625126aa490f30bbc71
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Marco Bubke
2017-08-17 15:33:25 +02:00
parent 8617f497bc
commit 1a25b61576
24 changed files with 769 additions and 277 deletions

View File

@@ -37,6 +37,8 @@
# define SQLITE_EXPORT Q_DECL_IMPORT
#endif
namespace Sqlite {
enum class ColumnType : char
{
Numeric,
@@ -46,10 +48,11 @@ enum class ColumnType : char
None
};
enum class IsPrimaryKey : char
enum class Contraint : char
{
No,
Yes
NoConstraint,
PrimaryKey,
Unique
};
enum class ColumnConstraint : char
@@ -84,3 +87,5 @@ enum TextEncoding : char
#endif
};
} // namespace Sqlite