1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-12-07 23:03:08 +02:00
Files
OpenIntegrations/docs/en/cli/mssql/AddRecords/bash.txt

8 lines
1.1 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-07-15 16:25:47 +03:00
oint mssql AddRecords \
2025-10-07 15:34:22 +00:00
--table "testtable" \
--rows "[{'tinyint_field':{'TINYINT':5},'smallint_field':{'SMALLINT':2000},'int_field':{'INT':200000},'bigint_field':{'BIGINT':20000000000},'float24_field':{'FLOAT24':10.1234567},'float53_field':{'FLOAT53':10.123456789123456},'bit_field':{'BIT':true},'nvarchar_field':{'NVARCHAR':'Some text'},'varbinary_field':{'BYTES':'/tmp/rzm0phkk.xab'},'uid_field':{'UUID':'5836fa39-0100-4781-b3cf-5e953c1db4cd'},'numeric_field':{'NUMERIC':5.333},'xml_field':{'XML':'<?xml version=\"'"1.0\"'"?><root> <element> <name>Example</name> <value>123</value> </element> <element> <name>Test</name> <value>456</value> </element> </root>'},'date_field':{'DATE':'2025-10-07T14:20:22.7036445Z'},'time_field':{'TIME':'2025-10-07T14:20:22.7036445Z'},'dto_field':{'DATETIMEOFFSET':'2025-10-07T14:20:22.7036445+05:00'},'datetime_field':{'DATETIME':'2025-10-07T14:20:22.7036445Z'}}]" \
--trn true \
2025-07-15 16:25:47 +03:00
--dbc "Server=127.0.0.1;Database=***;User Id=SA;Password=***;" \
2025-10-07 15:34:22 +00:00
--tls "{'use_tls':true,'accept_invalid_certs':true}"