db.describe(1)
π db.describe(1) β GRASS GIS User's Manual π
okay bestie, grab your strawberry matcha because we're about to describe a table in detail and it's gonna be iconic πβ¨
β¨ NAME β¨
db.describe β Describes a table in detail. no cap, that's literally the whole job π
π·οΈ KEYWORDS π·οΈ
database, attribute table
πΈ SYNOPSIS πΈ
db.describe
db.describe --help
db.describe [-c] table=name [driver=name] [database=name] [--help]
[--verbose] [--quiet] [--ui]
π Flags π
-cβ Print column names only instead of full column descriptions. the "just the names pls" mode π«Ά--helpβ Print usage summary--verboseβ Verbose module output--quietβ Quiet module output--uiβ Force launching GUI dialog
π¦ Parameters π¦
table=name[required] β Name of attribute table. you GOTTA give this one, it's not optional bestie πdriver=nameβ Name of database driver- Options:
dbf,mesql,mysql,odbc,ogr,pg,sqlite - Default:
sqlite
- Options:
database=nameβ Name of database- Default:
$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db
- Default:
π DESCRIPTION π
db.describe displays table information. that's the vibe. and if you pass the parameter -c, then instead of the full column descriptions you only get the column names β like a little teaser instead of the whole meal β¨
π 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. so yes β set it once, and you're free, main character energy π
(the original says "spcified", and honestly? we're leaving that typo exactly where it is, it's part of the lore now π)
π₯ EXAMPLES π₯
List column descriptions of table in SQLite database (note that this is the default setting)
db.describe driver=sqlite table=hospitals \
database=β$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.dbβ
# or simply
db.describe myarchsites
π DBF example π
db.describe -c table=hospitals database=β$GISDBASE/$LOCATION_NAME/PERMANENT/dbf/β \
driver=dbf
ncols: 16
nrows: 160
Column 1: cat:INTEGER:11
Column 2: OBJECTID:INTEGER:11
Column 3: AREA:DOUBLE PRECISION:20
[...]
db.describe table=hospitals database=β$GISDBASE/$LOCATION_NAME/PERMANENT/dbf/β \
driver=dbf
table:hospitals
description:
insert:yes
delete:yes
ncols:16
nrows:160
column:cat
description:
type:INTEGER
len:11
scale:0
precision:10
default:
nullok:yes
select:yes
update:yes
column:OBJECTID
description:
type:INTEGER
[...]
look at all those columns popping off, we love a fully-described table π
π SEE ALSO π
db.columns, db.droptable, db.execute, db.login, db.tables, GRASS SQL interface
go read those too, they're all in the same friend group π«Ά
π AUTHOR π
Radim Blazek, ITC-Irst, Trento, Italy
π§ SOURCE CODE π§
Available at: db.describe 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 π
this was pulled straight from GRASS 8.4.2 β db.describe(1), the manual page that ate and left no crumbs πβ¨ bye ily, go describe a table π¦
π¦ where this page comes from
- fedora 44: grass 8.4.2-4.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms