* IndexSpecAsBson is the C interface for ApiInternalSchema.index_spec_as_bson. */
| 1214 | * IndexSpecAsBson is the C interface for ApiInternalSchema.index_spec_as_bson. |
| 1215 | */ |
| 1216 | pgbson * |
| 1217 | IndexSpecAsBson(const IndexSpec *indexSpec) |
| 1218 | { |
| 1219 | bool isGetIndexes = false; |
| 1220 | const char *namespaceName = NULL; |
| 1221 | return SerializeIndexSpec(indexSpec, isGetIndexes, namespaceName); |
| 1222 | } |
| 1223 | |
| 1224 | |
| 1225 | /* |
no test coverage detected