1db.databases(1) GRASS GIS User's Manual db.databases(1)
2
3
4
6 db.databases - Lists all databases for a given driver and location.
7
9 database, attribute table, SQL
10
12 db.databases
13 db.databases --help
14 db.databases [driver=name] [location=name] [--help] [--verbose]
15 [--quiet] [--ui]
16
17 Flags:
18 --help
19 Print usage summary
20
21 --verbose
22 Verbose module output
23
24 --quiet
25 Quiet module output
26
27 --ui
28 Force launching GUI dialog
29
30 Parameters:
31 driver=name
32 Name of database driver
33 Options: dbf, mesql, mysql, odbc, ogr, pg, sqlite
34 Default: sqlite
35
36 location=name
37 Location
38 Path for SQLite driver, or connection string for PostgreSQL driver
39
41 db.databases lists all databases for a given driver and optionally lo‐
42 cation.
43
45 Currently supported database drivers are SQLite, PostgreSQL, and ODBC.
46
47 Default location for SQLite driver is the full path for the current
48 mapset. For PostgreSQL driver it’s empty connection string.
49
51 List SQLite databases in the current mapset:
52 db.databases driver=sqlite
53
54 List SQLite databases in a given directory:
55 db.databases driver=sqlite location=/opt/sqlite
56
57 List PostgreSQL databases from database server running on given port:
58 db.databases driver=pg location="host=server_name port=5333"
59
61 db.columns, db.describe, db.drivers, db.execute, db.login, db.tables
62
63 GRASS SQL interface
64
66 Radim Blazek, ITC-Irst, Trento, Italy
67 Updated for GRASS 7 by Martin Landa, Czech Technical University in
68 Prague, Czech Republic
69
71 Available at: db.databases source code (history)
72
73 Accessed: Saturday Oct 28 18:17:10 2023
74
75 Main index | Database index | Topics index | Keywords index | Graphical
76 index | Full index
77
78 © 2003-2023 GRASS Development Team, GRASS GIS 8.3.1 Reference Manual
79
80
81
82GRASS 8.3.1 db.databases(1)