(trimmed: &str, after_copy: &str)
| 52 | } |
| 53 | |
| 54 | fn parse_copy_to(trimmed: &str, after_copy: &str) -> Result<NodedbStatement, SqlError> { |
| 55 | // Determine if this is the query form or the table form. |
| 56 | if after_copy.starts_with('(') { |
| 57 | parse_query_form(trimmed) |
| 58 | } else { |
| 59 | parse_table_form(trimmed) |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | /// `COPY <collection> TO '<path>' [WITH (...)]` |
| 64 | fn parse_table_form(trimmed: &str) -> Result<NodedbStatement, SqlError> { |
no test coverage detected