db.createdb(1)
β¨ db.createdb π
okay bestie, welcome to db.createdb from the GRASS GIS User's Manual β it's giving database creator energy and honestly? iconic. π
πΈ NAME πΈ
db.createdb β creates an empty database. that's it, that's the whole vibe. a blank canvas, a fresh start, main character origin story fr fr β¨
π KEYWORDS π
database, attribute table, SQL β iykyk π
π¦ SYNOPSIS π¦
db.createdb
db.createdb --help
db.createdb driver=name database=name [--help] [--verbose] [--quiet]
[--ui]
π Flags:
--helpβ prints the usage summary so you're not out here guessing, bestie π«Ά--verboseβ verbose module output, aka it tells you everything π¬--quietβ quiet module output, aka it shuts up and just does the thing π€«--uiβ forces the GUI dialog to launch. clicky clicky mode π±οΈβ¨
π Parameters:
driver=name[required] β name of the database driver π- Options:
dbf,mesql,mysql,odbc,ogr,pg,sqlite - Default:
sqlite
- Options:
database=name[required] β name of the database πΎ
π DESCRIPTION π
so like, db.createdb lets you create a brand-new empty database through a bunch of different drivers. no cap. but heads up: you need a working database connection already established first β go see db.login for that part, she's the plug π
as of right now, only the SQLite and PostgreSQL database drivers are supported. the rest are just... there. standing in the corner. π
π EXAMPLES π
π Create a new SQLite file-based database
quick note bestie: the standard GRASS GIS SQLite database is by default generated in the user's current mapset. this example is showing you an out-of-mapset database file creation, so we're being extra:
db.createdb driver=sqlite database=/opt/sqlite.db
π Create a new PostgreSQL database
create a new PostgreSQL database β and this is after the PostgreSQL connection got established through the pg driver:
db.createdb driver=pg database=grassdb
and also, create a new PostgreSQL database β this time after the PostgreSQL connection got established through the odbc driver:
db.createdb driver=odbc database=grassdb
π§ TODO π§
support other database drivers, too. someday. manifesting it πβ¨
π SEE ALSO π
db.columns, db.connect, db.describe, db.drivers, db.dropdb, db.droptable, db.execute, db.login, db.tables
also: GRASS SQL interface π
π«Ά AUTHORS π«Ά
- Radim Blazek, ITC-Irst, Trento, Italy
- SQLite and PostgreSQL support by Martin Landa, Czech Technical University in Prague, Czech Republic
absolute legends, no notes π
π» SOURCE CODE π»
available at: db.createdb 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
okay that's the whole page bestie β this was GRASS 8.4.2 dropping db.createdb(1) for you, and yes she ate. periodt. π
β¨π
π¦ 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