From 2e31383ff78e839ebcd9f3f005ac6b8d3e6a17d3 Mon Sep 17 00:00:00 2001 From: hershd23 Date: Fri, 27 Oct 2023 02:57:29 -0400 Subject: [PATCH] Added configuration docs for SET and SHOW CONFIG query --- 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 9fca93eac0..864bab2fc2 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 0000000000..599fe0fc04 --- /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 0000000000..2991f4c28e --- /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;