Sha256: 282cbb28b9d188c95b2812aa860e9288189ea922aeed107d80ebb4e29fe2d447

Contents?: true

Size: 1.6 KB

Versions: 32

Compression:

Stored size: 1.6 KB

Contents

.. -*- rst -*-

.. highlightlang:: none

.. groonga-command
.. database: config_get

``config_get``
==============

Summary
-------

.. versionadded:: 5.1.2

``config_get`` command returns the value of the specified
configuration item.

Syntax
------

This command takes only one required parameter::

  config_get key

Usage
-----

Here is an example to set a value to ``alias.column``
configuration item and get the value:

.. groonga-command
.. include:: ../../example/reference/commands/config_get/existent.log
.. config_set alias.column Aliases.real_name
.. config_get alias.column

Here is an example to get nonexistent configuration item value:

.. groonga-command
.. include:: ../../example/reference/commands/config_get/nonexistent.log
.. config_get nonexistent

``config_get`` returns an empty string for nonexistent configuration
item key.

Parameters
----------

This section describes all parameters.

Required parameters
^^^^^^^^^^^^^^^^^^^

There is one required parameter.

.. _config-get-key:

``key``
"""""""

Specifies the key of target configuration item.

The max key size is 4KiB.

You can't use an empty string as key.

Optional parameters
^^^^^^^^^^^^^^^^^^^

There is no optional parameter.

Return value
------------

``config_get`` command returns the value of the specified
configuration item::

  [HEADER, VALUE]

``HEADER``
^^^^^^^^^^

See :doc:`/reference/command/output_format` about ``HEADER``.

``VALUE``
^^^^^^^^^^

``VALUE`` is the value of the configuration item specified by
``key``. It's a string.

See also
--------

  * :doc:`/reference/configuration`
  * :doc:`config_set`
  * :doc:`config_delete`

Version data entries

32 entries across 16 versions & 1 rubygems

Version Path
rroonga-7.0.2-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/config_get.txt
rroonga-7.0.2-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/config_get.txt
rroonga-7.0.2-x64-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/config_get.txt
rroonga-7.0.2-x64-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/config_get.txt
rroonga-6.1.3-x64-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/config_get.txt
rroonga-6.1.3-x64-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/config_get.txt
rroonga-6.1.3-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/config_get.txt
rroonga-6.1.3-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/config_get.txt
rroonga-6.1.0-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/config_get.txt
rroonga-6.1.0-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/config_get.txt
rroonga-6.1.0-x64-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/config_get.txt
rroonga-6.1.0-x64-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/config_get.txt
rroonga-6.0.9-x64-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/config_get.txt
rroonga-6.0.9-x64-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/config_get.txt
rroonga-6.0.9-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/config_get.txt
rroonga-6.0.9-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/config_get.txt
rroonga-6.0.7-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/config_get.txt
rroonga-6.0.7-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/config_get.txt
rroonga-6.0.7-x64-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/config_get.txt
rroonga-6.0.7-x64-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/config_get.txt