File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
diesel_derives/src/tests/snapshots Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff 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<()> {
You can’t perform that action at this time.
0 commit comments