risingwave_meta::backup_restore::restore_impl::v2

Function insert_models

source
async fn insert_models<S, A>(
    models: impl IntoIterator<Item = S>,
    db: &impl ConnectionTrait,
) -> BackupResult<()>
where S: ModelTrait + Sync + Send + Sized + IntoActiveModel<A>, A: ActiveModelTrait + ActiveModelBehavior + Send + Sync + From<S>, <<A as ActiveModelTrait>::Entity as EntityTrait>::Model: IntoActiveModel<A>,