Module: Groonga::Name

Defined in:
ext/groonga/rb-grn-name.c

Class Method Summary collapse

Class Method Details

.column?(name) ⇒ Boolean

Returns true if the name is column, false otherwise.

Parameters:

  • name (String)

    The name to be confirmed.

Returns:

  • (Boolean)

    true if the name is column, false otherwise.

Returns:

  • (Boolean)

Since:

  • 6.0.5



34
35
36
37
38
39
40
41
42
43
44
45
# File 'ext/groonga/rb-grn-name.c', line 34

static VALUE
rb_grn_name_s_column_p (VALUE self, VALUE rb_name)
{
    grn_ctx *ctx = NULL;
    const char *name;
    size_t name_size;

    name = StringValueCStr(rb_name);
    name_size = RSTRING_LEN(rb_name);

    return CBOOL2RVAL(grn_obj_name_is_column(ctx, name, name_size));
}