Skip to content

Commit 5086a28

Browse files
committed
chore: drop process list structures
1 parent 3725265 commit 5086a28

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

rust/cubesql/cubesql/src/sql/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ pub use auth_service::{
1818
pub use database_variables::postgres::session_vars::CUBESQL_PENALIZE_POST_PROCESSING_VAR;
1919
pub use postgres::*;
2020
pub use server_manager::ServerManager;
21-
pub use session::{Session, SessionProcessList, SessionProperties, SessionState};
21+
pub use session::{Session, SessionProperties, SessionState};
2222
pub use session_manager::SessionManager;
2323
pub use types::{ColumnFlags, ColumnType};

rust/cubesql/cubesql/src/sql/session.rs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -418,26 +418,6 @@ pub struct Session {
418418
pub state: Arc<SessionState>,
419419
}
420420

421-
/// Specific representation of session for MySQL
422-
#[derive(Debug)]
423-
pub struct SessionProcessList {
424-
pub id: u32,
425-
pub user: Option<String>,
426-
pub host: String,
427-
pub database: Option<String>,
428-
}
429-
430-
impl From<&Session> for SessionProcessList {
431-
fn from(session: &Session) -> Self {
432-
Self {
433-
id: session.state.connection_id,
434-
host: session.state.client_ip.clone(),
435-
user: session.state.user(),
436-
database: session.state.database(),
437-
}
438-
}
439-
}
440-
441421
/// Specific representation of session for PostgreSQL
442422
#[derive(Debug)]
443423
pub struct SessionStatActivity {

0 commit comments

Comments
 (0)