Note: This document is for an older version of GRASS GIS that is outdated. You should upgrade, and read the current manual page.
NAME
db.databases - Lists all databases for a given driver and location.
KEYWORDS
database,
attribute table,
SQL
SYNOPSIS
db.databases
db.databases --help
db.databases [driver=name] [location=name] [--help] [--verbose] [--quiet] [--ui]
Flags:
- --help
- Print usage summary
- --verbose
- Verbose module output
- --quiet
- Quiet module output
- --ui
- Force launching GUI dialog
Parameters:
- driver=name
- Name of database driver
- Options: dbf, odbc, ogr, pg, sqlite
- Default: sqlite
- location=name
- Location
- Path for SQLite driver, or connection string for PostgreSQL driver
db.databases lists all databases for a given
driver
and optionally
location.
Currently supported database drivers are
SQLite,
PostgreSQL,
and
ODBC.
Default location for SQLite driver is the full path for the
current mapset. For PostgreSQL driver it's empty connection string.
List SQLite databases in the current mapset:
db.databases driver=sqlite
List SQLite databases in a given directory:
db.databases driver=sqlite location=/opt/sqlite
List PostgreSQL databases from database server running on given port:
db.databases driver=pg location="host=server_name port=5333"
db.columns,
db.describe,
db.drivers,
db.execute,
db.login,
db.tables
GRASS SQL interface
Radim Blazek, ITC-Irst, Trento, Italy
Updated for GRASS 7 by Martin Landa, Czech Technical University in Prague, Czech Republic
SOURCE CODE
Available at:
db.databases source code
(history)
Latest change: Thu Feb 3 11:10:06 2022 in commit: 73413160a81ed43e7a5ca0dc16f0b56e450e9fef
Main index |
Database index |
Topics index |
Keywords index |
Graphical index |
Full index
© 2003-2022
GRASS Development Team,
GRASS GIS 8.0.3dev Reference Manual