CFx SDK Documentation
2020SP3
|
Go to the documentation of this file. 1 #ifndef _OD_TFSQL_INCLUDED_
2 #define _OD_TFSQL_INCLUDED_
12 #ifndef OD_SQLITE3_DEFINED
17 #define ODSZ_CONS(str_const) str_const,(sizeof(str_const)-1)
54 virtual bool Bool (
int i) = 0;
59 virtual double realD (
int i) = 0;
60 virtual float real (
int i) = 0;
62 virtual OdAnsiString
utf8 (
int i) = 0;
86 virtual Params&
set(
int at,
const OdAnsiString& val) = 0;
129 return *prepare(sql, len, &stmt);
130 return *stmt->reset();
150 #endif // _OD_TFSQL_INCLUDED_
virtual bool Bool(int i)=0
OdSmartPtr< OD::TFSQL::Blob > OdTFSQLBlobPtr
int(* sqlite3_callback)(void *, int, char **, char **)
virtual Params & set(int at, OdUInt8 val)=0
FIRSTDLL_EXPORT OdRxDynamicLinker * odrxDynamicLinker()
virtual Params & set(int at, const OdAnsiString &val)=0
virtual void exe(const char *sql, SQLReadCallback *cb=0)=0
virtual Params & set(int at, OdUInt16 val)=0
virtual Params & set(int at, OdUInt64 val)=0
virtual Statement::ParamsP prepare(const char *sql, int at=-1, StatementP *stmt=0)=0
OdSmartPtr< Result > ResultP
virtual Params & set(int at, OdUInt32 val)=0
OdSmartPtr< Params > ParamsP
static TFSQLP create(const OdString &pathToData=OdString::kEmpty)
virtual Params & set(int at, double val)=0
OdSmartPtr< OdTFSQLStatement > OdTFSQLStatementPtr
Statement::Params & prepareOrReset(const char *sql, int len, StatementP &stmt)
virtual Params & set(int at, const OdString &val)=0
OD::TFSQL::Blob OdTFSQLBlob
ODRX_DECLARE_MEMBERS(TFSQL)
BlobP openR(const char *tab, const char *col, OdInt64 row, const char *db="main")
virtual bool on(StatementRow &row)=0
virtual void exe(const char *sql, sqlite3_callback cb, void *callbackctx)=0
virtual OdString utf16(int i)=0
OdSmartPtr< Statement > StatementP
virtual Params & set(int at, OdStreamBuf *val)=0
OdSmartPtr< TFSQL > TFSQLP
virtual BlobP open(int i, File::Access acc=File::Read)=0
virtual Params & set(int at, bool val)=0
virtual OdRxModulePtr loadApp(const OdString &applicationName, bool silent=true)=0
OdSmartPtr< RowIterator > RowIteratorP
OD::TFSQL::SQLReadCallback OdTFSQLReadCallback
virtual OdUInt32 int32(int i)=0
virtual ParamsP reset(const char *sql=0, int len=-1)=0
OD::TFSQL::Statement OdTFSQLStatement
FIRSTDLL_EXPORT OdRxObjectPtr odrxCreateObject(const OdString &sClassName)
virtual OdUInt64 lastInsertRowId()=0
virtual OdUInt16 int16(int i)=0
virtual BlobP open(const char *tab, const char *col, OdInt64 row, int mode=File::Read, const char *db="main")=0
virtual double realD(int i)=0
virtual Params & set(int at, const void *val, OdUInt64 len)=0
virtual bool isNull(int i)=0
virtual OdUInt8 int8(int i)=0
virtual float real(int i)=0
virtual OdAnsiString utf8(int i)=0
FIRSTDLL_EXPORT_STATIC static const OdString kEmpty
OdSmartPtr< Statement::Row > StatementRow
virtual const void * blob(int i, OdUInt64 *len=0)=0
virtual OdUInt64 int64(int i)=0
virtual void attach(const OdString &pathToData)=0
StreamP open(const OdString &path, int acc=Read, Creation dispos=OpenExisting, Share sh=DenyNo)
void attach(const T *pObject)
virtual OdString path() const =0
BlobP openRW(const char *tab, const char *col, OdInt64 row, const char *db="main")
BlobP openW(const char *tab, const char *col, OdInt64 row, const char *db="main")