2021-10-05 14:41:15 +08:00
|
|
|
//
|
|
|
|
// Created by YuhangQ on 2021/9/24.
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "main.h"
|
|
|
|
|
|
|
|
int main() {
|
2021-10-23 16:28:57 +08:00
|
|
|
PageManager::loadDatabase("test.invodb");
|
|
|
|
Collection::loadCollections();
|
2021-10-11 22:05:45 +08:00
|
|
|
|
2021-10-23 16:28:57 +08:00
|
|
|
PageManager& manager = PageManager::Instance();
|
2021-10-11 22:05:45 +08:00
|
|
|
|
2021-10-05 14:41:15 +08:00
|
|
|
|
2021-10-24 14:08:12 +08:00
|
|
|
//Collection::createCollection("hello");
|
2021-10-23 16:28:57 +08:00
|
|
|
Collection &col = Collection::getCollection("hello");
|
|
|
|
|
|
|
|
JSON json("{\"hello\": 1}");
|
|
|
|
col.insert(json);
|
2021-10-05 14:41:15 +08:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|