Sqlite: Add blob support

Change-Id: Ic2ec5f20c8585241b9e9aaa8465e70b6ab4f004c
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Marco Bubke
2020-05-26 20:31:41 +02:00
parent 22c33fb859
commit 9c44f8d88d
8 changed files with 204 additions and 38 deletions

View File

@@ -85,6 +85,15 @@ TEST(SqliteValue, ConstructStringFromQString)
ASSERT_THAT(value.toStringView(), Eq("foo"));
}
TEST(SqliteValue, ConstructStringFromBlob)
{
// Utils::span<const Sqlite::byte> bytes{reinterpret_cast<const Sqlite::byte *>("abcd"), 4};
// Sqlite::Value value{bytes};
//ASSERT_THAT(value.toBlob(), Eq(bytes));
}
TEST(SqliteValue, ConstructNullFromNullQVariant)
{
QVariant variant{};