Skip to main content

collect_deployment_metadata

Function collect_deployment_metadata 

Source
pub async fn collect_deployment_metadata(
    client: &Client,
    directory: &Path,
) -> DeploymentMetadata
Expand description

Collect deployment metadata (user and git commit).

This function retrieves the current database user and git commit hash for recording deployment provenance. If the current user cannot be determined, it defaults to “unknown”.