MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / parse_copy_to

Function parse_copy_to

nodedb-sql/src/ddl_ast/parse/copy_to.rs:54–61  ·  view source on GitHub ↗
(trimmed: &str, after_copy: &str)

Source from the content-addressed store, hash-verified

52}
53
54fn 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 (...)]`
64fn parse_table_form(trimmed: &str) -> Result<NodedbStatement, SqlError> {

Callers 1

try_parseFunction · 0.85

Calls 2

parse_query_formFunction · 0.85
parse_table_formFunction · 0.85

Tested by

no test coverage detected