Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Added docs for SET and SHOW CONFIG query #1323

Merged
merged 1 commit into from
Oct 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/_toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ parts:
- file: source/reference/evaql/select
- file: source/reference/evaql/explain
- file: source/reference/evaql/show_functions
- file: source/reference/evaql/show_config
- file: source/reference/evaql/set_config
- file: source/reference/evaql/create_database
- file: source/reference/evaql/create_function
- file: source/reference/evaql/create_index
Expand Down
11 changes: 11 additions & 0 deletions docs/source/reference/evaql/set_config.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
SET CONFIG
==============

.. _set_config:

Sets the value of a configuration parameter to the passed value. Both `TO` and `=` are valid assignment operators.

.. code:: sql

SET OPENAI_KEY TO "abc";
SET OPENAI_KEY = "abc";
11 changes: 11 additions & 0 deletions docs/source/reference/evaql/show_config.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
SHOW CONFIG
==============

.. _show_config:

Returns the value of a specified configuration parameter.

.. code:: sql

SHOW <parameter_name>;
SHOW OPENAI_KEY;