SAGA-GIS Tool Library Documentation (v7.3.0)

Tool Export Table

Exports a table to a PostgreSQL database.

Parameters

 NameTypeIdentifierDescriptionConstraints
InputTableTable (input)TABLE--
OptionsHostTextPG_HOSTPassword-
PortIntegerPG_PORT-Minimum: 0
Default: 5432
DatabaseTextPG_NAMEDatabase Name-
UserTextPG_USERUser Name-
PasswordTextPG_PWDPassword-
Available ConnectionsChoiceCONNECTION-Available Choices:
Default: 0
Primary KeyTable fieldsTABLE_PK--
Not NullTable fieldsTABLE_NN--
UniqueTable fieldsTABLE_UQ--
Table NameTextNAME--
If table exists...ChoiceEXISTS-Available Choices:
[0] abort export
[1] replace existing table
[2] append records, if table structure allows
Default: 0

Command-line

Usage: saga_cmd db_pgsql 13 [-PG_HOST <str>] [-PG_PORT <num>] [-PG_NAME <str>] [-PG_USER <str>] [-PG_PWD <str>] [-TABLE <str>] [-TABLE_PK <str>] [-TABLE_NN <str>] [-TABLE_UQ <str>] [-NAME <str>] [-EXISTS <str>]
  -PG_HOST:<str> 	Host
	Text
  -PG_PORT:<num> 	Port
	Integer
	Minimum: 0
	Default: 5432
  -PG_NAME:<str> 	Database
	Text
  -PG_USER:<str> 	User
	Text
  -PG_PWD:<str>  	Password
	Text
  -TABLE:<str>   	Table
	Table (input)
  -TABLE_PK:<str>	Primary Key
	Table fields
  -TABLE_NN:<str>	Not Null
	Table fields
  -TABLE_UQ:<str>	Unique
	Table fields
  -NAME:<str>    	Table Name
	Text
  -EXISTS:<str>  	If table exists...
	Choice
	Available Choices:
	[0] abort export
	[1] replace existing table
	[2] append records, if table structure allows
	Default: 0