InvoDB/invodb/main.cpp

17 lines
282 B
C++
Raw Normal View History

2021-10-05 14:41:15 +08:00
//
// Created by YuhangQ on 2021/9/24.
//
#include "main.h"
int main() {
PageManager& manager = PageManager::Instance();
manager.loadDatabase("test.invodb");
2021-10-05 16:02:01 +08:00
StoragePage page = manager.getPage(1);
for(int i=0; i<100; i++) printf("%c", page[i]);
2021-10-05 14:41:15 +08:00
return 0;
}