diff options
author | Marco Bubke <marco.bubke@qt.io> | 2021-02-10 15:52:58 +0100 |
---|---|---|
committer | Marco Bubke <marco.bubke@qt.io> | 2021-02-15 10:39:45 +0000 |
commit | e3d12e659aa0779cb3cca3b8988abaedb3249748 (patch) | |
tree | 6b136d714538e327479e7301f03fca3ae42627ba /tests/unit/unittest/mocksqlitestatement.h | |
parent | 18fe4233f8a5dedb3740d59af73ae6f312c591a9 (diff) |
Sqlite: Add readTo method
There are cases when you want to read to an already existing container.
This will prepare for the RETURNING extension in the next Sqlite version
where you can write and read. That will simplify quite some code.
Change-Id: I740ffbedecf72bb5518392f3707a0a6b2221db56
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'tests/unit/unittest/mocksqlitestatement.h')
-rw-r--r-- | tests/unit/unittest/mocksqlitestatement.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/unittest/mocksqlitestatement.h b/tests/unit/unittest/mocksqlitestatement.h index 767840ee8f4..141eb9520ba 100644 --- a/tests/unit/unittest/mocksqlitestatement.h +++ b/tests/unit/unittest/mocksqlitestatement.h @@ -41,9 +41,10 @@ public: MOCK_CONST_METHOD1(fetchLongValue, long (int)); MOCK_CONST_METHOD1(fetchLongLongValue, long long (int)); MOCK_CONST_METHOD1(fetchDoubleValue, double (int)); - MOCK_CONST_METHOD1(fetchSmallStringValue, Utils::SmallString (int)); + MOCK_CONST_METHOD1(fetchSmallStringValue, Utils::SmallString(int)); MOCK_CONST_METHOD1(fetchSmallStringViewValue, Utils::SmallStringView(int)); MOCK_CONST_METHOD1(fetchPathStringValue, Utils::PathString (int)); + MOCK_CONST_METHOD1(fetchValueView, Sqlite::ValueView(int)); template<typename Type> Type fetchValue(int column) const; |