[GRASS-git] [OSGeo/grass] 74dc1e: v.db.select: Add -e flag (escape newlines and back...

Huidae Cho noreply at github.com
Tue Apr 21 07:56:26 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/OSGeo/grass
  Commit: 74dc1e4fabf03e5a0ac71cc2142ea5d809fc06be
      https://github.com/OSGeo/grass/commit/74dc1e4fabf03e5a0ac71cc2142ea5d809fc06be
  Author: Huidae Cho <grass4u at gmail.com>
  Date:   2020-04-21 (Tue, 21 Apr 2020)

  Changed paths:
    M vector/v.db.select/main.c
    M vector/v.db.select/testsuite/test_v_db_select.py

  Log Message:
  -----------
  v.db.select: Add -e flag (escape newlines and backslashes) and -j flag (JSON output) (#476)

* v.db.select: Add -n flag to avoid multiple lines per record

* Escape backslash to avoid confusion

* v.db.select: Implement the -j flag for JSON output

* Escape double quotes

* Copyright block

* Minor refactoring (options and flags)

* JSON test

* Use a range for copyright years

* Validate JSON output by loading it first




More information about the grass-commit mailing list