From 40bffc6950425d4e63726596670060d8d8cdddd6 Mon Sep 17 00:00:00 2001 From: steve-chavez Date: Tue, 12 May 2020 13:24:40 -0500 Subject: [PATCH] Add subheading to db-schema --- configuration.rst | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/configuration.rst b/configuration.rst index 00d0f7ef6..2b066f896 100644 --- a/configuration.rst +++ b/configuration.rst @@ -81,22 +81,23 @@ db-schema This schema gets added to the `search_path `_ of every request. +List of schemas +~~~~~~~~~~~~~~~ + You can also specify a list of schemas that can be used for **schema-based multitenancy** and **api versioning** by :ref:`multiple-schemas`. Example: .. code:: bash db-schema = "tenant1, tenant2" - ##or - ##db-schema = "v1, v2" + + If you don't :ref:`Switch Schemas `, the first schema in the list(``tenant1`` in this case) is chosen as the default schema. + + *Only the chosen schema* gets added to the `search_path `_ of every request. .. warning:: Never expose private schemas in this way. See :ref:`schema_isolation`. - If you don't :ref:`Switch Schemas `, the first schema in the list(``tenant1`` in this case) is chosen as the default schema. - - Only the chosen schema gets added to the `search_path `_ of every request. - .. _db-anon-role: db-anon-role