1
0
mirror of https://github.com/fumiama/fumidb.git synced 2026-06-10 05:04:18 +08:00

add more api

This commit is contained in:
源文雨
2022-05-04 01:19:39 +08:00
parent 6022eb75fc
commit b33e5dbe73
4 changed files with 48 additions and 37 deletions

View File

@@ -18,12 +18,13 @@ int main() {
}
if(init_file_header_page(fd)) return 2;
void* table = create_table(
fd, buf, "test_table", 5,
TYPE_INT16|EXTYPE_NONNULL|EXTYPE_UNIQUE,
TYPE_INT64,
TYPE_INT8,
TYPE_STRING,
TYPE_BINARY
fd, buf, "test_table", 5, (type_t[]){
TYPE_INT16|EXTYPE_NONNULL|EXTYPE_UNIQUE,
TYPE_INT64,
TYPE_INT8,
TYPE_STRING,
TYPE_BINARY
}
);
if(table == NULL) {
perror("create_table");