t.connect(1)
π t.connect(1) π
okay bestie, welcome to the GRASS GIS User's Manual β yes, the whole thing, and today's main character is t.connect. It's a temporal lil guy, filed under temporal, settings, metadata ποΈβ¨
β¨ NAME β¨
t.connect β prints and/or sets the general temporal GIS database connection for the current mapset. That's it, that's the job. π
πΈ KEYWORDS πΈ
- temporal
- settings
- metadata
π SYNOPSIS π
t.connect
t.connect --help
t.connect [-pcdg] [driver=name] [database=name] [--help]
[--verbose] [--quiet] [--ui]
π¦ Flags π¦
-pβ Print the current connection parameters and dip out. exit stage left πͺ-cβ Check the connection parameters, and if they're uninitialized, set them, then exit. Lowkey the responsible friend. π«Ά-dβ Set everything from default settings and exit. It will overwrite your current settings if they're initialized, so, like, be aware bestie β οΈ-gβ Print the current connection parameter in shell style and exit. Fancy formatting moment. πβ¨--helpβ Print the usage summary. The classic. π«--verboseβ Verbose module output. It's giving talkative. π£οΈ--quietβ Quiet module output. Shhh. π€«--uiβ Force launching the GUI dialog. Buttons and windows, slay. πͺπ
π Parameters π
driver=nameβ Name of the database driver. Options:sqlite,pgDefault:sqlitedatabase=nameβ Name of the database. Default:$GISDBASE/$LOCATION_NAME/$MAPSET/tgis/sqlite.db
π DESCRIPTION π
t.connect lets you set the temporal database connection. And the default setting? The temporal database of type sqlite3 lives right there in the current mapset directory. Cozy. π
The -p flag shows you the current temporal database connection parameters. Peek at the vibes. π
The -pg flag shows you those same current temporal database connection parameters, but in shell style. Same tea, cuter cup. π«
The -c flag silently checks whether the temporal database connection parameters have been set β and if they haven't, it sets them to GRASS's default values. It just handles it. No drama. π€π
π NOTES π
Setting the connection with t.connect will not test the connection for validity. So likeβ¦ a database connection will not be established. It's giving manifesting, not doing. π
The connection values are stored in the mapset's VAR file. The -d flag sets the default TGIS connection parameters, and a SQLite database "tgis/sqlite.db" will be created in the current mapset directory. It lives in the "tgis" sub-directory specifically so it does not interfere with the sqlite3 database used for vector attribute storage. Respectful roommates fr fr. π‘β¨
If you've got tens of thousands of maps to register in the temporal database, or you need concurrent read and write access in the temporal database β bestie, consider using a PostgreSQL connection instead. π
Be aware that you have to set the PostgreSQL connection explicitly in every mapset that should store temporal information in the temporal database. Every single one. No shortcuts. π¨
PostgreSQL and SQLite databases can not be mixed in a project. Pick a lane, bestie. π«
β EXAMPLES β
π SQLite
The SQLite database is created automatically when you use it the first time. β¨
# use single quotes here
t.connect driver=sqlite database=β$GISDBASE/$LOCATION_NAME/PERMANENT/tgis/sqlite.dbβ
t.connect -p
t.info -s
π PostgreSQL
When you're using a PostgreSQL database, the user will need to specify the TGIS database connection for each mapset.
t.connect driver=pg database="dbname=grass_test user=soeren password=abcdefgh"
t.connect -p
t.info -s
π AUTHOR π
Soeren Gebbert, ThΓΌnen Institute of Climate-Smart Agriculture πΎπ
π§ SOURCE CODE π§
Available at: t.connect source code (history)
Accessed: Saturday Jan 17 05:41:53 2026
Main index | Temporal 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 β GRASS 8.4.2, t.connect(1), no cap, that's the footer, mwah ππ«Ά
π¦ 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