create_proc
- create_proc(
proc_name: string,
execution_mode?: string,
files?: Record<string, string>,
command?: string,
args?: string[],
options?: Record<string, string>,
callback?: GPUdbCallback,
): Promise<CreateProcResponse>Parameters
- proc_name: string
Name of the proc to be created. Must not be the name of a currently existing proc.
Optionalexecution_mode: stringThe execution mode of the proc.
Optionalfiles: Record<string, string>A map of the files that make up the proc. The keys of the map are file names, and the values are the binary contents of the files. The file names may include subdirectory names (e.g. ‘subdir/file’) but must not resolve to a directory above the root for the proc.
Files may be loaded from existing files in KiFS. Those file names should be prefixed with the uri kifs:// and the values in the map should be empty
Optionalcommand: stringThe command (excluding arguments) that will be invoked when the proc is executed. It will be invoked from the directory containing the proc
filesand may be any command that can be resolved from that directory. It need not refer to a file actually in that directory; for example, it could be ‘java’ if the proc is a Java application; however, any necessary external programs must be preinstalled on every database node. If the command refers to a file in that directory, it must be preceded with ’./’ as per Linux convention. If not specified, and exactly one file is provided infiles, that file will be invoked.Optionalargs: string[]An array of command-line arguments that will be passed to
commandwhen the proc is executed.Optionaloptions: Record<string, string>Optional parameters.
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<CreateProcResponse>
Promise<Types.CreateProcResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:6231
- proc_name: string
create_proc_request
- create_proc_request(
request: CreateProcRequest,
callback?: GPUdbCallback,
): Promise<CreateProcResponse>Creates an instance (proc) of the user-defined functions (UDF) specified by the given command, options, and files, and makes it available for execution.
Parameters
- request: CreateProcRequest
Request object containing the parameters for the operation
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<CreateProcResponse>
Promise<Types.CreateProcResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:6182
- request: CreateProcRequest
Creates an instance (proc) of the user-defined functions (UDF) specified by the given command, options, and files, and makes it available for execution.