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

Commit f8d8a11

Browse files
Merge #229
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]>
2 parents d0307d0 + 44e6673 commit f8d8a11

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sqld/src/query_analysis.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ impl StmtKind {
4242
| Stmt::CreateTable { .. }
4343
| Stmt::Update { .. }
4444
| Stmt::Delete { .. }
45-
| Stmt::DropTable { .. },
45+
| Stmt::DropTable { .. }
46+
| Stmt::AlterTable { .. }
47+
| Stmt::CreateIndex { .. },
4648
) => Some(Self::Write),
4749
Cmd::Stmt(Stmt::Select { .. }) => Some(Self::Read),
4850
_ => None,

0 commit comments

Comments
 (0)