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

Function header_false

nodedb-sql/src/ddl_ast/parse/copy_from.rs:383–391  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

381
382 #[test]
383 fn header_false() {
384 let stmt = ok("COPY users FROM '/tmp/data.csv' WITH (FORMAT csv, HEADER false)");
385 match stmt {
386 NodedbStatement::Misc(MiscStmt::CopyFromFile { header, .. }) => {
387 assert!(!header);
388 }
389 other => panic!("unexpected: {other:?}"),
390 }
391 }
392
393 #[test]
394 fn unknown_extension_is_err() {

Callers

nothing calls this directly

Calls 1

okFunction · 0.70

Tested by

no test coverage detected