MCPcopy Create free account
hub / github.com/SeaQL/FireDBG.for.Rust / insert_breakpoints

Function insert_breakpoints

indexer/src/database.rs:124–134  ·  view source on GitHub ↗
(
    db: &Database,
    breakpoints: impl Iterator<Item = breakpoint::ActiveModel>,
)

Source from the content-addressed store, hash-verified

122}
123
124pub 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
136pub async fn insert_events(
137 db: &Database,

Callers 1

batchMethod · 0.85

Calls 1

dbMethod · 0.80

Tested by

no test coverage detected