NAME
v.database - Set default driver / database for new vector attributes.
SYNOPSIS
v.database
v.database help
v.database [-p] [driver=string] [database=string] [schema=string]
Flags:
- -p
- print current values
Parameters:
- driver=string
- Driver name.
- Options: dbf,odbc,ogr,pg,shp
- database=string
- Database name.
- schema=string
- Database schema. Don't use this option if schemas are not supported by driver/database server.
DESCRIPTION
v.database is used to set the default driver/database for
vector attributes storage. All created vector maps will get
stored their attributes according to these settings.
A database schema is stored with table name in 'dbln' file (qualified name).
EXAMPLES
Get current settings:
v.database -p
Define PostgreSQL attribute storage settings: using database 'botswanaUTM34' on external
server:
v.database driver=pg database="host=pgserver.itc.it,dbname=botswanaUTM34,user=postgres"
Schema support: It is possible to set a default schema for a new vector table:
v.database driver=pg database=test schema=user1
Define local DBF file attribute storage settings:
v.database driver=dbf database='$GISDBASE/$LOCATION_NAME/$MAPSET/dbf'
SEE ALSO
v.db.connect,
v.external
AUTHOR
Radim Blazek, ITC-Irst, Trento, Italy
Last changed: $Date: 2004/08/17 12:13:19 $
Help Index