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();
FIRSTDLL_EXPORT OdRxDynamicLinker * odrxDynamicLinker()
FIRSTDLL_EXPORT OdRxObjectPtr odrxCreateObject(const OdString &sClassName)
OdSmartPtr< OD::TFSQL::Blob > OdTFSQLBlobPtr
OdSmartPtr< OdTFSQLStatement > OdTFSQLStatementPtr
OD::TFSQL::Statement OdTFSQLStatement
int(* sqlite3_callback)(void *, int, char **, char **)
OD::TFSQL::Blob OdTFSQLBlob
OD::TFSQL::SQLReadCallback OdTFSQLReadCallback
virtual bool on(StatementRow &row)=0
virtual Params & set(int at, const void *val, OdUInt64 len)=0
virtual Params & set(int at, const OdAnsiString &val)=0
virtual Params & set(int at, OdUInt64 val)=0
virtual Params & set(int at, OdUInt8 val)=0
virtual Params & set(int at, bool val)=0
virtual Params & set(int at, const OdString &val)=0
virtual Params & set(int at, OdUInt32 val)=0
virtual Params & set(int at, OdStreamBuf *val)=0
virtual Params & set(int at, double val)=0
virtual Params & set(int at, OdUInt16 val)=0
virtual double realD(int i)=0
virtual bool isNull(int i)=0
virtual const void * blob(int i, OdUInt64 *len=0)=0
virtual OdUInt8 int8(int i)=0
virtual OdAnsiString utf8(int i)=0
virtual OdUInt64 int64(int i)=0
virtual BlobP open(int i, File::Access acc=File::Read)=0
virtual OdString utf16(int i)=0
virtual OdUInt16 int16(int i)=0
virtual bool Bool(int i)=0
virtual OdUInt32 int32(int i)=0
virtual float real(int i)=0
OdSmartPtr< RowIterator > RowIteratorP
OdSmartPtr< Params > ParamsP
virtual ParamsP reset(const char *sql=0, int len=-1)=0
OdSmartPtr< Result > ResultP
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")
OdSmartPtr< Statement::Row > StatementRow
virtual OdString path() const =0
OdSmartPtr< Statement > StatementP
static TFSQLP create(const OdString &pathToData=OdString::kEmpty)
virtual void exe(const char *sql, SQLReadCallback *cb=0)=0
virtual BlobP open(const char *tab, const char *col, OdInt64 row, int mode=File::Read, const char *db="main")=0
ODRX_DECLARE_MEMBERS(TFSQL)
Statement::Params & prepareOrReset(const char *sql, int len, StatementP &stmt)
BlobP openR(const char *tab, const char *col, OdInt64 row, const char *db="main")
virtual void attach(const OdString &pathToData)=0
virtual Statement::ParamsP prepare(const char *sql, int at=-1, StatementP *stmt=0)=0
virtual OdUInt64 lastInsertRowId()=0
virtual void exe(const char *sql, sqlite3_callback cb, void *callbackctx)=0
virtual OdRxModulePtr loadApp(const OdString &applicationName, bool silent=true)=0
void attach(const T *pObject)
FIRSTDLL_EXPORT_STATIC static const OdString kEmpty
StreamP open(const OdString &path, int acc=Read, Creation dispos=OpenExisting, Share sh=DenyNo)
OdSmartPtr< TFSQL > TFSQLP