LLMs to turn Ad Hoc Questions into Real-Time AnswersRegister

Skip to main content

MD_UPDATE_DIVE_METADATA

Public Preview

Dives are currently in public preview and functionality is subject to change.

Updates the title and/or description of an existing Dive. This does not create a new version—only the metadata is changed.

Syntax

SELECT * FROM MD_UPDATE_DIVE_METADATA(
id ='your-dive-uuid'::UUID,
title ='New Title',
description ='New description'
);

Parameters

ParameterTypeRequiredDescription
idUUIDYesThe unique identifier of the Dive to update
titleVARCHARNoNew title for the Dive
descriptionVARCHARNoNew description for the Dive

At least one of title or description should be provided.

Return Columns

ColumnTypeDescription
idUUIDUnique identifier of the Dive
titleVARCHARUpdated Dive title
descriptionVARCHARUpdated Dive description
owner_idUUIDUUID of the Dive owner
current_versionINTEGERCurrent version number (unchanged)
created_atTIMESTAMP WITH TIME ZONEWhen the Dive was created
updated_atTIMESTAMP WITH TIME ZONEWhen the Dive was last updated
owner_nameVARCHARName of the Dive owner

Examples

Update a Dive's title:

SELECT id, title, updated_at
FROM MD_UPDATE_DIVE_METADATA(
id ='a1b2c3d4-e5f6-7890-abcd-ef1234567890'::UUID,
title ='Q1 Revenue Dashboard'
);

Update both title and description:

SELECT *
FROM MD_UPDATE_DIVE_METADATA(
id ='a1b2c3d4-e5f6-7890-abcd-ef1234567890'::UUID,
title ='Q1 Revenue Dashboard',
description ='Revenue breakdown by region for Q1 2025'
);

Errors

Returns an error if the Dive does not exist.