Rechercher une page de manuel

Chercher une autre page de manuel:


Langue: en

Version: 335720 (ubuntu - 24/10/10)

Section: 1 (Commandes utilisateur)

SQLite driver in GRASS

Creating a SQLite database

GRASS is automatically creating the SQLite database if it is not yet existing when the first table is created in the SQLite database. It is sufficient to define the connection (see next step).

Connecting GRASS to SQLite

The database name 'sqlite.db' is at user's choice. Also the file storage location can be freely chosen. If the database does not exist, it will be automatically created when database content is created:
# example for storing DB in mapset directory (keep single quotes):
db.connect driver=sqlite database='$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite.db'
db.connect -p

Supported SQL commands

All SQL commands supported by SQLite (for limitations, see SQLite help page: SQL As Understood By SQLite and Unsupported SQL).

Operators available in conditions

All SQL operators supported by SQLite.

Browsing table data in DB

A convenient SQLite front-end is sqlitebrowser. To open a DB file stored within the current mapset, the following way is suggested (corresponds to above database connection):
eval `g.gisenv`
# use double quotes:
sqlitebrowser "$GISDBASE/$LOCATION_NAME/$MAPSET"/sqlite.db


SQLite web site, SQLite manual, db.connect, db.execute, SQL support in GRASS GIS, sqlite - Management Tools

Last changed: $Date: 2009-04-14 21:26:25 +0200 (mar, 14 apr 2009) $
Help Index

Toute la philosophie occidentale n'est qu'un long commentaire à oeuvre
de Platon.
-+- Alfred North Whitehead -+-