1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
<h2>DESCRIPTION</h2>
<em>db.dropdb</em> removes an existing database using given database
<b>driver</b>. Currently only <a href="grass-sqlite.html">SQLite</a>
and <a href="grass-pg.html">PostgreSQL</a> database drivers are
supported.
<h2>EXAMPLES</h2>
<h3>Drop (delete) an existing database connected through SQLite driver</h3>
Note that the standard GRASS GIS SQLite database is by default
found in the user's current mapset. This example shows an
out-of-mapset database removal:
<div class="code"><pre>
db.dropdb driver=sqlite database=/opt/sqlite.db
</pre></div>
<h3>Drop an existing database connected through PostgreSQL driver</h3>
<div class="code"><pre>
db.dropdb driver=pg database=grassdb
</pre></div>
<h2>TODO</h2>
Support other database drivers, too.
<h2>SEE ALSO</h2>
<em>
<a href="db.createdb.html">db.createdb</a>,
<a href="db.describe.html">db.describe</a>,
<a href="db.droptable.html">db.droptable</a>,
<a href="db.execute.html">db.execute</a>,
<a href="db.login.html">db.login</a>,
<a href="db.tables.html">db.tables</a>
</em>
<p>
<a href="sql.html">GRASS SQL interface</a>
<h2>AUTHORS</h2>
Radim Blazek, ITC-Irst, Trento, Italy<br>
SQLite and PostgreSQL support by Martin Landa, Czech Technical University in Prague, Czech Republic
|