1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-25 22:12:29 +02:00
Files
OpenIntegrations/docs/en/cli/postgres/AddRecords/bash.txt

8 lines
1.2 KiB
Plaintext
Raw Normal View History

2025-10-07 15:34:22 +00:00
# JSON data can also be passed as a path to a .json file
2025-02-18 14:01:44 +03:00
oint postgres AddRecords \
2025-10-07 15:34:22 +00:00
--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/g0d4og4q.2fl'},'ts_field':{'TIMESTAMP':'10/07/2025 14:11:28'},'tswtz_field':{'TIMESTAMP_WITH_TIME_ZONE':'10/07/2025 09:11:28'},'ip_field':{'INET':'127.0.0.1'},'json_field':{'JSON':{'key':'***','value':'10'}},'jsonb_field':{'JSONB':{'key':'***','value':'10'}},'date_field':{'DATE':'10/07/2025 14:11:28'},'time_field':{'TIME':'10/07/2025 14:11:28'},'uuid_field':{'UUID':'4aa5c8a9-e6e0-4784-ae3c-6633653c1e13'}}]" \
--trn true \
2025-09-15 16:30:36 +03:00
--dbc "postgresql://bayselonarrend:***@127.0.0.1:5432/" \
2025-10-07 15:34:22 +00:00
--tls "{'use_tls':true,'accept_invalid_certs':true}"