(
&'a self,
v: &'a CreateClusterReplicaStatement<T>,
)
| 463 | } |
| 464 | |
| 465 | pub(crate) fn doc_create_cluster_replica<'a, T: AstInfo>( |
| 466 | &'a self, |
| 467 | v: &'a CreateClusterReplicaStatement<T>, |
| 468 | ) -> RcDoc<'a> { |
| 469 | let mut docs = Vec::new(); |
| 470 | |
| 471 | // CREATE CLUSTER REPLICA cluster.replica |
| 472 | let replica_name = RcDoc::concat([ |
| 473 | self.doc_display_pass(&v.of_cluster), |
| 474 | RcDoc::text("."), |
| 475 | self.doc_display_pass(&v.definition.name), |
| 476 | ]); |
| 477 | docs.push(nest_title("CREATE CLUSTER REPLICA", replica_name)); |
| 478 | |
| 479 | // OPTIONS (...) |
| 480 | docs.push(bracket( |
| 481 | "(", |
| 482 | comma_separate(|o| self.doc_display_pass(o), &v.definition.options), |
| 483 | ")", |
| 484 | )); |
| 485 | |
| 486 | RcDoc::intersperse(docs, Doc::line()).group() |
| 487 | } |
| 488 | |
| 489 | pub(crate) fn doc_create_network_policy<'a, T: AstInfo>( |
| 490 | &'a self, |
no test coverage detected