You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#pragma once
#include <stdint.h>
#include <stdio.h>
#define DB_VERSION 0xabcd1234 // ��������ֵ��һ�£��������������ݿ�
typedef struct { const char* name; uint32_t add; uint32_t itermSize; uint32_t itermMaxNum; } zhdb_table_t;
typedef struct { uint32_t version; } zhdb_header_t;
void zhdb_init(); void zhdb_reg_table_info(const char* name, uint32_t itermSize, uint32_t itermMaxNum); void zhdb_before_run_prepare();
void zhdb_read_table(const char* name, void* cache, uint32_t cachelen); void zhdb_write_item(uint32_t add, const char* data, size_t len);
// add
// --> readall
// --> findNextPos
// --> forceFindNextPos
// --> write
// void
// void writetostorage();
// readall()
// sort
// update()
//+++++++++++++++++++++++++++++++++
// cache (dirty)
//+++++++++++++++++++++++++++++++++
// storage
//+++++++++++++++++++++++++++++++++
//
// Dao
// find
// getALL() -> table_add, table_size, iterm_size, iterm_num (Ԥ���Ŀռ�Խ��������ѯ��ʱ��Խ��)��
// �����������ܱ�֤�豸��һ����
// delete
//
//
//
// �ϵ�֮�������д洢����¼һЩ�ٲ����ǣ���¼��table�ṹ������
// ��ҳ��ѯ��
//
// ���ڴ����ݽ����أ���ǧ����¼
// ����ѯ����ɸѡ���ݣ������ڷ�ҳ����������
// ��ҳʵ�ַ�����ͨ��������
// ����ʵ�ְ�˳����ҳ
//
// tabl
// table_add
// table_size
//
// search all
//
// delete
|