min.h

来自「小型数据库源代码较多」· C头文件 代码 · 共 84 行

H
84
字号

#ifndef MIN_H
#define MIN_H
#include "afxwin.h"
#include < iostream >
#include < fstream >
#include < iomanip >     
#include < strstream >
#include < cstdlib >
#include < string >
#include < direct.h >
using namespace std;
#include  "dir.h"  

class sql {
private:
	enum { sbf=1024*128 };
	enum { subsbf = 1024*16 };
	char buf[3][sbf]; 	
	char subbuf[subsbf];
	Table* tablehead; 
	int buff[3]; 
	int modify[3];
	string bufname[3];	
	int page;

	char command[50];
	string filename;
	string index;
	string colname; 
	string fileload;
	
	
	void execfile();
	void f_command(ifstream&);
	void create_table(ifstream& );
	void drop_table(ifstream&);	
	void insert_into(ifstream&);
	void delete_from(ifstream&);
	void create_index(ifstream&);
	void drop_index(ifstream&);
	void select_from(ifstream&);
	
	
	
	
	
	
	
	
	
	
	
	void create_table(  );
	void drop_table(  );
	void select_from(  );
	void insert_into(  );
	void delete_from(  );
	void create_index(  );
	void drop_index(  );
	void erasecom();
	void update_index( Table* );
	void modify_index( Table* );
public:
	sql();
	void r_command(); 
 	void InitBuffer(); 
	void FlushBuffer();  
	void Load_Dictionary(); 
	void Update_Dictionary(); 
	Table* tabexist();  
	Col* colexist(Table* , int &);
	Col* indexist(Table* &);
	int readtable();
	void writefile( int ); 
    void Log(string);
};




#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?