Skip to content

Commit 24db97a

Browse files
authored
chore(cubesql): MetaContext - track create_at datetime (#9355)
1 parent 6cacff9 commit 24db97a

File tree

1 file changed

+4
-0
lines changed
  • rust/cubesql/cubesql/src/transport

1 file changed

+4
-0
lines changed

rust/cubesql/cubesql/src/transport/ctx.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ pub struct MetaContext {
1414
pub cube_to_data_source: HashMap<String, String>,
1515
pub data_source_to_sql_generator: HashMap<String, Arc<dyn SqlGenerator + Send + Sync>>,
1616
pub compiler_id: Uuid,
17+
/// DateTime when MetaContext was created, but it can be used as last schema update when
18+
/// CompilerCache is used
19+
pub created_at: chrono::DateTime<chrono::Utc>,
1720
}
1821

1922
#[derive(Debug, Clone)]
@@ -72,6 +75,7 @@ impl MetaContext {
7275
cube_to_data_source,
7376
data_source_to_sql_generator,
7477
compiler_id,
78+
created_at: chrono::Utc::now(),
7579
}
7680
}
7781

0 commit comments

Comments
 (0)