Skip to content

docs: spark db:table --dbgroup #8313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions user_guide_src/source/changelogs/v4.5.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ Commands
- Added ``spark config:check`` command to check Config values. See
:ref:`confirming-config-values` for the details.
- Added ``spark lang:find`` command to update translations keys. See :ref:`generating-translation-files-via-command` for the details.
- The ``--dbgroup`` option has been added to the ``spark db:table`` command.
See :ref:`Database Commands <db-command-specify-the-dbgroup>`.

Testing
=======
Expand Down
16 changes: 16 additions & 0 deletions user_guide_src/source/dbmgmt/db_commands.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,22 @@ you can use the ``db:table --show`` command:
When using this command it is assumed that a table exists.
Otherwise, CodeIgniter will complain that the database has no tables.

.. _db-command-specify-the-dbgroup:

Specify the Database Group
==========================

db:table --dbgroup
------------------

.. versionadded:: 4.5.0

You can specify the database group to use with the ``--dbgroup`` option:

.. code-block:: console

php spark db:table --show --dbgroup tests

Retrieve Some Records
=====================

Expand Down