[][src]Function spatialite_sys::gaiaDropTable

pub unsafe extern "C" fn gaiaDropTable(
    sqlite: *mut sqlite3,
    table: *const c_char
) -> c_int

Drops a layer-table, removing any related dependency

\param sqlite handle to current DB connection \param table name of the table to be removed

\note this function will drop a SpatialTable, SpatialView or VirtualShape being properly registered within the Metadata tables. \n an eventual Spatial Index will be dropped as well, and any row referring the selected table will be removed from the Metadata tables.

\return 0 on failure, any other value on success

\sa gaiaDropTableEx

\note this one simply is a convenience method alway defaulting to gaiaDropTableEx(sqlite, "main", table);