New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance SCRIPT to support operations on STDOUT #3405
Comments
Actually there are special files |
I agree that on servers this functionality has no sense. However, on embedded environments where memory and disk space are scarce resources it would be nice to combine
So, is it feasible to implement this special flag? Then, is it safe to import a database from a pipe using |
There are already command line tools for doing RUNSCRIPT and SCRIPT
but they might need enhancement to work with pipes |
As now, the
SCRIPT
command is able to produce an output on file or in form of aResultSet
if noTO
clause is specified.Since the database can be large and disk space or heap memory can be limited, it would be useful to have the
SCRIPT
command output tostdout
andRUNSCRIPT
read fromstdin
so to avoid intermediate temporary files.To achieve the result we tried using UNIX named pipes without success: the pipe is always replaced by a regular file. Note that the
RunScript
tool seems to be able to read from a named pipe.The text was updated successfully, but these errors were encountered: