From 60f4b68162b3556c1ac891991d24d5dadafcccff Mon Sep 17 00:00:00 2001 From: Hersh Dhillon Date: Fri, 27 Oct 2023 03:16:18 -0400 Subject: [PATCH] Added docs for SET and SHOW CONFIG query (#1323) Resolved #1312 partially, limited to the SQL queries themselves --- docs/_toc.yml | 2 ++ docs/source/reference/evaql/set_config.rst | 11 +++++++++++ docs/source/reference/evaql/show_config.rst | 11 +++++++++++ 3 files changed, 24 insertions(+) create mode 100644 docs/source/reference/evaql/set_config.rst create mode 100644 docs/source/reference/evaql/show_config.rst diff --git a/docs/_toc.yml b/docs/_toc.yml index 9fca93eac..864bab2fc 100644 --- a/docs/_toc.yml +++ b/docs/_toc.yml @@ -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 diff --git a/docs/source/reference/evaql/set_config.rst b/docs/source/reference/evaql/set_config.rst new file mode 100644 index 000000000..599fe0fc0 --- /dev/null +++ b/docs/source/reference/evaql/set_config.rst @@ -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"; \ No newline at end of file diff --git a/docs/source/reference/evaql/show_config.rst b/docs/source/reference/evaql/show_config.rst new file mode 100644 index 000000000..2991f4c28 --- /dev/null +++ b/docs/source/reference/evaql/show_config.rst @@ -0,0 +1,11 @@ +SHOW CONFIG +============== + +.. _show_config: + +Returns the value of a specified configuration parameter. + +.. code:: sql + + SHOW ; + SHOW OPENAI_KEY;