MCPcopy Create free account
hub / github.com/PRQL/prql / format_single_stmt

Function format_single_stmt

prqlc/prqlc/src/codegen/ast.rs:523–532  ·  view source on GitHub ↗
(query: &str)

Source from the content-addressed store, hash-verified

521 }
522
523 fn format_single_stmt(query: &str) -> String {
524 use itertools::Itertools;
525 let stmt = crate::prql_to_pl(query)
526 .unwrap()
527 .stmts
528 .into_iter()
529 .exactly_one()
530 .unwrap();
531 stmt.write(WriteOpt::default()).unwrap()
532 }
533
534 #[test]
535 fn test_pipeline() {

Callers 1

assert_is_formattedFunction · 0.85

Calls 3

into_iterMethod · 0.80
prql_to_plFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected