|
NAMEdb.createdb - Creates an empty database.KEYWORDSdatabase, attribute table, SQLSYNOPSISdb.createdbdb.createdb --help db.createdb driver=name database=name [--help] [--verbose] [--quiet] [--ui] Flags:
Parameters:
DESCRIPTIONdb.createdb allows the user to create a new empty database through different drivers. A working database connection needs to be established, see db.login.Currently only SQLite and PostgreSQL database drivers are supported. EXAMPLESCreate a new SQLite file-based databaseNote that the standard GRASS GIS SQLite database is by default generated in the user’s current mapset. This example shows an out-of-mapset database file creation:db.createdb driver=sqlite database=/opt/sqlite.db Create a new PostgreSQL databaseCreate a new PostgreSQL database (after the PostgreSQL connection got established through the pg driver):db.createdb driver=pg database=grassdb Create a new PostgreSQL database (after the PostgreSQL connection
got established through the odbc driver):
db.createdb driver=odbc database=grassdb TODOSupport other database drivers, too.SEE ALSOdb.columns, db.connect, db.describe, db.drivers, db.dropdb, db.droptable, db.execute, db.login, db.tablesGRASS SQL interface AUTHORSRadim Blazek, ITC-Irst, Trento, ItalySQLite and PostgreSQL support by Martin Landa, Czech Technical University in Prague, Czech Republic SOURCE CODEAvailable at: db.createdb source code (history)Main index | Database index | Topics index | Keywords index | Graphical index | Full index © 2003-2021 GRASS Development Team, GRASS GIS 7.8.6 Reference Manual
Visit the GSP FreeBSD Man Page Interface. |