Export Table
- Author: O.Conrad (c) 2013
- Menu: Database | PostgreSQL | Tables
Description
Exports a table to a PostgreSQL database.
Parameters
| Name | Type | Identifier | Description | Constraints |
Input | Table | table, input | TABLE | - | - |
Options | Host | text | PG_HOST | - | Default: 127.0.0.1 |
Port | integer number | PG_PORT | - | Minimum: 0
Default: 5432 |
Database | text | PG_DB | - | - |
User | text | PG_USER | - | - |
Password | text | PG_PWD | - | - |
Primary Key | table fields | TABLE_PK | - | - |
Not Null | table fields | TABLE_NN | - | - |
Unique | table fields | TABLE_UQ | - | - |
Table Name | text | NAME | - | - |
If table exists... | choice | EXISTS | - | 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
Default: 127.0.0.1
-PG_PORT: Port
integer number
Minimum: 0
Default: 5432
-PG_DB: Database
text
-PG_USER: User
text
-PG_PWD: Password
text
-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