Implement create virtual table and VUpdate opcode

This commit is contained in:
PThorpe92
2025-02-14 09:34:30 -05:00
parent d775b3ea5a
commit 9c8083231c
22 changed files with 940 additions and 214 deletions

View File

@@ -1724,6 +1724,18 @@ pub enum ResolveType {
/// `REPLACE`
Replace,
}
impl ResolveType {
/// Get the OE_XXX bit value
pub fn bit_value(&self) -> usize {
match self {
ResolveType::Rollback => 1,
ResolveType::Abort => 2,
ResolveType::Fail => 3,
ResolveType::Ignore => 4,
ResolveType::Replace => 5,
}
}
}
/// `WITH` clause
// https://sqlite.org/lang_with.html