db.databases(1)

πŸ’… db.databases β€” the GRASS GIS User's Manual glow-up

okay bestie, welcome to db.databases(1), and no cap, this little icon is about to tell you every single database your driver knows about. she's the friend who has the group chat receipts for every database in the building. periodt. πŸ’–


✨ NAME ✨

db.databases β€” lists all databases for a given driver and location. yes, all of them. she's thorough like that. πŸŽ€


🏷️ KEYWORDS 🏷️

database, attribute table, SQL

(that's it, that's the vibe check β€” she's a database girlie through and through πŸ¦‹)


πŸ“œ SYNOPSIS πŸ“œ

db.databases
db.databases --help
db.databases  [driver=name]   [location=name]   [--help]  [--verbose]
[--quiet]  [--ui]

🚩 Flags 🚩

  • --help β€” prints the usage summary, aka the "what does this even do" button πŸ™ˆ
  • --verbose β€” verbose module output, she will over-share and you will love her for it πŸ’¬
  • --quiet β€” quiet module output, the "no thoughts, just results" mode 🀫
  • --ui β€” force launching GUI dialog, for when you want a whole window instead of a terminal ✨

πŸŽ›οΈ Parameters πŸŽ›οΈ

  • driver=name β€” name of database driver. Options: dbf, mesql, mysql, odbc, ogr, pg, sqlite. Default: sqlite πŸ’Ύ
  • location=name β€” the location. For the SQLite driver this is a path, and for the PostgreSQL driver it's a connection string πŸ”—

πŸ“– DESCRIPTION πŸ“–

db.databases lists all databases for a given driver, and optionally for a given location too. she's flexible, she's giving main character energy, she's literally just here to hand you the list. πŸ‘‘


πŸ“ NOTES πŸ“

Currently supported database drivers are SQLite, PostgreSQL, and ODBC. so cute, so curated. 🌸

The default location for the SQLite driver is the full path for the current mapset. For the PostgreSQL driver, it's an empty connection string. iykyk. 🧚


πŸ“ 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"

see how easy? she ATE. πŸ”₯


πŸ‘€ SEE ALSO πŸ‘€

db.columns, db.describe, db.drivers, db.execute, db.login, db.tables

GRASS SQL interface

(the whole squad, fr fr β€” go say hi to all of them 🫢)


πŸ‘‘ AUTHORS πŸ‘‘

  • Radim Blazek, ITC-Irst, Trento, Italy
  • Updated for GRASS 7 by Martin Landa, Czech Technical University in Prague, Czech Republic

legends, honestly. 🌈


πŸ’» SOURCE CODE πŸ’»

Available at: db.databases source code (history)

Accessed: Saturday Jan 17 05:40:33 2026

Main index | Database index | Topics index | Keywords index | Graphical index | Full index


and that's the whole page bestie, no notes, we understood the assignment πŸ’€βœ¨

okay so the sign-off: this is the GRASS 8.4.2 Reference Manual, Β© 2003-2025 GRASS Development Team, and you're reading db.databases(1) from GRASS 8.4.2. slay, go list some databases. πŸ’œ

πŸ“¦ where this page comes from