HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_SqliteStatementImpl Class Referencefinal

#include <UT_SQL.h>

+ Inheritance diagram for UT_SqliteStatementImpl:

Public Member Functions

 UT_SqliteStatementImpl (const UT_SqlBaseDriver &driver, const UT_StringRef &sql)
 
 UT_SqliteStatementImpl (const UT_SqlBaseDriver &driver)
 
 ~UT_SqliteStatementImpl () override
 
 UT_NON_COPYABLE (UT_SqliteStatementImpl)
 
void reset (bool clear_bindings=false) overridefinal
 
NO_DISCARD int columnAsInt (int idx) const overridefinal
 
NO_DISCARD bool columnAsBool (int idx) const overridefinal
 
NO_DISCARD int64 columnAsInt64 (int idx) const overridefinal
 
NO_DISCARD UT_StringHolder columnAsStr (int idx) const overridefinal
 
NO_DISCARD double columnAsDouble (int idx) const overridefinal
 
NO_DISCARD UT_IntArray columnAsIntArray (int idx) const overridefinal
 
NO_DISCARD UT_Int64Array columnAsInt64Array (int idx) const overridefinal
 
NO_DISCARD UT_DateTimeField columnAsDate (int idx) const overridefinal
 
NO_DISCARD const voidcolumnAsBlob (int idx, int &size) const overridefinal
 
NO_DISCARD Blob columnAsBlob (int idx) const overridefinal
 
NO_DISCARD null_tag_t columnAsNull (int idx) const overridefinal
 
NO_DISCARD UT_StringHolder columnName (int idx) const overridefinal
 
NO_DISCARD int columnCount () const overridefinal
 
NO_DISCARD DataType columnType (int idx) const overridefinal
 
NO_DISCARD int columnBytes (int idx) const overridefinal
 
const char * sql () const overridefinal
 
bool bind (int idx, null_tag_t) overridefinal
 
bool bind (int idx, const UT_StringRef &value) overridefinal
 
bool bind (int idx, const char *value) overridefinal
 
bool bind (int idx, int value) overridefinal
 
bool bind (int idx, int64 value) overridefinal
 
bool bind (int idx, bool value) overridefinal
 
bool bind (int idx, double value) overridefinal
 
bool bind (int idx, const UT_IntArray &value) overridefinal
 
bool bind (int idx, const UT_Int64Array &value) overridefinal
 
bool bind (int idx, const UT_StringArray &value) overridefinal
 
bool bind (int idx, const void *value, int size) overridefinal
 
bool bind (int idx, const UT_DateTimeField &dt) overridefinal
 
NO_DISCARD bool isValid () const overridefinal
 
const UT_StringHolderintTypeString () const overridefinal
 
const UT_StringHolderstringTypeString () const overridefinal
 
const UT_StringHoldernullTypeString () const overridefinal
 
const UT_StringHolderrealTypeString () const overridefinal
 
const UT_StringHolderblobTypeString () const overridefinal
 
const UT_StringHolderdateTimeTypeString () const overridefinal
 
const UT_StringHolderboolTypeString () const overridefinal
 
bool step () overridefinal
 
bool run () overridefinal
 
int changes () const overridefinal
 
bool hasRow () overridefinal
 
NO_DISCARD bool tableExists (const UT_StringRef &name, UT_ErrorCode *ec=nullptr) const override
 
void prepare (const UT_StringRef &sql, UT_ErrorCode *ec=nullptr) override
 
- Public Member Functions inherited from UT_SqlStatementImpl
virtual ~UT_SqlStatementImpl ()=default
 
 UT_NON_COPYABLE (UT_SqlStatementImpl)
 
const UT_SqlBaseDriverdriver () const
 
bool bind (int idx, Blob blob)
 
const UT_ErrorCodegetError () const
 

Additional Inherited Members

- Public Types inherited from UT_SqlStatementImpl
enum  DataType {
  kUnknown = -1, kInteger, kFloat, kBlob,
  kText, kNull
}
 
- Protected Member Functions inherited from UT_SqlStatementImpl
 UT_SqlStatementImpl (const UT_SqlBaseDriver &driver)
 
- Protected Attributes inherited from UT_SqlStatementImpl
const UT_SqlBaseDrivermyDriver
 
UT_ErrorCode myError
 

Detailed Description

Definition at line 202 of file UT_SQL.h.

Constructor & Destructor Documentation

UT_SqliteStatementImpl::UT_SqliteStatementImpl ( const UT_SqlBaseDriver driver,
const UT_StringRef sql 
)
UT_SqliteStatementImpl::UT_SqliteStatementImpl ( const UT_SqlBaseDriver driver)
UT_SqliteStatementImpl::~UT_SqliteStatementImpl ( )
override

Member Function Documentation

bool UT_SqliteStatementImpl::bind ( int  idx,
null_tag_t   
)
finaloverridevirtual

Implements UT_SqlStatementImpl.

bool UT_SqliteStatementImpl::bind ( int  idx,
const UT_StringRef value 
)
finaloverridevirtual

Implements UT_SqlStatementImpl.

bool UT_SqliteStatementImpl::bind ( int  idx,
const char *  value 
)
finaloverridevirtual

Implements UT_SqlStatementImpl.

bool UT_SqliteStatementImpl::bind ( int  idx,
int  value 
)
finaloverridevirtual

Implements UT_SqlStatementImpl.

bool UT_SqliteStatementImpl::bind ( int  idx,
int64  value 
)
finaloverridevirtual

Implements UT_SqlStatementImpl.

bool UT_SqliteStatementImpl::bind ( int  idx,
bool  value 
)
finaloverridevirtual

Implements UT_SqlStatementImpl.

bool UT_SqliteStatementImpl::bind ( int  idx,
double  value 
)
finaloverridevirtual

Implements UT_SqlStatementImpl.

bool UT_SqliteStatementImpl::bind ( int  idx,
const UT_IntArray value 
)
finaloverridevirtual

Implements UT_SqlStatementImpl.

bool UT_SqliteStatementImpl::bind ( int  idx,
const UT_Int64Array value 
)
finaloverridevirtual

Implements UT_SqlStatementImpl.

bool UT_SqliteStatementImpl::bind ( int  idx,
const UT_StringArray value 
)
finaloverridevirtual

Implements UT_SqlStatementImpl.

bool UT_SqliteStatementImpl::bind ( int  idx,
const void value,
int  size 
)
finaloverridevirtual

Implements UT_SqlStatementImpl.

bool UT_SqliteStatementImpl::bind ( int  idx,
const UT_DateTimeField dt 
)
finaloverridevirtual

Implements UT_SqlStatementImpl.

const UT_StringHolder& UT_SqliteStatementImpl::blobTypeString ( ) const
finaloverridevirtual

Implements UT_SqlStatementImpl.

const UT_StringHolder& UT_SqliteStatementImpl::boolTypeString ( ) const
finaloverridevirtual

Implements UT_SqlStatementImpl.

int UT_SqliteStatementImpl::changes ( ) const
inlinefinaloverridevirtual

Implements UT_SqlStatementImpl.

Definition at line 266 of file UT_SQL.h.

NO_DISCARD const void* UT_SqliteStatementImpl::columnAsBlob ( int  idx,
int size 
) const
finaloverridevirtual

Implements UT_SqlStatementImpl.

NO_DISCARD Blob UT_SqliteStatementImpl::columnAsBlob ( int  idx) const
finaloverridevirtual

Implements UT_SqlStatementImpl.

NO_DISCARD bool UT_SqliteStatementImpl::columnAsBool ( int  idx) const
finaloverridevirtual

Implements UT_SqlStatementImpl.

NO_DISCARD UT_DateTimeField UT_SqliteStatementImpl::columnAsDate ( int  idx) const
finaloverridevirtual

Implements UT_SqlStatementImpl.

NO_DISCARD double UT_SqliteStatementImpl::columnAsDouble ( int  idx) const
finaloverridevirtual

Implements UT_SqlStatementImpl.

NO_DISCARD int UT_SqliteStatementImpl::columnAsInt ( int  idx) const
finaloverridevirtual

Implements UT_SqlStatementImpl.

NO_DISCARD int64 UT_SqliteStatementImpl::columnAsInt64 ( int  idx) const
finaloverridevirtual

Implements UT_SqlStatementImpl.

NO_DISCARD UT_Int64Array UT_SqliteStatementImpl::columnAsInt64Array ( int  idx) const
finaloverridevirtual

Implements UT_SqlStatementImpl.

NO_DISCARD UT_IntArray UT_SqliteStatementImpl::columnAsIntArray ( int  idx) const
finaloverridevirtual

Implements UT_SqlStatementImpl.

NO_DISCARD null_tag_t UT_SqliteStatementImpl::columnAsNull ( int  idx) const
finaloverridevirtual

Implements UT_SqlStatementImpl.

NO_DISCARD UT_StringHolder UT_SqliteStatementImpl::columnAsStr ( int  idx) const
finaloverridevirtual

Implements UT_SqlStatementImpl.

NO_DISCARD int UT_SqliteStatementImpl::columnBytes ( int  idx) const
finaloverridevirtual

Implements UT_SqlStatementImpl.

NO_DISCARD int UT_SqliteStatementImpl::columnCount ( ) const
finaloverridevirtual

Implements UT_SqlStatementImpl.

NO_DISCARD UT_StringHolder UT_SqliteStatementImpl::columnName ( int  idx) const
finaloverridevirtual

Implements UT_SqlStatementImpl.

NO_DISCARD DataType UT_SqliteStatementImpl::columnType ( int  idx) const
finaloverridevirtual

Implements UT_SqlStatementImpl.

const UT_StringHolder& UT_SqliteStatementImpl::dateTimeTypeString ( ) const
finaloverridevirtual

Implements UT_SqlStatementImpl.

bool UT_SqliteStatementImpl::hasRow ( )
inlinefinaloverridevirtual

Implements UT_SqlStatementImpl.

Definition at line 270 of file UT_SQL.h.

const UT_StringHolder& UT_SqliteStatementImpl::intTypeString ( ) const
finaloverridevirtual

Implements UT_SqlStatementImpl.

NO_DISCARD bool UT_SqliteStatementImpl::isValid ( ) const
finaloverridevirtual

Implements UT_SqlStatementImpl.

const UT_StringHolder& UT_SqliteStatementImpl::nullTypeString ( ) const
finaloverridevirtual

Implements UT_SqlStatementImpl.

void UT_SqliteStatementImpl::prepare ( const UT_StringRef sql,
UT_ErrorCode ec = nullptr 
)
overridevirtual

Implements UT_SqlStatementImpl.

const UT_StringHolder& UT_SqliteStatementImpl::realTypeString ( ) const
finaloverridevirtual

Implements UT_SqlStatementImpl.

void UT_SqliteStatementImpl::reset ( bool  clear_bindings = false)
finaloverridevirtual

Implements UT_SqlStatementImpl.

bool UT_SqliteStatementImpl::run ( )
finaloverridevirtual

Implements UT_SqlStatementImpl.

const char* UT_SqliteStatementImpl::sql ( ) const
finaloverridevirtual

Implements UT_SqlStatementImpl.

bool UT_SqliteStatementImpl::step ( )
finaloverridevirtual

Implements UT_SqlStatementImpl.

const UT_StringHolder& UT_SqliteStatementImpl::stringTypeString ( ) const
finaloverridevirtual

Implements UT_SqlStatementImpl.

NO_DISCARD bool UT_SqliteStatementImpl::tableExists ( const UT_StringRef name,
UT_ErrorCode ec = nullptr 
) const
overridevirtual

Implements UT_SqlStatementImpl.

UT_SqliteStatementImpl::UT_NON_COPYABLE ( UT_SqliteStatementImpl  )

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