From 65be76829a46a8c8eb423846c9ac575a0e424b9f Mon Sep 17 00:00:00 2001 From: Martin Trigaux <564822+mart-e@users.noreply.github.com> Date: Tue, 27 Feb 2018 16:51:05 +0100 Subject: [ADD] doc: add missing params and profiling * Add some missing database parameters in documentation * Explain how to profile code Closes #22554 --- doc/reference/cmdline.rst | 49 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) (limited to 'doc/reference') diff --git a/doc/reference/cmdline.rst b/doc/reference/cmdline.rst index 2f1626f6dac..4171f12c5e1 100644 --- a/doc/reference/cmdline.rst +++ b/doc/reference/cmdline.rst @@ -15,7 +15,9 @@ Running the server .. option:: -d , --database - database used when installing or updating modules. + database(s) used when installing or updating modules. + Providing a comma-separated list restrict access to databases provided in + list. .. option:: -i , --init @@ -165,6 +167,44 @@ database databases (so domain ``odoo.com`` using ``(?i)%d`` matches the database ``Odoo``). + Since version 11, it's also possible to restrict access to a given database + listen by using the --database parameter and specifying a comma-separated + list of databases + + When combining the two parameters, db-filter superseed the comma-separated + database list for restricting database list, while the comma-separated list + is used for performing requested operations like upgrade of modules. + + .. code-block:: bash + + odoo-bin --db-filter ^11.*$ + + Restrict access to databases whose name starts with 11 + + .. code-block:: bash + + odoo-bin --database 11firstdatabase,11seconddatabase + + Restrict access to only two databases, 11firstdatabase and 11seconddatabase + + .. code-block:: bash + + odoo-bin --database 11firstdatabase,11seconddatabase -u base + + Restrict access to only two databases, 11firstdatabase and 11seconddatabase, + and update base module on one database: 11firstdatabase + If database 11seconddatabase doesn't exist, the database is created and base modules + is installed + + .. code-block:: bash + + odoo-bin --db-filter ^11.*$ --database 11firstdatabase,11seconddatabase -u base + + Restrict access to databases whose name starts with 11, + and update base module on one database: 11firstdatabase + If database 11seconddatabase doesn't exist, the database is created and base modules + is installed + .. option:: --db-template