Skip to main content

schema_sql_generator/common/
view_generator.rs

1use crate::common::generator_context::GeneratorContext;
2
3pub trait ViewGenerator {
4    fn output_views(&self);
5}
6
7pub struct DefaultViewGenerator {
8    context: GeneratorContext,
9}
10
11impl DefaultViewGenerator {
12    pub fn new(context: GeneratorContext) -> Self {
13        Self {
14            context,
15        }
16    }
17
18    pub fn context(&self) -> &GeneratorContext {
19        &self.context
20    }
21}
22
23impl ViewGenerator for DefaultViewGenerator {
24    fn output_views(&self) {
25    }
26}