Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
db.createdb(1)		    GRASS GIS User's Manual		db.createdb(1)

NAME
       db.createdb  - Creates an empty database.

KEYWORDS
       database, attribute table, SQL

SYNOPSIS
       db.createdb
       db.createdb --help
       db.createdb driver=name database=name  [--help]	[--verbose]  [--quiet]
       [--ui]

   Flags:
       --help
	   Print usage summary

       --verbose
	   Verbose module output

       --quiet
	   Quiet module	output

       --ui
	   Force launching GUI dialog

   Parameters:
       driver=nameA [required]
	   Name	of database driver
	   Options: dbf, ogr, pg, sqlite
	   Default: sqlite

       database=nameA [required]
	   Name	of database

DESCRIPTION
       db.createdb allows the user to create a new empty database through dif-
       ferent  drivers.	A working database connection needs to be established,
       see db.login.

       Currently only SQLite and PostgreSQL database drivers are supported.

EXAMPLES
   Create a new	SQLite file-based database
       Note that the standard GRASS GIS	SQLite database	is by  default	gener-
       ated  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 database
       Create 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

TODO
       Support other database drivers, too.

SEE ALSO
	db.columns, db.connect,	db.describe, db.drivers, db.dropdb,  db.dropt-
       able, db.execute, db.login, db.tables

       GRASS SQL interface

AUTHORS
       Radim Blazek, ITC-Irst, Trento, Italy
       SQLite  and PostgreSQL support by Martin	Landa, Czech Technical Univer-
       sity in Prague, Czech Republic

SOURCE CODE
       Available at: db.createdb source	code (history)

       Main index | Database index | Topics index | Keywords index | Graphical
       index | Full index

       A(C) 2003-2020 GRASS Development	Team, GRASS GIS	7.8.4 Reference	Manual

GRASS 7.8.4							db.createdb(1)

NAME | KEYWORDS | SYNOPSIS | DESCRIPTION | EXAMPLES | TODO | SEE ALSO | AUTHORS | SOURCE CODE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=db.createdb&sektion=1&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help