#[cfg(test)]
mod test {
use serde::Deserialize;
use serde::Serialize;
use pgbatis;
use pgbatis::pgmacro::PGCRUD;
use pgbatis::Parameters;
use pgbatis::ColumnExt;
use pgbatis::tokio_postgres::types::ToSql;
use pgbatis::tokio_postgres::Row;
#[derive(Serialize, Deserialize, Clone, Debug,Default,PGCRUD)]
pub struct BizActivity {
pub id: Option<String>,
pub name: Option<String>,
pub pc_link: Option<String>,
}
#[test]
fn test_get_table_name() {
let mut test = BizActivity::default();
test.id = Some(String::from("1234567890"));
test.name = Some(String::from("name_o"));
let table_name = BizActivity::get_table_name(None,None);
println!("get_table_name :{}",table_name);
}
}