Debian Codegraph @

doc/source/reference/commands/config_set.rst

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