discardGeometryColumnSql function

String discardGeometryColumnSql(
  1. String table,
  2. String column
)

Builds the SQL for DiscardGeometryColumn, which removes a geometry column's geometry_columns metadata registration (and its spatial index, if any) without dropping the underlying table column.

Useful in onDowngrade/onUpgrade migration paths that need to undo addGeometryColumnSql.

Implementation

String discardGeometryColumnSql(String table, String column) =>
    "SELECT DiscardGeometryColumn('$table', '$column')";