[GRASS-git] [OSGeo/grass] 74ba8d: db.columns: Add JSON support (#6042)

Nishant Bansal noreply at github.com
Fri Jul 18 01:30:10 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 74ba8dfbe775e089702627c6881fb56086f7f520
      https://github.com/OSGeo/grass/commit/74ba8dfbe775e089702627c6881fb56086f7f520
  Author: Nishant Bansal <nishant.bansal.282003 at gmail.com>
  Date:   2025-07-18 (Fri, 18 Jul 2025)

  Changed paths:
    M db/CMakeLists.txt
    M db/db.columns/Makefile
    M db/db.columns/db.columns.md
    M db/db.columns/main.c
    M db/db.columns/testsuite/test_dbcolumns.py

  Log Message:
  -----------
  db.columns: Add JSON support (#6042)

This adds JSON support to the db.columns module and keeps current output as plain. The JSON output is a list of names just like the plain output (see also discussion in #6072 for more metadata).

The following changes are included:

1. Adds a `format` option with `plain`, and `json` modes for output formatting.
2. Adds tests covering each of the new formats.
3. Adds a Python example to the documentation for parsing JSON output.

Closes: #6008

---------

Signed-off-by: Nishant Bansal <nishant.bansal.282003 at gmail.com>



To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications


More information about the grass-commit mailing list