Navigation Menu

Skip to content

Commit

Permalink
[doc] ha_groonga -> ha_mroonga.
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 25, 2012
1 parent 620ca53 commit b1c9355
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions doc/source/install.rst
Expand Up @@ -215,13 +215,13 @@ Then invoke "make". ::
Install mroonga
^^^^^^^^^^^^^^^

By invoking "make install", ha_groonga.so will be installed in MySQL's plugin directory. ::
By invoking "make install", ha_mroonga.so will be installed in MySQL's plugin directory. ::

make install

Then start mysqld, connect to it by mysql client, and install it by "INSTALL PLUGIN" command. ::

mysql> INSTALL PLUGIN groonga SONAME 'ha_groonga.so';
mysql> INSTALL PLUGIN groonga SONAME 'ha_mroonga.so';

If "groonga" is displayed in "SHOW ENGINES" command result like below, mroonga is well installed. ::

Expand All @@ -244,4 +244,4 @@ To get the record ID assigned by groonga in INSERT, install last_insert_grn_id f

Invoke CREATE FUNCTION like the following. ::

mysql> CREATE FUNCTION last_insert_grn_id RETURNS INTEGER soname 'ha_groonga.so';
mysql> CREATE FUNCTION last_insert_grn_id RETURNS INTEGER soname 'ha_mroonga.so';
2 changes: 1 addition & 1 deletion doc/source/userguide.rst
Expand Up @@ -33,7 +33,7 @@ If you see "groonga" storage engine like above, the installation is well done.

If not installed, invoke INSTALL PLUGIN command like below. ::

mysql> INSTALL PLUGIN groonga SONAME 'ha_groonga.so';
mysql> INSTALL PLUGIN groonga SONAME 'ha_mroonga.so';

Running modes
-------------
Expand Down
2 changes: 1 addition & 1 deletion doc/source/userguide/storage.rst
Expand Up @@ -273,7 +273,7 @@ By using last_insert_grn_id function, you can also get the record ID that is ass

last_insert_grn_id function is included in mroonga as a User-Defined Function (UDF), but if you have not yet register it in MySQL by CREATE FUNCTION, you need to invoke the following SQL for defining a function. ::

mysql> CREATE FUNCTION last_insert_grn_id RETURNS INTEGER SONAME 'ha_groonga.so';
mysql> CREATE FUNCTION last_insert_grn_id RETURNS INTEGER SONAME 'ha_mroonga.so';

As you can see in the example above, you can get the record ID by _id column or last_insert_grn_id function. It will be useful to use this value in the ensuing SQL queries like UPDATE. ::

Expand Down

0 comments on commit b1c9355

Please sign in to comment.