GtkSQL - SQL database interface
gtksql [-h] [-s "script" ] [-f scriptfile]
GtkSQL is an interactive SQL interface to various databases. Currently, MySQL and PostgreSQL are supported.
A script interface is provided using the LUA script language. The program configuration and workspace files are saved as LUA scripts.
NOTE: It is possible to compile GtkSQL without LUA support. If you do this, saved workspaces and scripts will not be supported.
/usr/bin/gtksql
Connect to the "billing" database on the MySQL server myserver.com.
gtksql -s 'connect("mysql://myserver.com/billing")'
Connect to the same server as the user fred, with password password:
gtksql -s 'connect("mysql://fred:password@myserver.com/billing")'
And the same with a PostgreSQL server:
gtksql -s 'connect("postgresql://fred:password@myserver.com/billing")'
Scripts are straight text files. It uses the LUA engine, which is documented at . All of the standard LUA functions are available. In addition to these, GtkSQL adds the following functions:
Darryl Luff <djluff@users.sourceforge.net>
None.