Fix conditional parameter usage and core_functions references
This commit is contained in:
parent
3a260a5703
commit
c2588d80d5
2 changed files with 5 additions and 98 deletions
|
|
@ -1,12 +1,3 @@
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
use crate::shared::models::UserSession;
|
||||
use crate::shared::state::AppState;
|
||||
use log::debug;
|
||||
|
|
@ -19,106 +10,21 @@ use super::errors::register_error_functions;
|
|||
use super::math::register_math_functions;
|
||||
use super::validation::register_validation_functions;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
pub fn register_core_functions(state: Arc<AppState>, user: UserSession, engine: &mut Engine) {
|
||||
debug!("Registering core BASIC functions...");
|
||||
|
||||
|
||||
register_math_functions(state.clone(), user.clone(), engine);
|
||||
register_math_functions(&state, user.clone(), engine);
|
||||
debug!(" * Math functions registered");
|
||||
|
||||
|
||||
register_datetime_functions(state.clone(), user.clone(), engine);
|
||||
register_datetime_functions(&state, user.clone(), engine);
|
||||
debug!(" * Date/Time functions registered");
|
||||
|
||||
|
||||
register_validation_functions(state.clone(), user.clone(), engine);
|
||||
register_validation_functions(&state, user.clone(), engine);
|
||||
debug!(" * Validation functions registered");
|
||||
|
||||
|
||||
register_array_functions(state.clone(), user.clone(), engine);
|
||||
debug!(" * Array functions registered");
|
||||
|
||||
|
||||
register_error_functions(state, user, engine);
|
||||
debug!(" * Error handling functions registered");
|
||||
|
||||
|
|
|
|||
|
|
@ -473,7 +473,7 @@ impl UserDriveVectorDB {
|
|||
Ok(count)
|
||||
}
|
||||
|
||||
pub async fn update_file_metadata(&self, _file_id: &str, _tags: Vec<String>) -> Result<()> {
|
||||
pub async fn update_file_metadata(&self, file_id: &str, tags: Vec<String>) -> Result<()> {
|
||||
#[cfg(not(feature = "vectordb"))]
|
||||
{
|
||||
let file_path = self.db_path.join(format!("{}.json", file_id));
|
||||
|
|
@ -488,6 +488,7 @@ impl UserDriveVectorDB {
|
|||
|
||||
#[cfg(feature = "vectordb")]
|
||||
{
|
||||
let _ = (file_id, tags);
|
||||
log::warn!("Metadata update not yet implemented for Qdrant backend");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue