Skip to content

Commit ac4e397

Browse files
committed
#4729 - Add missing snap.
1 parent b2c8e99 commit ac4e397

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

diesel_derives/src/tests/snapshots/diesel_derives__tests__multiconnection_1.snap

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2021,6 +2021,33 @@ mod multi_connection_impl {
20212021
}
20222022
}
20232023
}
2024+
fn save_search_path(&mut self) -> diesel::QueryResult<Option<String>> {
2025+
match self {
2026+
Self::Pg(conn) => {
2027+
use diesel::migration::MigrationConnection;
2028+
conn.save_search_path()
2029+
}
2030+
Self::Sqlite(conn) => {
2031+
use diesel::migration::MigrationConnection;
2032+
conn.save_search_path()
2033+
}
2034+
}
2035+
}
2036+
fn restore_search_path(
2037+
&mut self,
2038+
search_path: &str,
2039+
) -> diesel::QueryResult<()> {
2040+
match self {
2041+
Self::Pg(conn) => {
2042+
use diesel::migration::MigrationConnection;
2043+
conn.restore_search_path(search_path)
2044+
}
2045+
Self::Sqlite(conn) => {
2046+
use diesel::migration::MigrationConnection;
2047+
conn.restore_search_path(search_path)
2048+
}
2049+
}
2050+
}
20242051
}
20252052
impl diesel::r2d2::R2D2Connection for MultiConnection {
20262053
fn ping(&mut self) -> diesel::QueryResult<()> {

0 commit comments

Comments
 (0)