COPY FUNCTION_SOURCE

Syntax

COPY FUNCTION_SOURCE function_source_name TO 'file_path';

Description

This command downloads a Function Source in the current organization to a specified file path on the user's local machine.

A Function Source can only be downloaded if the current role has USAGE privileges on it.

Arguments

function_source_name

This is the name of the Function Source to copy. For case-sensitive names, the name must be wrapped in double quotes; otherwise, the lowercase name will be used.

file_path

This is the destination file path on the local machine that the Function Source file will be copied to. This is a String value and should be wrapped in single quotes.

Return

A message that the Function Source was successfully copied or an error message.

Examples

Copy Function Source

demodb.public/demostore# COPY FUNCTION_SOURCE funcsrc TO '/tmp/funcsrc';
Downloading function source funcsrc to /tmp/funcsrc

Last updated