db.databases - Lists all databases for a given driver and location.
Contents
Description
db.databases lists all databases for a given driver and optionally location.
Examples
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"
Keywords
database, attribute table, SQL
Name
db.databases - Lists all databases for a given driver and location.
Notes
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.
See Also
db.columns,db.describe,db.drivers,db.execute,db.login,db.tables
GRASS SQL interface
Source Code
Available at: db.databases source code (history)
Accessed: Friday Apr 04 01:18:43 2025
Main index | Database index | Topics index | Keywords index | Graphical index | Full index
© 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual
GRASS 8.4.1 db.databases(1grass)
Synopsis
db.databasesdb.databases--helpdb.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,mysql,odbc,ogr,pg,sqlite
Default: sqlitelocation=name
Location
Path for SQLite driver, or connection string for PostgreSQL driver
