logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

db.droptable - Drops an attribute table.

Authors

       Markus Neteler
       Driver and database options added by Martin Landa, Czech Technical University in Prague, Czech Republic

Description

db.droptable  drops  an  attribute  table.   If  the  -f force flag is not given then nothing is removed,
       instead a preview of the action to be taken is printed.

Examples

Removinganattributetablefromdefaultdatabase
       # show default database
       db.connect -p
       # show available tables
       db.tables -p
       # this will show what would happen
       db.droptable table=sometable
       # actually drop the table
       db.droptable -f table=sometable

   Removinganattributetablefromgivendatabasedb.droptable  allows  defining  optionally  driver and database options different from default connection
       settings (db.connect -p).
       # drop the table from SQLite database
       db.droptable -f table=sometable driver=sqlite database=/opt/sqlite.db

Keywords

       database, attribute table

Name

db.droptable  - Drops an attribute table.

Notes

db.droptable is a front-end to db.execute to allow easier usage. To some extent it  is  verified  if  the
       table is connected to a vector map to avoid accidental table removal.

See Also

db.dropdb,db.dropcolumn,db.execute,db.login,db.connect,db.tables,db.describe,v.db.droptable,

       GRASS SQL interface

Source Code

       Available at: db.droptable source code (history)

       Accessed: Friday Apr 04 01:21:10 2025

       Main index | Database index | Topics index | Keywords index | Graphical index | Full index

       © 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual

GRASS 8.4.1                                                                                 db.droptable(1grass)

Synopsis

db.droptabledb.droptable--helpdb.droptable [-f]  [driver=name]   [database=name]  table=name  [--help]  [--verbose]  [--quiet]  [--ui]

   Flags:-f
           Force removal (required for actual deletion of files)

       --help
           Print usage summary

       --verbose
           Verbose module output

       --quiet
           Quiet module output

       --ui
           Force launching GUI dialog

   Parameters:driver=name
           Name of database driver
           If not given then default driver is used

       database=name
           Name of database
           If not given then default database is used

       table=name[required]
           Name of table to drop

See Also