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

Function json_array_by_extension

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

Source from the content-addressed store, hash-verified

334
335 #[test]
336 fn json_array_by_extension() {
337 let stmt = ok("COPY users FROM '/tmp/users.json'");
338 match stmt {
339 NodedbStatement::Misc(MiscStmt::CopyFromFile { format, .. }) => {
340 assert_eq!(format, Some(CopyFormat::JsonArray));
341 }
342 other => panic!("unexpected: {other:?}"),
343 }
344 }
345
346 #[test]
347 fn csv_by_extension() {

Callers

nothing calls this directly

Calls 1

okFunction · 0.70

Tested by

no test coverage detected