Add persistent server connections
Registered by
George Ormond Lorch III
Consider using named pipes to open and maintain open connections to servers rather than constantly invoking mysql -e.
Example can be seen here:
https:/
function open_persistent
{
local pipe=$(mktemp -u)
mkfifo -m 600 $pipe
eval "$1=$pipe"
(tail -f $pipe) | ${MYSQL} ${MYSQL_ARGS} &
}
function close_persisten
{
local pipe=$1
echo "exit" > $pipe
rm $pipe
}
Blueprint information
- Status:
- Not started
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- None
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- Discussion
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
Related branches
Related bugs
Sprints
Whiteboard
(?)