mirror of
https://github.com/fluencelabs/llamadb
synced 2025-04-30 01:02:18 +00:00
Adjust SExpression output
This commit is contained in:
parent
0314909581
commit
1bf11fd805
@ -89,23 +89,20 @@ where <DB as DatabaseInfo>::Table: 'a
|
|||||||
try!(yield_in_fn.format(f, indent + 1));
|
try!(yield_in_fn.format(f, indent + 1));
|
||||||
try!(writeln!(f, ""));
|
try!(writeln!(f, ""));
|
||||||
write_indent!(indent+1);
|
write_indent!(indent+1);
|
||||||
try!(writeln!(f, "(group-by-values "));
|
try!(write!(f, "(group-by-values"));
|
||||||
for group_by_value in group_by_values {
|
for group_by_value in group_by_values {
|
||||||
try!(group_by_value.format(f, indent + 2));
|
|
||||||
try!(writeln!(f, ""));
|
try!(writeln!(f, ""));
|
||||||
|
try!(group_by_value.format(f, indent + 2));
|
||||||
}
|
}
|
||||||
write_indent!(indent+1);
|
|
||||||
try!(writeln!(f, ")"));
|
try!(writeln!(f, ")"));
|
||||||
try!(yield_out_fn.format(f, indent + 1));
|
try!(yield_out_fn.format(f, indent + 1));
|
||||||
write!(f, ")")
|
write!(f, ")")
|
||||||
},
|
},
|
||||||
&SExpression::Yield { ref fields } => {
|
&SExpression::Yield { ref fields } => {
|
||||||
try!(writeln!(f, "(yield "));
|
try!(write!(f, "(yield"));
|
||||||
for (i, field) in fields.iter().enumerate() {
|
for field in fields {
|
||||||
try!(field.format(f, indent + 1));
|
|
||||||
if i != fields.len() - 1 {
|
|
||||||
try!(writeln!(f, ""));
|
try!(writeln!(f, ""));
|
||||||
}
|
try!(field.format(f, indent + 1));
|
||||||
}
|
}
|
||||||
write!(f, ")")
|
write!(f, ")")
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user