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

Function command_validate_shard_key

pg_documentdb/src/sharding/sharding.c:428–434  ·  view source on GitHub ↗

* command_validate_shard_key throws an error if the given shard key * BSON is not valid for the current extension. */

Source from the content-addressed store, hash-verified

426 * BSON is not valid for the current extension.
427 */
428Datum
429command_validate_shard_key(PG_FUNCTION_ARGS)
430{
431 pgbson *shardKeyDoc = PG_GETARG_PGBSON(0);
432 ValidateShardKey(shardKeyDoc);
433 PG_RETURN_VOID();
434}
435
436
437static void

Callers

nothing calls this directly

Calls 1

ValidateShardKeyFunction · 0.85

Tested by

no test coverage detected