Supported Databases
Wiretalk supports all Wirekite source and target databases:Command Line Usage
Required Flags
Note: Either
-c or -dsn must be provided.
Optional Flags
Interactive Mode
When run interactively (connected to a terminal), Wiretalk provides a prompt-based interface with command history.Example Session
Escape Commands
Wiretalk provides several escape commands for controlling output and behavior:CSV Format Configuration
The\c command configures CSV output format with four parameters:
QUOTE- single quote (')DOUBLEQUOTE- double quote (")COMMA- comma (,)SPACE- space characterTAB- tab characterPIPE- pipe (|)NONE- no characterNEWLINE- newline (\n)CRLF- carriage return + newline (\r\n)- Any other literal character
Non-Interactive Mode
Wiretalk can execute SQL from files or stdin in non-interactive mode:JSON Output Mode
For programmatic integration, use-json to get structured output:
index- statement number (1-based)sql- the executed SQLstatus-OKorFAILEDerror- error message (only if status isFAILED)lineNum- line number in input
Database-Specific Features
Oracle PL/SQL Blocks
Oracle PL/SQL blocks (starting withBEGIN or DECLARE) are terminated by a / on its own line:
Google Cloud Spanner Batch DDL
Spanner requires DDL statements to be batched together. Wiretalk supports this with special commands:Notes
- Command history is saved to
~/.linerhistory - Multi-line SQL statements are supported - statements are executed when a semicolon is encountered
- For PostgreSQL,
sslmode=disableis automatically added if not specified - SQL Server PRINT output from stored procedures is captured and displayed
