(
&'a self,
v: &'a CreateViewStatement<T>,
)
| 698 | } |
| 699 | |
| 700 | pub(crate) fn doc_create_view<'a, T: AstInfo>( |
| 701 | &'a self, |
| 702 | v: &'a CreateViewStatement<T>, |
| 703 | ) -> RcDoc<'a> { |
| 704 | let mut docs = vec![]; |
| 705 | docs.push(RcDoc::text(format!( |
| 706 | "CREATE{}{} VIEW{}", |
| 707 | if v.if_exists == IfExistsBehavior::Replace { |
| 708 | " OR REPLACE" |
| 709 | } else { |
| 710 | "" |
| 711 | }, |
| 712 | if v.temporary { " TEMPORARY" } else { "" }, |
| 713 | if v.if_exists == IfExistsBehavior::Skip { |
| 714 | " IF NOT EXISTS" |
| 715 | } else { |
| 716 | "" |
| 717 | }, |
| 718 | ))); |
| 719 | docs.push(self.doc_view_definition(&v.definition)); |
| 720 | intersperse_line_nest(docs) |
| 721 | } |
| 722 | |
| 723 | pub(crate) fn doc_create_materialized_view<'a, T: AstInfo>( |
| 724 | &'a self, |
no test coverage detected