1 #ifndef BZS_DB_PROTOCOL_TDAP_CLIENT_DBDEF_H
2 #define BZS_DB_PROTOCOL_TDAP_CLIENT_DBDEF_H
34 #define TABLE_NUM_TMP 512
49 struct dbdimple* m_impl;
53 bool isUsedField(
short tableIndex,
short deleteIndex);
54 void renumberFieldNum(
short tableIndex,
short Index,
short op);
55 bool resizeAt(
short tableIndex,
bool key);
56 bool resizeReadBuf(
void);
57 void moveById(
short id);
58 bool validLen(uchar_td FieldType, uint_td FieldLen);
59 bool isPassKey(uchar_td FieldType);
60 void openDdf(
const _TCHAR* dir,
short Mode,
const _TCHAR* OwnerName);
61 void createDDF(
const _TCHAR* fullpath);
62 void saveDDF(
short tableIndex,
short opration,
bool forPsqlDdf =
true);
63 ushort_td getDDFNewTableIndex();
64 ushort_td getDDFNewFieldIndex();
65 int totalDefLength(
short tableIndex);
66 void setRecordLen(
short tableIndex);
69 void doOpen(
const _TCHAR* uri, char_td mode = 0,
70 const _TCHAR* ownername = NULL);
72 keylen_td writeKeyData();
73 void writeRecordData(){};
76 inline nstable* table() {
return this; }
79 void tableDefCopy(tabledef* dest, tabledef* src,
size_t size);
82 dbdef(nsdatabase* pbe,
short defType);
83 void create(
const _TCHAR* uri);
84 void autoMakeSchema();
85 void setDefType(
short defType);
86 static keydef* getKeyDef(tabledef* p);
87 static fielddef* getFieldDef(tabledef* p);
93 short tableCount()
const;
94 void* relateData()
const;
95 short openMode()
const;
96 tabledef* tableDefs(
int index);
97 tabledef** tableDefPtr(
int index);
98 void setVersion(
int v);
101 inline short_td
stat()
const {
return m_stat; }
105 void deleteField(
short tableIndex,
short deleteIndex);
107 void deleteKey(
short tableIndex,
short deleteIndex);
111 short tableNumByName(
const _TCHAR* tableName);
112 ushort_td getRecordLen(
short tableIndex);
114 void getFileSpec(
fileSpec* fs,
short tableIndex);
115 short findKeynumByFieldNum(
short tableIndex,
short index);
116 short fieldNumByViewNum(
short tableIndex,
short index);
117 short fieldNumByName(
short tableIndex,
const _TCHAR* name);
118 void* allocRelateData(
int size);
121 void pushBackup(
short tableIndex);
122 bool compAsBackup(
short tableIndex);
123 void popBackup(
short tableIndex);
125 inline short_td
tdapErr(HWND hWnd, _TCHAR* retbuf = NULL)
135 void reopen(char_td mode = TD_OPEN_READONLY);
137 static ushort_td getFieldPosition(
tabledef* tableDef,
short fieldNum);
138 static void cacheFieldPos(
tabledef* tableDef);
148 #endif // BZS_DB_PROTOCOL_TDAP_CLIENT_DBDEF_H
const _TCHAR * protocol(const _TCHAR *uri)
Definition: uri.h:42
keydef * insertKey(dbdef *def, short tableid, short insertIndex)
Definition: trdboostapi.h:1016
short_td tdapErr(HWND hWnd, _TCHAR *retbuf=NULL)
Definition: nsTable.h:185
eFieldQuery
Definition: dbDef.h:38
void insertTable(dbdef *def, short id, const _TCHAR *name, unsigned short charsetIndex)
Definition: trdboostapi.h:962
void updateTableDef(dbdef *def, short tableid)
Definition: trdboostapi.h:1045
fielddef * insertField(dbdef *def, short tableid, short fieldNum, const _TCHAR *name, uchar_td type, ushort_td len)
Definition: trdboostapi.h:994
short_td tdapErr(HWND hWnd, _TCHAR *retbuf=NULL)
Definition: dbDef.h:125
フィールド定義構造体
Definition: tdapSchema.h:300
fielddef_t< MYSQL_FDNAME_SIZE > fielddef_t_my
Definition: tdapSchema.h:293
short_td stat() const
Definition: dbDef.h:101
テーブルスキーマ管理クラス (nocopyable noncreatable)
Definition: dbDef.h:46
void setStat(short_td v)
Definition: nsTable.h:164
テーブルアクセスの基本クラス (abstruct nocopyable)
Definition: nsTable.h:44
void deleteField(dbdef *def, short tableid, short fieldNum)
Definition: trdboostapi.h:1009
キー定義構造体
Definition: tdapSchema.h:147
void deleteKey(dbdef *def, short tableid, short keynum)
Definition: trdboostapi.h:1025
読み取り用クエリー
Definition: table.h:448
fielddef_t< PERVASIVE_FDNAME_SIZE > fielddef_t_pv
Definition: tdapSchema.h:294
void renumberTable(dbdef *def, short id, short newid)
Definition: trdboostapi.h:986
データベースアクセスクラス
Definition: database.h:59
void deleteTable(dbdef *def, short id)
Definition: trdboostapi.h:977
_TCHAR * statMsg(_TCHAR *retbuf)
Definition: dbDef.h:129
void validateTableDef(dbdef *def, short tableid)
Definition: trdboostapi.h:1032
create tableで使用するファイル定義構造体
Definition: tdapSchema.h:123
テーブル定義構造体
Definition: tdapSchema.h:660