MCPcopy Create free account
hub / github.com/4xmen/rustavel / fetch_strings

Method fetch_strings

core/src/sql/database_client.rs:60–73  ·  view source on GitHub ↗
(&self, sql: &str)

Source from the content-addressed store, hash-verified

58 }
59
60 query.execute(&self.pool).await?;
61 Ok(())
62 }
63
64
65 async fn execute(&self, sql: &str) -> Result<(), DbError> {
66 for single_sql in sql.split(";") {
67 if !single_sql.trim().is_empty() {
68 sqlx::query(single_sql).execute(&self.pool).await?;
69 }
70 }
71 Ok(())
72 }
73
74 async fn fetch_strings(&self, sql: &str) -> Result<Vec<String>, DbError> {
75 let rows = sqlx::query(sql).fetch_all(&self.pool).await?;
76

Callers 13

get_tablesMethod · 0.80
try_get_tablesMethod · 0.80
get_column_listingMethod · 0.80
get_viewsMethod · 0.80
try_get_viewsMethod · 0.80
get_foreign_keysMethod · 0.80
try_get_foreign_keysMethod · 0.80
has_columnMethod · 0.80
has_tableMethod · 0.80
has_viewMethod · 0.80
has_indexMethod · 0.80

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected