(buf: &mut F, s: &str)
| 606 | } |
| 607 | |
| 608 | pub fn format_string<F>(buf: &mut F, s: &str) -> Nestable |
| 609 | where |
| 610 | F: FormatBuffer, |
| 611 | { |
| 612 | buf.write_str(s); |
| 613 | Nestable::MayNeedEscaping |
| 614 | } |
| 615 | |
| 616 | pub fn parse_pg_legacy_name(s: &str) -> String { |
| 617 | // To match PostgreSQL, we truncate the string to 64 bytes, while being |