TODO...
TODO...
It returns the name of Pseudo column _id.
It is useful to use with GRN_COLUMN_NAME_ID_LEN like the following:
grn_obj *id_column;
id_column = grn_ctx_get(ctx, GRN_COLUMN_NAME_ID, GRN_COLUMN_NAME_ID_LEN);
Since 3.1.1.
It returns the byte size of GRN_COLUMN_NAME_ID.
Since 3.1.1.
It returns the name of Pseudo column _key.
It is useful to use with GRN_COLUMN_NAME_KEY_LEN like the following:
grn_obj *key_column;
key_column = grn_ctx_get(ctx, GRN_COLUMN_NAME_KEY, GRN_COLUMN_NAME_KEY_LEN);
Since 3.1.1.
It returns the byte size of GRN_COLUMN_NAME_KEY.
Since 3.1.1.
It returns the name of Pseudo column _value.
It is useful to use with GRN_COLUMN_NAME_VALUE_LEN like the following:
grn_obj *value_column;
value_column = grn_ctx_get(ctx, GRN_COLUMN_NAME_VALUE, GRN_COLUMN_NAME_VALUE_LEN);
Since 3.1.1.
It returns the byte size of GRN_COLUMN_NAME_VALUE.
Since 3.1.1.
It returns the name of Pseudo column _score.
It is useful to use with GRN_COLUMN_NAME_SCORE_LEN like the following:
grn_obj *score_column;
score_column = grn_ctx_get(ctx, GRN_COLUMN_NAME_SCORE, GRN_COLUMN_NAME_SCORE_LEN);
Since 3.1.1.
It returns the byte size of GRN_COLUMN_NAME_SCORE.
Since 3.1.1.
It returns the name of Pseudo column _nsubrecs.
It is useful to use with GRN_COLUMN_NAME_NSUBRECS_LEN like the following:
grn_obj *nsubrecs_column;
nsubrecs_column = grn_ctx_get(ctx, GRN_COLUMN_NAME_NSUBRECS, GRN_COLUMN_NAME_NSUBRECS_LEN);
Since 3.1.1.
It returns the byte size of GRN_COLUMN_NAME_NSUBRECS.
Since 3.1.1.
tableに新たなカラムを定義します。nameは省略できません。一つのtableに同一のnameのcolumnを複数定義することはできません。
Parameters: |
|
---|
oldvalue, newvalueの値から得られるキーに対応するcolumnの値の中の、id, sectionに対応するエントリを更新します。columnは GRN_OBJ_COLUMN_INDEX 型のカラムでなければなりません。
Parameters: |
|
---|
columnが属するtableを返します。
Parameters: |
|
---|
ctxが使用するdbにおいてcolumnに対応する名前をnameに更新します。columnは永続オブジェクトでなければいけません。
Parameters: |
|
---|
カラムobjの名前の長さを返します。buf_sizeの長さが名前の長さ以上であった場合は、namebufに該当する名前をコピーします。
Parameters: |
|
---|
columnに張られているindexのうち、opの操作を実行可能なものの数を返します。またそれらのidを、buf_sizeに指定された個数を上限としてindexbufに返します。
Parameters: |
|
---|
Note
This is a dangerous API. You must not use this API when other thread or process accesses the target column. If you use this API against shared column, the process that accesses the column may be broken and the column may be broken.
New in version 4.0.9.
Clears all values in the column.
Parameters: |
|
---|---|
Returns: | GRN_SUCCESS on success, not GRN_SUCCESS on error. |