Skip to content

Commit

Permalink
Added docs for SET and SHOW CONFIG query (#1323)
Browse files Browse the repository at this point in the history
Resolved #1312 partially, limited to the SQL queries themselves
  • Loading branch information
hershd23 authored Oct 27, 2023
1 parent 7c44d98 commit 60f4b68
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
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;

0 comments on commit 60f4b68

Please # to comment.