db.tables(1)

✨ db.tables β€” the GRASS GIS User's Manual glow-up ✨

okay bestie, welcome to the GRASS GIS User's Manual entry for db.tables(1) πŸ’– she's a little icon, a tiny legend, and honestly? she does one thing and she does it well.


🌸 NAME 🌸

db.tables β€” lists all tables for a given database. that's it. that's the whole gig. no cap. πŸ’…


πŸŽ€ KEYWORDS πŸŽ€

database, attribute table πŸ¦‹


✨ SYNOPSIS ✨

db.tables
db.tables --help
db.tables [-ps]  [driver=name]   [database=name]   [--help]  [--verbose]
[--quiet]  [--ui]

🫢 Flags 🫢

  • -p β€” print tables and exit. she prints, she dips. main character exit. πŸšͺ✨
  • -s β€” system tables instead of user tables. yes queen, look at the system ones. πŸ‘‘
  • --help β€” print usage summary. whenever u forget what's going on, she's got u. πŸ₯Ί
  • --verbose β€” verbose module output. she talks more. we love that for her. πŸ’¬
  • --quiet β€” quiet module output. she says nothing. mysterious. elusive. πŸ«₯
  • --ui β€” force launching GUI dialog. for when clicking > typing, no judgement. πŸ–±οΈπŸŒˆ

🌼 Parameters 🌼

  • driver=name β€” name of database driver. Options: dbf, mesql, mysql, odbc, ogr, pg, sqlite Default: sqlite
  • database=name β€” name of database. Default: $GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db

πŸ’– DESCRIPTION πŸ’–

db.tables lists all tables for a given database. literally that. she's the girl in the group chat who just tells u the tea and leaves. πŸ“


πŸ¦‹ NOTE πŸ¦‹

If parameters for database connection are already set with db.connect, they are taken as default values and do not need to be spcified each time. (yes bestie, that spelling is verbatim β€” i do not edit the ancestors' words, i just ✨decorate✨ them.)

translation: if u already told db.connect ur whole situation, db.tables just picks it up like it's gossip she already heard. no need to re-explain. iykyk. πŸ’œ

🌈 EXAMPLES 🌈

πŸŽ€ List all tables if database connection is already set πŸŽ€

db.tables -p

πŸŽ€ List all DBF tables πŸŽ€

db.tables driver=dbf database=/grassdata/nc_spm_08/user1/PERMANENT/dbf

πŸŽ€ List all tables in SQLite database (note that this is the default setting) πŸŽ€

db.tables -p driver=sqlite database=’$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db’
lowkey obsessed with that third one. it's giving the default, it's giving no thoughts head empty just vibes, and it still ate. πŸ”₯

πŸ‘‘ SEE ALSO πŸ‘‘

  • db.columns, db.droptable, db.login, db.execute, GRASS SQL interface 🌟

πŸ’… AUTHOR πŸ’…

Unknown

not me romanticising the anonymous coder. u dropped this πŸ‘‘, whoever u are. 🫢

⭐ SOURCE CODE ⭐

Available at: db.tables source code (history)

Accessed: Saturday Jan 17 05:40:33 2026

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

Β© 2003-2025 GRASS Development Team, GRASS GIS 8.4.2 Reference Manual


and that's the whole page bestie πŸ’– shoutout to the GRASS Development Team, Β© 2003-2025, and to the GRASS GIS 8.4.2 Reference Manual β€” accessed Saturday Jan 17 05:40:33 2026, which is so specific and honestly iconic of her. db.tables(1), GRASS 8.4.2, periodt. πŸ’…βœ¨πŸŒΈ

πŸ“¦ where this page comes from