1 #ifndef BZS_DB_PROTOCOL_TDAP_CLIENT_DATABASE_H
2 #define BZS_DB_PROTOCOL_TDAP_CLIENT_DATABASE_H
21 #include "nsDatabase.h"
38 #if (defined(__BORLANDC__) && !defined(__APPLE__) && !defined(__clang__))
39 typedef bool __stdcall (*deleteRecordFn)(database* db, table* tb,
bool inkey);
40 typedef short __stdcall (*schemaMgrFn)(database* db);
41 typedef void __stdcall (*
copyDataFn)(database* db,
int recordCount,
int count,
46 typedef bool(__STDCALL* deleteRecordFn)(database* db, table* tb,
bool inkey);
52 typedef short(__STDCALL* schemaMgrFn)(database* db);
61 struct dbimple* m_impl;
63 void setDir(
const _TCHAR* directory);
64 virtual table* createTableObject();
70 void setLockReadOnly(
bool v);
71 virtual void doClose();
72 virtual void doOpen(
const _TCHAR* uri,
short type,
short mode,
73 const _TCHAR* username);
82 virtual char* getContinuousList(
int option);
83 virtual void onCopyDataInternal(
table* tb,
int recordCount,
int count,
85 virtual void doConvertTable(
short tableIndex,
bool turbo,
86 const _TCHAR* ownerName);
87 virtual bool doReopenDatabaseSchema();
90 virtual void release();
92 const _TCHAR* rootDir()
const;
93 void setRootDir(
const _TCHAR* directory);
94 void* optionalData()
const;
95 void setOptionalData(
void* v);
96 bool tableReadOnly()
const;
97 void setTableReadOnly(
bool value);
98 const deleteRecordFn onDeleteRecord()
const;
99 void setOnDeleteRecord(
const deleteRecordFn v);
102 bool open(
const _TCHAR* uri,
short schemaType = 0,
short mode = -2,
103 const _TCHAR* dir = NULL,
const _TCHAR* ownerName = NULL);
105 bool autoCreate =
true,
const _TCHAR* ownerName = NULL,
106 const _TCHAR* uri = NULL);
108 bool autoCreate =
true,
const _TCHAR* ownerName = NULL,
109 const _TCHAR* uri = NULL);
111 bool createTable(
short fileNum,
const _TCHAR* uri = NULL);
112 void create(
const _TCHAR* uri,
short type = TYPE_SCHEMA_BDF);
115 void close(
bool withDropDefaultSchema =
false);
117 short continuous(char_td op = TD_BACKUP_START,
bool inclideRepfile =
false);
118 short assignSchemaData(
dbdef* src);
119 short copyTableData(
table* dest,
table* src,
bool turbo,
int offset = 0,
120 short keyNum = -1,
int maxSkip = -1);
122 const _TCHAR* ownerName = NULL);
123 bool existsTableFile(
short tableIndex,
const _TCHAR* ownerName = NULL);
124 _TCHAR* getTableUri(_TCHAR* buf,
short fileNum);
126 bool isOpened()
const;
127 char_td mode()
const;
143 #endif // BZS_DB_PROTOCOL_TDAP_CLIENT_DATABASE_H
const _TCHAR * protocol(const _TCHAR *uri)
Definition: uri.h:42
データベースアクセス基本クラス (nocopyable)
Definition: nsDatabase.h:55
virtual bool onOpenAfter()
Definition: database.h:75
void(__STDCALL * copyDataFn)(database *db, int recordCount, int count, bool &cancel)
Definition: database.h:55
バージョン配列構造体
Definition: tdapSchema.h:806
テーブルスキーマ管理クラス (nocopyable noncreatable)
Definition: dbDef.h:46
テーブルアクセスクラス (nocopyable)
Definition: table.h:89
void dropTable(Database_Ptr db, const _TCHAR *name)
Definition: trdboostapi.h:926
グルーピング レコード数カウンター
Definition: groupQuery.h:229
table_ptr openTable(Database_Ptr db, const _TCHAR *name, short mode=TD_OPEN_NORMAL, bool autoCreate=true, const _TCHAR *ownerName=NULL, const _TCHAR *uri=NULL)
Definition: trdboostapi.h:894
virtual int defaultAutoIncSpace() const
Definition: database.h:129
データベースアクセスクラス
Definition: database.h:59
void convertTable(Database_Ptr db, short tableid, copyDataFn func=NULL)
Definition: trdboostapi.h:935
typedef short(__STDCALL *schemaMgrFn)(database *db)
virtual bool onTableOpened(table *tb, short fileNum, short mode, bool isCreated)
Definition: database.h:77