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

Function csv_with_delimiter

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

Source from the content-addressed store, hash-verified

367
368 #[test]
369 fn csv_with_delimiter() {
370 let stmt = ok("COPY users FROM '/tmp/data.csv' WITH (FORMAT csv, DELIMITER ';')");
371 match stmt {
372 NodedbStatement::Misc(MiscStmt::CopyFromFile {
373 format, delimiter, ..
374 }) => {
375 assert_eq!(format, Some(CopyFormat::Csv));
376 assert_eq!(delimiter, Some(';'));
377 }
378 other => panic!("unexpected: {other:?}"),
379 }
380 }
381
382 #[test]
383 fn header_false() {

Callers

nothing calls this directly

Calls 1

okFunction · 0.70

Tested by

no test coverage detected