Function
insert_breakpoints
(
db: &Database,
breakpoints: impl Iterator<Item = breakpoint::ActiveModel>,
)
Source from the content-addressed store, hash-verified
| 122 | } |
| 123 | |
| 124 | pub async fn insert_breakpoints( |
| 125 | db: &Database, |
| 126 | breakpoints: impl Iterator<Item = breakpoint::ActiveModel>, |
| 127 | ) -> Result<(), DbErr> { |
| 128 | let res = Breakpoint::insert_many(breakpoints) |
| 129 | .on_empty_do_nothing() |
| 130 | .exec(db.db()) |
| 131 | .await?; |
| 132 | log::debug!("Breakpoint::insert_many: {:?}", res); |
| 133 | Ok(()) |
| 134 | } |
| 135 | |
| 136 | pub async fn insert_events( |
| 137 | db: &Database, |
Tested by
no test coverage detected