Top | ![]() |
![]() |
![]() |
![]() |
GGrnContext * | ggrn_context_new () |
gboolean | ggrn_context_open_database () |
gboolean | ggrn_context_create_database () |
gchar * | ggrn_context_execute_command () |
gboolean | ggrn_context_send_command () |
gchar * | ggrn_context_receive_result () |
gboolean ggrn_context_open_database (GGrnContext *context
,const gchar *path
,GError **error
);
Opens a database.
context |
A GGrnContext. |
|
path |
The path of the database to be opened. |
|
error |
return location for a GError, or |
Since 1.0.0
gboolean ggrn_context_create_database (GGrnContext *context
,const gchar *path
,GError **error
);
Creates a new database.
context |
A GGrnContext. |
|
path |
The path of the database to be created, or |
[allow-none] |
error |
return location for a GError, or |
Since 1.0.0
gchar * ggrn_context_execute_command (GGrnContext *context
,const gchar *command
);
Executes a Groonga command and returns the executed result.
context |
A GGrnContext. |
|
command |
The Groonga command to be executed. See http://groonga.org/docs/reference/command.html about Groonga command. |
Since 1.0.0
gboolean ggrn_context_send_command (GGrnContext *context
,const gchar *command
,GError **error
);
Sends a Groonga command. Use ggrn_context_receive_result()
to
receive the result of the sent command.
Normally, you should use high-level API
ggrn_context_execute_command()
. If you want to get error details of
the executed command, use this API.
context |
A GGrnContext. |
|
command |
The Groonga command to be sent. See http://groonga.org/docs/reference/command.html about Groonga command. |
Since 1.0.0
gchar *
ggrn_context_receive_result (GGrnContext *context
);
Receives the result of the sent command by ggrn_context_send_command()
.
Since 1.0.0