1db.databases(1) Grass 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
42 location.
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
70 Last changed: $Date: 2014-12-07 23:22:14 +0100 (Sun, 07 Dec 2014) $
71
73 Available at: db.databases source code (history)
74
75 Main index | Database index | Topics index | Keywords index | Graphical
76 index | Full index
77
78 © 2003-2019 GRASS Development Team, GRASS GIS 7.6.0 Reference Manual
79
80
81
82GRASS 7.6.0 db.databases(1)