SAGA-GIS Tool Library Documentation (v9.2.0)

Tool Import Table from SQL Query

Import a SQL table from a PostgreSQL database.

Parameters

 NameTypeIdentifierDescriptionConstraints
OutputQuery Resulttable, outputTABLE--
OptionsHosttext, CMDPG_HOST-Default: 127.0.0.1
Portinteger number, CMDPG_PORT-Minimum: 0
Default: 5432
Databasetext, CMDPG_NAME--
Usertext, CMDPG_USER--
Passwordtext, CMDPG_PWD--
Connectionschoice, GUICONNECTION-Available Choices:
Default: 0
TablestextTABLES--
FieldstextFIELDS--
WheretextWHERE--
Group bytextGROUP--
HavingtextHAVING--
Order bytextORDER--
DistinctbooleanDISTINCT-Default: 0

Command-line

Usage: saga_cmd db_pgsql 15 [-PG_HOST <str>] [-PG_PORT <num>] [-PG_NAME <str>] [-PG_USER <str>] [-PG_PWD <str>] [-TABLE <str>] [-TABLES <str>] [-FIELDS <str>] [-WHERE <str>] [-GROUP <str>] [-HAVING <str>] [-ORDER <str>] [-DISTINCT <str>]
  -PG_HOST:<str> 	Host
	text, CMD
	Default: 127.0.0.1
  -PG_PORT:<num> 	Port
	integer number, CMD
	Minimum: 0
	Default: 5432
  -PG_NAME:<str> 	Database
	text, CMD
  -PG_USER:<str> 	User
	text, CMD
  -PG_PWD:<str>  	Password
	text, CMD
  -TABLE:<str>   	Query Result
	table, output
  -TABLES:<str>  	Tables
	text
  -FIELDS:<str>  	Fields
	text
  -WHERE:<str>   	Where
	text
  -GROUP:<str>   	Group by
	text
  -HAVING:<str>  	Having
	text
  -ORDER:<str>   	Order by
	text
  -DISTINCT:<str>	Distinct
	boolean
	Default: 0