Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Commit

Permalink
Merge #229
Browse files Browse the repository at this point in the history
229: support more statements r=MarinPostma a=MarinPostma

This pr adds support for more sqlite statements:
- `ALTER TABLE`
- `CREATE INDEX`

fix #228

Co-authored-by: ad hoc <[email protected]>
  • Loading branch information
bors[bot] and MarinPostma authored Feb 16, 2023
2 parents d0307d0 + 44e6673 commit f8d8a11
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sqld/src/query_analysis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ impl StmtKind {
| Stmt::CreateTable { .. }
| Stmt::Update { .. }
| Stmt::Delete { .. }
| Stmt::DropTable { .. },
| Stmt::DropTable { .. }
| Stmt::AlterTable { .. }
| Stmt::CreateIndex { .. },
) => Some(Self::Write),
Cmd::Stmt(Stmt::Select { .. }) => Some(Self::Read),
_ => None,
Expand Down

0 comments on commit f8d8a11

Please sign in to comment.