mirror of
https://github.com/fumiama/fumidb.git
synced 2026-06-10 13:10:37 +08:00
add more api
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user