1DBD::Gofer::Transport::UssterreaCmo(n3t)ributed Perl DocDuBmDe:n:tGaotfieorn::Transport::stream(3)
2
3
4

NAME

6       DBD::Gofer::Transport::stream - DBD::Gofer transport for stdio
7       streaming
8

SYNOPSIS

10         DBI->connect('dbi:Gofer:transport=stream;url=ssh:username@host.example.com;dsn=dbi:...',...)
11
12       or, enable by setting the DBI_AUTOPROXY environment variable:
13
14         export DBI_AUTOPROXY='dbi:Gofer:transport=stream;url=ssh:username@host.example.com'
15

DESCRIPTION

17       Without the "url=" parameter it launches a subprocess as
18
19         perl -MDBI::Gofer::Transport::stream -e run_stdio_hex
20
21       and feeds requests into it and reads responses from it. But that's not
22       very useful.
23
24       With a "url=ssh:username@host.example.com" parameter it uses ssh to
25       launch the subprocess on a remote system. That's much more useful!
26
27       It gives you secure remote access to DBI databases on any system you
28       can login to.  Using ssh also gives you optional compression and many
29       other features (see the ssh manual for how to configure that and many
30       other options via ~/.ssh/config file).
31
32       The actual command invoked is something like:
33
34         ssh -xq ssh:username@host.example.com bash -c $setup $run
35
36       where $run is the command shown above, and $command is
37
38         . .bash_profile 2>/dev/null || . .bash_login 2>/dev/null || . .profile 2>/dev/null; exec "$@"
39
40       which is trying (in a limited and fairly unportable way) to setup the
41       environment (PATH, PERL5LIB etc) as it would be if you had logged in to
42       that system.
43
44       The ""perl"" used in the command will default to the value of $^X when
45       not using ssh.  On most systems that's the full path to the perl that's
46       currently executing.
47

PERSISTENCE

49       Currently gofer stream connections persist (remain connected) after all
50       database handles have been disconnected. This makes later connections
51       in the same process very fast.
52
53       Currently up to 5 different gofer stream connections (based on url) can
54       persist.  If more than 5 are in the cache when a new connection is made
55       then the cache is cleared before adding the new connection. Simple but
56       effective.
57

TO DO

59       Document go_perl attribute
60
61       Automatically reconnect (within reason) if there's a transport error.
62
63       Decide on default for persistent connection - on or off? limits? ttl?
64

AUTHOR

66       Tim Bunce, <http://www.tim.bunce.name>
67
69       Copyright (c) 2007, Tim Bunce, Ireland. All rights reserved.
70
71       This module is free software; you can redistribute it and/or modify it
72       under the same terms as Perl itself. See perlartistic.
73

SEE ALSO

75       DBD::Gofer::Transport::Base
76
77       DBD::Gofer
78
79
80
81perl v5.26.3                      2013-06-24  DBD::Gofer::Transport::stream(3)
Impressum