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

Method table_sql

core/src/sql/sqlite.rs:356–378  ·  view source on GitHub ↗
(
        &self,
        table_name: &str,
        body_sql: &str,
        post_sql: &str,
        action: &TableAction,
    )

Source from the content-addressed store, hash-verified

354 }
355
356 fn table_sql(
357 &self,
358 table_name: &str,
359 body_sql: &str,
360 post_sql: &str,
361 action: &TableAction,
362 ) -> String {
363 match action {
364 TableAction::Create => {
365 format!(
366 "CREATE TABLE {} ( {} ) \n ;\n {}",
367 table_name, body_sql, post_sql
368 )
369 }
370 TableAction::Alter => {
371 format!(
372 " {} ; \n {}",
373 body_sql, post_sql
374 )
375 }
376 _ => "".to_string(),
377 }
378 }
379
380
381

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected