[GRASS-git] [OSGeo/grass] 8f18ba: v.db.connect: Add JSON support (#6077)

Nishant Bansal noreply at github.com
Mon Aug 25 13:20:17 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 8f18bae78400300f6737f2ffafeda19b6f8af3ec
      https://github.com/OSGeo/grass/commit/8f18bae78400300f6737f2ffafeda19b6f8af3ec
  Author: Nishant Bansal <nishant.bansal.282003 at gmail.com>
  Date:   2025-08-25 (Mon, 25 Aug 2025)

  Changed paths:
    M vector/CMakeLists.txt
    M vector/v.db.connect/Makefile
    M vector/v.db.connect/main.c
    M vector/v.db.connect/testsuite/test_v_db_connect.py
    M vector/v.db.connect/v.db.connect.md

  Log Message:
  -----------
  v.db.connect: Add JSON support (#6077)

This PR adds JSON support to the v.db.connect tool. The JSON output has a list as the first level item because the tool gives connections with -p, and we don't anticipate there is anything to output for the whole vector map: one or more connections are associated with a map while per-map information is provided with v.info. CSV simply follows the JSON while providing a legacy variant.

The column info with -c is printed for a specific layer, so a CSV with columns for names and types is used which roughly corresponds to the original, now legacy output which is still provided.

---------

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