Skip to content

Add DELETE statement support #45

@aviralgarg05

Description

@aviralgarg05

Description

Implement support for SQL DELETE statements to allow users to remove rows from tables.

Proposed Solution

  • Add DELETE FROM table_name WHERE condition parsing in the SQL parser
  • Implement delete execution logic in the executor
  • Support WHERE clause filtering for targeted deletes
  • Add validation to prevent deletion without WHERE clause (or require explicit DELETE FROM table)

Acceptance Criteria

  • Parse DELETE statements correctly
  • Execute delete operations with WHERE clause support
  • Add unit tests for delete functionality
  • Update documentation with examples

Technical Notes

  • Reference existing WHERE clause implementation from SELECT
  • Ensure sled storage layer handles row deletion properly
  • Consider adding a confirmation mechanism for large deletes

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions