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_dimpl;
53 bool isUsedField(
short tableIndex,
short deleteIndex);
54 void renumberFieldNum(
short tableIndex,
short Index,
short op);
55 bool resizeAt(
short tableIndex,
bool key);
56 void moveById(
short id);
57 bool validLen(uchar_td FieldType, uint_td FieldLen);
58 bool isPassKey(uchar_td FieldType);
59 void openDdf(
const _TCHAR* dir,
short Mode,
const _TCHAR* OwnerName);
60 void createDDF(
const _TCHAR* fullpath);
61 void saveDDF(
short tableIndex,
short opration,
bool forPsqlDdf =
true);
62 ushort_td getDDFNewTableIndex();
63 ushort_td getDDFNewFieldIndex();
64 void doOpen(
const _TCHAR* uri, char_td mode = 0,
65 const _TCHAR* ownername = NULL);
67 keylen_td writeKeyData();
68 void writeRecordData(){};
71 inline nstable* table() {
return this; }
74 void tableDefCopy(tabledef* dest,
const tabledef* src,
size_t size);
77 dbdef(nsdatabase* pbe,
short defType,
short mode);
78 void create(
const _TCHAR* uri);
79 void autoMakeSchema(
bool noUseNullkey);
80 bool testTablePtr(tabledef* td);
81 tabledef* initReadAfter(
short tableIndex,
const tabledef* data, uint_td datalen);
82 void* getBufferPtr(uint_td& size);
83 bool setDefaultImage(
short tableIndex,
const uchar_td* p, ushort_td size);
84 bool addSchemaImage(
const tabledef* p, ushort_td size,
short& tableIndex);
85 void allocDatabuffer();
90 short tableCount()
const;
91 void* relateData()
const;
92 short openMode()
const;
93 tabledef* tableDefs(
int index);
94 tabledef** tableDefPtr(
int index);
95 void setVersion(
int v);
98 inline short_td
stat()
const {
return m_stat; }
102 void deleteField(
short tableIndex,
short deleteIndex);
104 void deleteKey(
short tableIndex,
short deleteIndex);
108 short tableNumByName(
const _TCHAR* tableName);
109 void getFileSpec(
fileSpec* fs,
short tableIndex);
110 short findKeynumByFieldNum(
short tableIndex,
short index);
111 short fieldNumByViewNum(
short tableIndex,
short index);
112 short fieldNumByName(
short tableIndex,
const _TCHAR* name);
113 void* allocRelateData(
int size);
115 void pushBackup(
short tableIndex);
116 bool compAsBackup(
short tableIndex);
117 void popBackup(
short tableIndex);
120 inline short_td
tdapErr(HWND hWnd, _TCHAR* retbuf = NULL)
131 void reopen(char_td mode = TD_OPEN_READONLY);
141 #endif // BZS_DB_PROTOCOL_TDAP_CLIENT_DBDEF_H
keydef * insertKey(dbdef *def, short tableid, short insertIndex)
Definition: trdboostapi.h:1055
short_td tdapErr(HWND hWnd, _TCHAR *retbuf=NULL)
Definition: nsTable.h:190
eFieldQuery
Definition: dbDef.h:38
void insertTable(dbdef *def, short id, const _TCHAR *name, unsigned short charsetIndex)
Definition: trdboostapi.h:1001
void updateTableDef(dbdef *def, short tableid)
Definition: trdboostapi.h:1084
fielddef * insertField(dbdef *def, short tableid, short fieldNum, const _TCHAR *name, uchar_td type, ushort_td len)
Definition: trdboostapi.h:1033
short_td tdapErr(HWND hWnd, _TCHAR *retbuf=NULL)
Definition: dbDef.h:120
フィールド定義構造体
Definition: tdapSchema.h:419
fielddef_t< MYSQL_FDNAME_SIZE > fielddef_t_my
Definition: tdapSchema.h:412
short_td stat() const
Definition: dbDef.h:98
テーブルスキーマ管理クラス (nocopyable noncreatable)
Definition: dbDef.h:46
void setStat(short_td v)
Definition: nsTable.h:169
テーブルアクセスの基本クラス (abstruct nocopyable)
Definition: nsTable.h:45
void deleteField(dbdef *def, short tableid, short fieldNum)
Definition: trdboostapi.h:1048
キー定義構造体
Definition: tdapSchema.h:178
void deleteKey(dbdef *def, short tableid, short keynum)
Definition: trdboostapi.h:1064
読み取り用クエリー
Definition: table.h:491
fielddef_t< PERVASIVE_FDNAME_SIZE > fielddef_t_pv
Definition: tdapSchema.h:413
void renumberTable(dbdef *def, short id, short newid)
Definition: trdboostapi.h:1025
データベースアクセスクラス
Definition: database.h:59
void deleteTable(dbdef *def, short id)
Definition: trdboostapi.h:1016
_TCHAR * statMsg(_TCHAR *retbuf)
Definition: dbDef.h:125
void synchronizeSeverSchema(dbdef *def, short tableid)
Definition: trdboostapi.h:1097
void validateTableDef(dbdef *def, short tableid)
Definition: trdboostapi.h:1071
create tableで使用するファイル定義構造体
Definition: tdapSchema.h:142
テーブル定義構造体
Definition: tdapSchema.h:1051