DESCRIPTION
v.db.connect prints or sets database connection for a vector map.
NOTE
If parameters for database connection are already set with
db.connect, they are taken as default values and
do not need to be spcified each time.
EXAMPLE
Print database connection
v.db.connect -p map=vectormap
Print column types and names of table linked to vector map
v.db.connect -c map=vectormap
Connect vector map to database (DBF driver)
v.db.connect map=vectormap table=table
field=1 key=cat driver=dbf
database=/daten/grassdata/fire/PERMANENT/dbf
Connect vector map to database with variables
(note: single quotes must be used)
v.db.connect map=vectormap table=table
field=1 key=cat driver=dbf
database='$GISDBASE/$LOCATION_NAME/PERMANENT/dbf'
Connect vector map to database with variables
(note: single quotes must be used)
v.db.connect map=vectormap table=table
field=1 key=cat driver=dbf
database='$GISDBASE/$LOCATION_NAME/$MAPSET/dbf'
Connect vector map to database (PostgreSQL driver)
db.describe -c map=vectormap
v.db.connect map=vectormap table=table
field=1 key=oid driver=pg
database="host=myserver.itc.it,dbname=mydb,user=name"
table=mytable key=id
SEE ALSO
db.connect
db.copy
GRASS 5.1
tutorial pages
AUTHOR
Radim Blazek, ITC-Irst, Trento, Italy
Last changed: $Date: 2003/10/20 16:48:02 $
Help Index