| 1 |
.. -*- rst -*- |
| 2 |
|
| 3 |
.. groonga-command |
| 4 |
.. database: config_get |
| 5 |
|
| 6 |
``config_get`` |
| 7 |
============== |
| 8 |
|
| 9 |
Summary |
| 10 |
------- |
| 11 |
|
| 12 |
.. versionadded:: 5.1.2 |
| 13 |
|
| 14 |
``config_get`` command returns the value of the specified |
| 15 |
configuration item. |
| 16 |
|
| 17 |
Syntax |
| 18 |
------ |
| 19 |
|
| 20 |
This command takes only one required parameter:: |
| 21 |
|
| 22 |
config_get key |
| 23 |
|
| 24 |
Usage |
| 25 |
----- |
| 26 |
|
| 27 |
Here is an example to set a value to ``alias.column`` |
| 28 |
configuration item and get the value: |
| 29 |
|
| 30 |
.. groonga-command |
| 31 |
.. include:: ../../example/reference/commands/config_get/existent.log |
| 32 |
.. config_set alias.column Aliases.real_name |
| 33 |
.. config_get alias.column |
| 34 |
|
| 35 |
Here is an example to get nonexistent configuration item value: |
| 36 |
|
| 37 |
.. groonga-command |
| 38 |
.. include:: ../../example/reference/commands/config_get/nonexistent.log |
| 39 |
.. config_get nonexistent |
| 40 |
|
| 41 |
``config_get`` returns an empty string for nonexistent configuration |
| 42 |
item key. |
| 43 |
|
| 44 |
Parameters |
| 45 |
---------- |
| 46 |
|
| 47 |
This section describes all parameters. |
| 48 |
|
| 49 |
Required parameters |
| 50 |
^^^^^^^^^^^^^^^^^^^ |
| 51 |
|
| 52 |
There is only one required parameter. |
| 53 |
|
| 54 |
.. _config-get-key: |
| 55 |
|
| 56 |
``key`` |
| 57 |
""""""" |
| 58 |
|
| 59 |
Specifies the key of target configuration item. |
| 60 |
|
| 61 |
The max key size is 4KiB. |
| 62 |
|
| 63 |
You can't use an empty string as key. |
| 64 |
|
| 65 |
Optional parameters |
| 66 |
^^^^^^^^^^^^^^^^^^^ |
| 67 |
|
| 68 |
There is no optional parameter. |
| 69 |
|
| 70 |
Return value |
| 71 |
------------ |
| 72 |
|
| 73 |
``config_get`` command returns the value of the specified |
| 74 |
configuration item:: |
| 75 |
|
| 76 |
[HEADER, VALUE] |
| 77 |
|
| 78 |
``HEADER`` |
| 79 |
^^^^^^^^^^ |
| 80 |
|
| 81 |
See :doc:`/reference/command/output_format` about ``HEADER``. |
| 82 |
|
| 83 |
``VALUE`` |
| 84 |
^^^^^^^^^^ |
| 85 |
|
| 86 |
``VALUE`` is the value of the configuration item specified by |
| 87 |
``key``. It's a string. |
| 88 |
|
| 89 |
See also |
| 90 |
-------- |
| 91 |
|
| 92 |
* :doc:`/reference/configuration` |
| 93 |
* :doc:`config_set` |
| 94 |
* :doc:`config_delete` |