Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Tcl_script_eval

Paweł Salawa edited this page Jan 15, 2018 · 1 revision

Definition

Language: Tcl
Plugin for language: ScriptingTcl
How to use: Create custom SQL function. Suggested name: tcl
Function arguments code
Function usage: SELECT tcl('glob -nocomplain *'); -- lists files in current directory
SELECT tcl('expr rand()'); -- generates random number
Description: Executes any Tcl code passed as a string in first argument to the function and returns result from that execution.

Code

eval [lindex $argv 0]

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /