1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-02 20:52:28 +02:00
Files
OpenIntegrations/docs/en/cli/postgres/AddRecords/bash.txt
T
Vitaly the Alpaca (bot) a6e7d25b70 Test data update (Jenkins)
2026-03-25 07:08:28 +00:00

8 lines
1.2 KiB
Plaintext
Vendored

# JSON data can also be passed as a path to a .json file
oint postgres AddRecords \
--table "testtable" \
--rows "[{'bool_field':{'BOOL':true},'oldchar_field':{'OLDCHAR':'1'},'smallint_field':{'SMALLINT':'5'},'smallserial_field':{'SMALLSERIAL':'6'},'int_field':{'INT':'100'},'serial_field':{'SERIAL':'100'},'oid_field':{'OID':'24576'},'bigint_field':{'BIGINT':'9999999'},'bigserial_field':{'BIGSERIAL':'9999999'},'real_field':{'REAL':'15.2'},'dp_field':{'DOUBLE_PRECISION':'1.0002'},'text_field':{'TEXT':'Some text'},'varchar_field':{'VARCHAR':'Some varchar'},'charn_field':{'CHAR':'AAA'},'char_field':{'CHAR':'A'},'name_field':{'NAME':'Vitaly'},'bytea_field':{'BYTEA':'/tmp/ungob1a1.0h1'},'ts_field':{'TIMESTAMP':'03/25/2026 06:15:49'},'tswtz_field':{'TIMESTAMP_WITH_TIME_ZONE':'03/25/2026 01:15:49'},'ip_field':{'INET':'127.0.0.1'},'json_field':{'JSON':{'key':'***','value':'10'}},'jsonb_field':{'JSONB':{'key':'***','value':'10'}},'date_field':{'DATE':'03/25/2026 06:15:49'},'time_field':{'TIME':'03/25/2026 06:15:49'},'uuid_field':{'UUID':'1e99d0da-3e85-4bbb-90cd-103ee287e635'},'numeric_field':{'NUMERIC':'15.2'}}]" \
--trn true \
--dbc "postgresql://bayselonarrend:***@127.0.0.1:5432/" \
--tls "{'use_tls':true,'accept_invalid_certs':true}"