Skip to content

Commit

Permalink
Follow Jaco-s comments on text about ladybug storages
Browse files Browse the repository at this point in the history
  • Loading branch information
Martijn Dirkse committed Jun 21, 2024
1 parent 2401fce commit 5dc1c7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/source/testing/ladybug/storages/storages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
Storages
========

Ladybug has to store reports persistently. It allows the user to choose whether reports are stored on the local file system, in the database, or another way. From Frank!Framework version 8.1 onwards, the default is to store reports in the database. This can only be done if table LADYBUG exists. The Frank!Framework can create this table but only does so if ``jdbc.migrator.active=true`` has been set in the ``classes`` directory (or ``src/main/resources`` for a Maven-lik project).
Ladybug has to store reports persistently. It allows the user to choose whether reports are stored on the local file system, in the database, or another way. From Frank!Framework version 8.1 onwards, the default is to store reports in the database. This can only be done if table LADYBUG exists. The Frank!Framework can create this table but only does so if ``jdbc.migrator.active=true`` has been set in the ``classes`` directory (or ``src/main/resources`` for a Maven-like project).

If you do not want to use the database storage, you can disable it by setting property ``ladybug.jdbc.datasource=`` (without a vaile after the ``=`` sign) in ``src/main/resources`` (or ``classes``). This tells Ladybug that it is not allowed to access a datasource, which prevents Ladybug from accessing a database. If you want more fine-grained control on the storage used, configure it using ``springIbisTestToolCustom.xml`` as explained in :ref:`ladybugExtendTable`.
If you do not want to use the database storage, you can disable it by setting property ``ladybug.jdbc.datasource=`` (without a vaile after the ``=`` sign) in ``src/main/resources`` (or ``classes``). This tells Ladybug not to use a database. Ladybug will then revert to its file storage that stores reports on the local filesystem. The local filesystem is not a secure storage in a serverless environment because VMs and docker containers are often shut down and recreated. If you want more fine-grained control on the storage used, configure it using ``springIbisTestToolCustom.xml`` as explained in :ref:`ladybugExtendTable`.

You can add extra columns to the LADYBUG database table by adding file ``src/main/resources/ladybug/DatabaseChangelog.xml``. That file is executed along with the internal ``DatabaseChangelog.xml`` that is part of Ladybug itself. Here is an example of ``src/main/resources/ladybug/DatabaseChangelog.xml``:
You can add extra columns to the LADYBUG database table by adding file ``src/main/resources/ladybug/DatabaseChangelog_Custom.xml``. That file is executed along with the internal ``DatabaseChangelog.xml`` that is part of Ladybug itself. Here is an example of ``src/main/resources/ladybug/DatabaseChangelog_Custom.xml``:

.. code-block:: xml
Expand Down

0 comments on commit 5dc1c7b

Please sign in to comment.