Sqlite: Add carray extension from Sqlite and a pointer binding

Change-Id: I96c160514ac80458cbcbff0151c685958de71fdd
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Marco Bubke
2020-05-16 14:27:41 +02:00
committed by Tim Jenssen
parent e979640892
commit 36fd58fbe9
8 changed files with 498 additions and 7 deletions

View File

@@ -175,6 +175,17 @@ void BaseStatement::bind(int index, double value)
checkForBindingError(resultCode);
}
void BaseStatement::bind(int index, void *pointer)
{
int resultCode = sqlite3_bind_pointer(m_compiledStatement.get(),
index,
pointer,
"carray",
nullptr);
if (resultCode != SQLITE_OK)
checkForBindingError(resultCode);
}
void BaseStatement::bind(int index, Utils::SmallStringView text)
{
int resultCode = sqlite3_bind_text(m_compiledStatement.get(),