(
&self,
table_name: &str,
body_sql: &str,
post_sql: &str,
action: &TableAction,
)
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected