spawnflake 0.2.9

Generate pattern based random data for mysql
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::fmt::Display;

use crate::datastores::generic::common_models::TableFields;
#[derive(Debug, Clone)]
pub struct Mysql {
    pub schema: Vec<TableFields>,
}

impl Display for Mysql {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        for x in &self.schema {
            writeln!(f, "{}", x.table_name)?
        }

        Ok(())
    }
}