QGIS API Documentation 3.41.0-Master (3291e9ff48b)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
sqlite3_statement_unique_ptr Class Reference

Unique pointer for sqlite3 prepared statements, which automatically finalizes the statement when the pointer goes out of scope or is reset. More...

#include <qgssqliteutils.h>

Inheritance diagram for sqlite3_statement_unique_ptr:
Inheritance graph
[legend]

Public Member Functions

QByteArray columnAsBlob (int column) const
 Returns the column value from the current statement row as raw byte array.
 
double columnAsDouble (int column) const
 Gets column value from the current statement row as a double.
 
qlonglong columnAsInt64 (int column) const
 Gets column value from the current statement row as a long long integer (64 bits).
 
QString columnAsText (int column) const
 Returns the column value from the current statement row as a string.
 
int columnCount () const
 Gets the number of columns that this statement returns.
 
QString columnName (int column) const
 Returns the name of column.
 
int step ()
 Steps to the next record in the statement, returning the sqlite3 result code.
 

Detailed Description

Unique pointer for sqlite3 prepared statements, which automatically finalizes the statement when the pointer goes out of scope or is reset.

Definition at line 67 of file qgssqliteutils.h.

Member Function Documentation

◆ columnAsBlob()

QByteArray sqlite3_statement_unique_ptr::columnAsBlob ( int  column) const

Returns the column value from the current statement row as raw byte array.

Definition at line 67 of file qgssqliteutils.cpp.

◆ columnAsDouble()

double sqlite3_statement_unique_ptr::columnAsDouble ( int  column) const

Gets column value from the current statement row as a double.

Definition at line 52 of file qgssqliteutils.cpp.

◆ columnAsInt64()

qlonglong sqlite3_statement_unique_ptr::columnAsInt64 ( int  column) const

Gets column value from the current statement row as a long long integer (64 bits).

Definition at line 74 of file qgssqliteutils.cpp.

◆ columnAsText()

QString sqlite3_statement_unique_ptr::columnAsText ( int  column) const

Returns the column value from the current statement row as a string.

Definition at line 62 of file qgssqliteutils.cpp.

◆ columnCount()

int sqlite3_statement_unique_ptr::columnCount ( ) const

Gets the number of columns that this statement returns.

Definition at line 57 of file qgssqliteutils.cpp.

◆ columnName()

QString sqlite3_statement_unique_ptr::columnName ( int  column) const

Returns the name of column.

Definition at line 47 of file qgssqliteutils.cpp.

◆ step()

int sqlite3_statement_unique_ptr::step ( )

Steps to the next record in the statement, returning the sqlite3 result code.

Definition at line 42 of file qgssqliteutils.cpp.


The documentation for this class was generated from the following files: