sqlite and grass65: was Re: [GRASS-dev] sqlite and grass64
Glynn Clements
glynn at gclements.plus.com
Thu Mar 5 23:50:45 EST 2009
Markus Neteler wrote:
> If allowing one file per map isn't too hard to implement as optional feature
> it might be a (last) requirement to make it the default driver.
AFAICT, there are two obvious ways to do this:
1. Have two SQLite drivers, one using a single file, the other using
one file per map. These can both be built from the same directory (see
the db/drivers/mysql, which builds both the mysql and mesql drivers).
2. If DB_DATABASE refers to an existing directory or ends in a slash,
create a file in that directory with the same name as the map.
Otherwise treat it as the name of the DB file used for all maps.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list