SAGA-GIS Tool Library Documentation (v7.8.2)

Tool Import Table from SQL Query (GUI)

Import a SQL table from a PostgreSQL database.

Parameters

 NameTypeIdentifierDescriptionConstraints
OutputQuery ResultTable, outputTABLE--
OptionsHostText, CMDPG_HOSTPassword-
PortInteger, CMDPG_PORT-Minimum: 0
Default: 5432
DatabaseText, CMDPG_NAMEDatabase Name-
UserText, CMDPG_USERUser Name-
PasswordText, CMDPG_PWDPassword-
Available ConnectionsChoice, GUICONNECTION-Available Choices:
Default: 0
TablesParametersTABLES-0 Parameters:
FieldsParametersFIELDS-0 Parameters:
WhereTextWHERE--
Group byParametersGROUP-0 Parameters:
HavingTextHAVING--
Order byTextORDER--
DistinctBooleanDISTINCT-Default: 0

Command-line

Usage: saga_cmd db_pgsql 16 [-PG_HOST <str>] [-PG_PORT <num>] [-PG_NAME <str>] [-PG_USER <str>] [-PG_PWD <str>] [-TABLE <str>] [-WHERE <str>] [-HAVING <str>] [-ORDER <str>] [-DISTINCT <str>]
  -PG_HOST:<str> 	Host
	Text, CMD
  -PG_PORT:<num> 	Port
	Integer, 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
  -WHERE:<str>   	Where
	Text
  -HAVING:<str>  	Having
	Text
  -ORDER:<str>   	Order by
	Text
  -DISTINCT:<str>	Distinct
	Boolean
	Default: 0