uqa_execution/statement/
thread_scope.rs1use super::thread_context::StatementThreadContext;
10
11pub struct StatementThreadScope {
13 _retained_rows: crate::query::sources::retained_source::RetainedRowThreadScope,
14 _regex_cache: uqa_sql::expr::RegexCacheScope,
15 _temporal_input: uqa_sql::expr::TemporalInputScope,
16 _cancellation: uqa_sql::expr::StatementCancellationScope,
17}
18
19impl StatementThreadScope {
20 pub(super) fn enter(context: &StatementThreadContext) -> Self {
21 Self {
22 _retained_rows: context.retained_rows.enter(),
23 _regex_cache: uqa_sql::expr::RegexCacheScope::enter(context.regex_cache.clone()),
24 _temporal_input: context.temporal_input.enter(),
25 _cancellation: uqa_sql::expr::StatementCancellationScope::enter(
26 context.cancellation.clone(),
27 ),
28 }
29 }
30}