1db.createdb(1)              GRASS GIS User's Manual             db.createdb(1)
2
3
4

NAME

6       db.createdb  - Creates an empty database.
7

KEYWORDS

9       database, attribute table, SQL
10

SYNOPSIS

12       db.createdb
13       db.createdb --help
14       db.createdb driver=name database=name  [--help]  [--verbose]  [--quiet]
15       [--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 [required]
32           Name of database driver
33           Options: dbf, mesql, mysql, odbc, ogr, pg, sqlite
34           Default: sqlite
35
36       database=name [required]
37           Name of database
38

DESCRIPTION

40       db.createdb allows the user to create a new empty database through dif‐
41       ferent  drivers. A working database connection needs to be established,
42       see db.login.
43
44       Currently only SQLite and PostgreSQL database drivers are supported.
45

EXAMPLES

47   Create a new SQLite file-based database
48       Note that the standard GRASS GIS SQLite database is by  default  gener‐
49       ated  in the user’s current mapset. This example shows an out-of-mapset
50       database file creation:
51       db.createdb driver=sqlite database=/opt/sqlite.db
52
53   Create a new PostgreSQL database
54       Create a new PostgreSQL database (after the PostgreSQL  connection  got
55       established through the pg driver):
56       db.createdb driver=pg database=grassdb
57
58       Create  a  new PostgreSQL database (after the PostgreSQL connection got
59       established through the odbc driver):
60       db.createdb driver=odbc database=grassdb
61

TODO

63       Support other database drivers, too.
64

SEE ALSO

66        db.columns, db.connect, db.describe, db.drivers, db.dropdb,  db.dropt‐
67       able, db.execute, db.login, db.tables
68
69       GRASS SQL interface
70

AUTHORS

72       Radim Blazek, ITC-Irst, Trento, Italy
73       SQLite  and PostgreSQL support by Martin Landa, Czech Technical Univer‐
74       sity in Prague, Czech Republic
75

SOURCE CODE

77       Available at: db.createdb source code (history)
78
79       Main index | Database index | Topics index | Keywords index | Graphical
80       index | Full index
81
82       © 2003-2020 GRASS Development Team, GRASS GIS 7.8.5 Reference Manual
83
84
85
86GRASS 7.8.5                                                     db.createdb(1)
Impressum