Skip to content

Commit 0be7f70

Browse files
committed
refactor(odbc): rename inner module and reorganize ODBC connection implementation
This commit deletes the `inner.rs` file and moves its contents to a new `odbc_bridge.rs` module, improving code organization. The `OdbcConnection` struct is updated to remove the `log_settings` field, streamlining its definition.
1 parent ea15e32 commit 0be7f70

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

sqlx-core/src/odbc/connection/mod.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
use crate::connection::{Connection, LogSettings};
1+
use crate::connection::Connection;
22
use crate::error::Error;
33
use crate::odbc::blocking::run_blocking;
44
use crate::odbc::{Odbc, OdbcArguments, OdbcColumn, OdbcConnectOptions, OdbcQueryResult, OdbcRow};
55
use crate::transaction::Transaction;
66
use either::Either;
7-
mod inner;
7+
mod odbc_bridge;
88
use futures_core::future::BoxFuture;
99
use futures_util::future;
10-
use inner::{do_prepare, establish_connection, execute_sql, OdbcConn};
10+
use odbc_bridge::{do_prepare, establish_connection, execute_sql, OdbcConn};
1111
// no direct spawn_blocking here; use run_blocking helper
1212
use std::sync::{Arc, Mutex};
1313

@@ -20,7 +20,6 @@ mod executor;
2020
#[derive(Debug)]
2121
pub struct OdbcConnection {
2222
pub(crate) inner: Arc<Mutex<OdbcConn>>,
23-
pub(crate) log_settings: LogSettings,
2423
}
2524

2625
impl OdbcConnection {
@@ -62,7 +61,6 @@ impl OdbcConnection {
6261

6362
Ok(Self {
6463
inner: Arc::new(Mutex::new(conn)),
65-
log_settings: LogSettings::default(),
6664
})
6765
}
6866

0 commit comments

Comments
 (0)