pgScript — Parses and interprets pgScript scripts (enhanced PostgreSQL scripts).
pgScript -h host [-p port] -d database -U username [-W password] [-e encoding] inputfile
pgScript parses, interprets pgScript scripts (.pgs files) and outputs the result in the console in UTF-8 format.
pgScript scripts are enhanced PostgreSQL scripts with control-of-flow structures (loops and conditions), local variables and random data generators. The scripting language is described in the documentation accompanying the program. Please refer to it.
hostDatabase server host to connect to, e.g
127.0.0.1
portDatabase server port number (default:
5432)
databaseDatabase to connect to
usernameUsername to use for connecting to the database server
passwordPassword to use for connecting to the database server
(default: nothing)
encodingEncoding of file,e.g utf-8,
iso-8859-1 (default: system
encoding)
pgScript input
filePath to the file to parse with pgScript (.pgs file)