immutable-properties #1

Merged
awgneo merged 6 commits from immutable-properties into main 2026-07-21 20:28:45 +00:00
8 changed files with 400 additions and 53 deletions
Showing only changes of commit ff4b9cd24d - Show all commits

View File

@ -85,10 +85,6 @@ impl DatabaseExecutor for MockExecutor {
Ok("2026-03-10T00:00:00Z".to_string()) Ok("2026-03-10T00:00:00Z".to_string())
} }
fn is_mock(&self) -> bool {
true
}
#[cfg(test)] #[cfg(test)]
fn get_queries(&self) -> Vec<String> { fn get_queries(&self) -> Vec<String> {
MOCK_STATE.with(|state| state.borrow().captured_queries.clone()) MOCK_STATE.with(|state| state.borrow().captured_queries.clone())

View File

@ -20,11 +20,6 @@ pub trait DatabaseExecutor: Send + Sync {
/// Returns the current transaction timestamp /// Returns the current transaction timestamp
fn timestamp(&self) -> Result<String, String>; fn timestamp(&self) -> Result<String, String>;
/// Returns whether this is a mock executor (bypassing pg_catalog index checks)
fn is_mock(&self) -> bool {
false
}
#[cfg(test)] #[cfg(test)]
fn get_queries(&self) -> Vec<String>; fn get_queries(&self) -> Vec<String>;