Groonga
Loading...
Searching...
No Matches
type.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2009-2016 Brazil
3 Copyright (C) 2020-2025 Sutou Kouhei <kou@clear-code.com>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18*/
19
20#pragma once
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26/* Just for backward compatibility.
27 Use grn_type_id_is_text_family() instead. */
28#define GRN_TYPE_IS_TEXT_FAMILY(type) grn_type_id_is_text_family(NULL, (type))
29
30GRN_API const char *
32GRN_API bool
34GRN_API bool
36GRN_API bool
38GRN_API bool
40GRN_API bool
42GRN_API bool
44GRN_API size_t
46
62 const char *name,
63 unsigned int name_size,
64 grn_obj_flags flags,
65 unsigned int size);
66GRN_API uint32_t
68
69#ifdef __cplusplus
70}
71#endif
uint16_t grn_obj_flags
Definition groonga.h:679
uint32_t grn_id
Definition groonga.h:44
#define GRN_API
Definition groonga.h:39
Definition groonga.h:351
Definition groonga.h:919
GRN_API bool grn_type_id_is_number_family(grn_ctx *ctx, grn_id id)
GRN_API bool grn_type_id_is_text_family(grn_ctx *ctx, grn_id id)
GRN_API bool grn_type_id_is_binary_family(grn_ctx *ctx, grn_id id)
GRN_API const char * grn_type_id_to_string_builtin(grn_ctx *ctx, grn_id id)
GRN_API grn_obj * grn_type_create(grn_ctx *ctx, const char *name, unsigned int name_size, grn_obj_flags flags, unsigned int size)
Define a new type in DB.
GRN_API bool grn_type_id_is_compatible(grn_ctx *ctx, grn_id id1, grn_id id2)
GRN_API uint32_t grn_type_size(grn_ctx *ctx, grn_obj *type)
GRN_API bool grn_type_id_is_builtin(grn_ctx *ctx, grn_id id)
GRN_API size_t grn_type_id_size(grn_ctx *ctx, grn_id id)
GRN_API bool grn_type_id_is_float_family(grn_ctx *ctx, grn_id id)