Navigation Menu

Skip to content

Commit

Permalink
Export grn_table_create_for_group()
Browse files Browse the repository at this point in the history
  • Loading branch information
daijiro committed Jun 18, 2013
1 parent 416234f commit 514a883
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 6 additions & 0 deletions include/groonga.h
Expand Up @@ -2728,6 +2728,12 @@ GRN_API grn_rc grn_table_sort_key_close(grn_ctx *ctx,

GRN_API grn_bool grn_table_is_grouped(grn_obj *table);

GRN_API grn_obj *grn_table_create_for_group(grn_ctx *ctx,
const char *name,
unsigned int name_size,
const char *path,
grn_obj *group_key,
unsigned int max_n_subrecs);

GRN_API grn_rc grn_load(grn_ctx *ctx, grn_content_type input_type,
const char *table, unsigned int table_len,
Expand Down
7 changes: 0 additions & 7 deletions lib/db.h
Expand Up @@ -420,13 +420,6 @@ void grn_expr_pack(grn_ctx *ctx, grn_obj *buf, grn_obj *expr);
GRN_API grn_rc grn_expr_inspect(grn_ctx *ctx, grn_obj *buf, grn_obj *expr);
grn_obj *grn_expr_open(grn_ctx *ctx, grn_obj_spec *spec, const uint8_t *p, const uint8_t *pe);

GRN_API grn_obj *grn_table_create_for_group(grn_ctx *ctx,
const char *name,
unsigned int name_size,
const char *path,
grn_obj *group_key,
unsigned int max_n_subrecs);

#define KEY_NAME "_key"
#define ID_NAME "_id"

Expand Down

0 comments on commit 514a883

Please sign in to comment.