(&'a self, v: &'a OrderByExpr<T>)
| 933 | } |
| 934 | |
| 935 | fn doc_order_by_expr<'a, T: AstInfo>(&'a self, v: &'a OrderByExpr<T>) -> RcDoc<'a> { |
| 936 | let doc = self.doc_expr(&v.expr); |
| 937 | let doc = match v.asc { |
| 938 | Some(true) => nest(doc, RcDoc::text("ASC")), |
| 939 | Some(false) => nest(doc, RcDoc::text("DESC")), |
| 940 | None => doc, |
| 941 | }; |
| 942 | match v.nulls_last { |
| 943 | Some(true) => nest(doc, RcDoc::text("NULLS LAST")), |
| 944 | Some(false) => nest(doc, RcDoc::text("NULLS FIRST")), |
| 945 | None => doc, |
| 946 | } |
| 947 | } |
| 948 | |
| 949 | fn doc_query<'a, T: AstInfo>(&'a self, v: &'a Query<T>) -> RcDoc<'a> { |
| 950 | let mut docs = vec![]; |
no test coverage detected