Moved update into action module.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 0s

This commit is contained in:
2026-02-16 09:53:04 -05:00
parent d47124656f
commit f1eb397d3b
8 changed files with 127 additions and 72 deletions

View File

@@ -1,11 +1,11 @@
use crate::{
action::{Action, CalcValue, Calculation, Delete, FieldType, Operand, Query},
action::{Action, CalcValue, Calculation, Delete, FieldType, Operand, Query, Update},
document::{
clock::Clock,
create::IndexType,
definition::{DocDef, DocFuncType},
},
message::wrapper::{Message, Update},
message::wrapper::Message,
name::{Name, NameType},
queue::{
data_director::{Include, Path, RegMsg, Register},
@@ -40,7 +40,7 @@ impl Session {
docdef.set_default(&name_expire, calc.clone()).unwrap();
docdef.add_index(&name_expire, IndexType::Index).unwrap();
let mut update = Update::new(Query::internal());
let mut update = Update::new(Session::doc_names()[0].clone());
update
.get_values_mut()
.add_field(name_expire.clone(), calc.clone());