1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use super::{
    shell::ShellConfig, with_connection::WithConnection,
    with_connection_and_migrations_vec::WithConnectionAndMigrationsVec,
};
use crate::migration::Migration;
#[derive(Clone)]
pub struct WithShellConfig {
    pub with_shell_config: ShellConfig,
    pub with_connection: WithConnection,
}
impl WithShellConfig {
    pub fn with_migrations_vec(
        self,
        migrations: Vec<Box<dyn Migration>>,
    ) -> WithConnectionAndMigrationsVec {
        WithConnectionAndMigrationsVec {
            migrations,
            
            with_shell_config: Some(self.clone()),
            with_connection: self.with_connection,
        }
    }
}