1grass-sqlite(1) Grass User's Manual grass-sqlite(1)
2
3
4
5SQLite driver in GRASS
6
8 GRASS is automatically creating the SQLite database if it is not yet
9 existing. It is sufficient to define the connection (see next step).
10
12 The database name 'sqlite.db' is at user's choice. Also the file stor‐
13 age location can be freely chosen. If the database does not exist, it
14 will be automatically created:
15 # example for storing DB in mapset directory (keep single quotes):
16 db.connect driver=sqlite database='$GISDBASE/$LOCA‐
17 TION_NAME/$MAPSET/sqlite.db'
18 db.connect -p
19
20
22 All SQL commands supported by SQLite (for limitations, see SQLite help
23 page: SQL As Understood By SQLite).
24
26 All SQL operators supported by SQLite.
27
29 A convenient SQLite front-end is sqlitebrowser. To open a DB file
30 stored within the current mapset, the following way is suggested (cor‐
31 responds to above database connection):
32 eval `g.gisenv`
33 # use double quotes:
34 sqlitebrowser "$GISDBASE/$LOCATION_NAME/$MAPSET"/sqlite.db
35
36
38 SQLite web site, SQLite manual, db.execute, SQL support in GRASS GIS,
39 sqlite - Management Tools
40
41 Last changed: $Date: 2007/04/11 12:26:12 $
42 Help Index
43
44
45
46GRASS 6.2.2 grass-sqlite(1)