fields1
List fields in a table
Usage
fields host
port
socket
user
passwd
table
fields [-config
configfile]
-id
id
table
Overview
The fields command returns a comma seperated list of the fields in the table specified by the table argument to standard output.
Options
host
|
hostname of the machine running the listener daemon |
|---|---|
port
|
port number the listener daemon is listening on, for local or remote connections |
socket
|
socket the listener daemon is listening on, for local connections |
user
|
SQL Relay user name (as per config file) |
passwd
|
SQL Relay password (as per config file) |
-
-config configfile -
config file to use (default /etc/sqlrelay/sqlrelay.conf)
-
-id id -
instance to use (as per config file)
- table
-
table to be described
Examples
- fields "" "" /tmp/examplesocket fred secret tbl
-
Connect to the SQL Relay listener daemon running on the local machine, with socket
/tmp/examplesocket, as userfred, with passwordsecret, and return the fields in tabletbl.
- fields dbsvr 9000 "" fred secret tbl
-
Connect to the SQL Relay listener daemon running on the remote machine
dbsvr, on port9000, as userfred, with passwordsecret, and return the fields in tabletbl.
- fields -id example tbl
-
Connect to the SQL Relay listener daemon for instance
example(as defined in /etc/sqlrelay/sqlrelay.config), and return the fields in tabletbl.
Releases
Unchanged in 3 releases since Debian 3.1 (Sarge).