MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/cloud-spanner-emulator / MustReferenceParentKeyColumn

Function MustReferenceParentKeyColumn

common/errors.cc:1650–1658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1648}
1649
1650absl::Status MustReferenceParentKeyColumn(absl::string_view child_object_type,
1651 absl::string_view child_object_name,
1652 absl::string_view parent_key_column) {
1653 return absl::Status(
1654 absl::StatusCode::kFailedPrecondition,
1655 absl::Substitute("$0 $1 does not reference $3parent key column $2.",
1656 child_object_type, child_object_name, parent_key_column,
1657 child_object_type == "Index" ? "index " : ""));
1658}
1659
1660absl::Status IncorrectParentKeyType(absl::string_view child_object_type,
1661 absl::string_view child_object_name,

Callers 3

ValidateMethod · 0.85
TEST_PFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected