SAGA 9.4.2 | Tool Library Documentation

Export Table


Description

Exports a table to a PostgreSQL database.


Parameters

 NameTypeIdentifierDescriptionConstraints
InputTabletable, inputTABLE--
OptionsHosttext, CMDPG_HOST-Default: 127.0.0.1
Portinteger number, CMDPG_PORT-Minimum: 0 Default: 5432
Databasetext, CMDPG_DB--
Usertext, CMDPG_USER--
Passwordtext, CMDPG_PWD--
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 ] [-PG_PORT ] [-PG_DB ] [-PG_USER ] [-PG_PWD ] [-TABLE ] [-TABLE_PK ] [-TABLE_NN ] [-TABLE_UQ ] [-NAME ] [-EXISTS ]
  -PG_HOST: 	Host
	text, CMD
	Default: 127.0.0.1
  -PG_PORT: 	Port
	integer number, CMD
	Minimum: 0
	Default: 5432
  -PG_DB:   	Database
	text, CMD
  -PG_USER: 	User
	text, CMD
  -PG_PWD:  	Password
	text, CMD
  -TABLE:   	Table
	table, input
  -TABLE_PK:	Primary Key
	table fields
  -TABLE_NN:	Not Null
	table fields
  -TABLE_UQ:	Unique
	table fields
  -NAME:    	Table Name
	text
  -EXISTS:  	If table exists...
	choice
	Available Choices:
	[0] abort export
	[1] replace existing table
	[2] append records, if table structure allows
	Default: 0