COPY FUNCTION_SOURCE

Syntax

COPY FUNCTION_SOURCE function_source_name TO 'file_path';

Description

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

This command downloads a Function Source to your local machine.

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

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.

Examples

Copy Function Source

demodb.public/demostore# COPY FUNCTION_SOURCE funcsrc TO '/tmp/funcsrc';
wrote /tmp/funcsrc

Last updated