mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-07 10:14:21 +01:00
Implement create virtual table and VUpdate opcode
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user