MCPcopy Create free account
hub / github.com/documentdb/documentdb / WriteBoolExpr

Function WriteBoolExpr

pg_documentdb/src/explain/documentdb_explain.c:513–526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

511
512
513static void
514WriteBoolExpr(pgbson_array_writer *writer, BoolExpr *boolExpr)
515{
516 ListCell *argCell;
517 foreach(argCell, boolExpr->args)
518 {
519 Expr *innerArg = (Expr *) lfirst(argCell);
520
521 pgbson_writer branchWriter;
522 PgbsonArrayWriterStartDocument(writer, &branchWriter);
523 WriteQuals(&branchWriter, list_make1(innerArg));
524 PgbsonArrayWriterEndDocument(writer, &branchWriter);
525 }
526}
527
528
529static void

Callers 1

WriteQualsFunction · 0.85

Calls 4

WriteQualsFunction · 0.85
foreachFunction · 0.50

Tested by

no test coverage detected