TODO...
TODO...
TODO...
TODO...
It is used for specifying options for grn_db_create().
組み込み型の名前となるnul終端文字列の配列を指定する。
n_builtin_type_namesには、optarg.builtin_type_namesで指定する文字列の数を 指定する。配列のoffsetはenum型grn_builtin_typeの値に対応する。
新たなdbを作成します。
Parameters: |
|
---|
既存のdbを開きます。
Parameters: |
|
---|
dbの内容の最終更新時刻を現在時刻にします。
最終更新時刻はキャッシュが有効かどうかの判断などに利用されます。
Parameters: |
|
---|
Note
This is an experimental API.
Note
This is a dangerous API. You must not use this API when other thread or process opens the target database. If you use this API against shared database, the database may be broken.
New in version 4.0.9.
Checks the passed database and recovers it if it is broken and it can be recovered.
This API uses lock existence for checking whether the database is broken or not.
Here are recoverable cases:
- Index column is broken. The index column must have source column.
Here are unrecoverable cases:
- Object name management feature is broken.
- Table is broken.
- Data column is broken.
Object name management feature is used for managing table name, column name and so on. If the feature is broken, the database can't be recovered. Please re-create the database from backup.
Table and data column can be recovered by removing an existence lock and re-add data.
Parameters: |
|
---|---|
Returns: | GRN_SUCCESS on success, not GRN_SUCCESS on error. |