pub trait TableChecker:
Sync
+ Send
+ 'static {
// Required method
fn check(&self, table_name: &str) -> Result<(), Status>;
// Provided method
fn to_checked(&self, table_name: String) -> Result<String, Status> { ... }
}
Expand description
Checks the table name to prevent unexpected sql(e.g, SQL injection).