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

Function main

tests/embedding_tests.rs:16–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14
15 #[sea_orm_macros::test]
16 async fn main() -> Result<(), DbErr> {
17 let ctx = TestContext::new("embedding_tests").await;
18 create_tables(&ctx.db).await?;
19 insert_embedding(&ctx.db).await?;
20 update_embedding(&ctx.db).await?;
21 select_embedding(&ctx.db).await?;
22 ctx.delete().await;
23
24 Ok(())
25 }
26
27 pub async fn insert_embedding(db: &DatabaseConnection) -> Result<(), DbErr> {
28 use embedding::*;

Callers

nothing calls this directly

Calls 6

insert_embeddingFunction · 0.85
update_embeddingFunction · 0.85
select_embeddingFunction · 0.85
newFunction · 0.50
create_tablesFunction · 0.50
deleteMethod · 0.45

Tested by

no test coverage detected