MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / exec_stmt

Method exec_stmt

sea-orm-migration/src/manager.rs:27–33  ·  view source on GitHub ↗
(&self, stmt: S)

Source from the content-addressed store, hash-verified

25 }
26
27 pub async fn exec_stmt<S>(&self, stmt: S) -> Result<(), DbErr>
28 where
29 S: StatementBuilder,
30 {
31 let builder = self.conn.get_database_backend();
32 self.conn.execute(builder.build(&stmt)).await.map(|_| ())
33 }
34
35 pub fn get_database_backend(&self) -> DbBackend {
36 self.conn.get_database_backend()

Callers 14

create_tableMethod · 0.80
create_indexMethod · 0.80
create_foreign_keyMethod · 0.80
create_typeMethod · 0.80
alter_tableMethod · 0.80
drop_tableMethod · 0.80
rename_tableMethod · 0.80
truncate_tableMethod · 0.80
drop_indexMethod · 0.80
drop_foreign_keyMethod · 0.80
alter_typeMethod · 0.80
drop_typeMethod · 0.80

Calls 3

get_database_backendMethod · 0.45
executeMethod · 0.45
buildMethod · 0.45

Tested by 2

upMethod · 0.64
downMethod · 0.64