mirror of
https://github.com/YuhangQ/InvoDB.git
synced 2025-01-27 15:10:57 +00:00
21 lines
386 B
C++
21 lines
386 B
C++
//
|
|
// Created by YuhangQ on 2021/9/24.
|
|
//
|
|
|
|
#include "main.h"
|
|
|
|
int main() {
|
|
PageManager::loadDatabase("test.invodb");
|
|
Collection::loadCollections();
|
|
|
|
PageManager& manager = PageManager::Instance();
|
|
|
|
|
|
//Collection::createCollection("hello");
|
|
Collection &col = Collection::getCollection("hello");
|
|
|
|
JSON json("{\"hello\": 1}");
|
|
col.insert(json);
|
|
|
|
return 0;
|
|
} |