1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-25 22:12:29 +02:00
Files
OpenIntegrations/docs/en/cli/mysql/AddRecords/bash.txt
Vitaly the Alpaca (bot) 6dd460bdf7 Test data update (Jenkins)
2025-05-21 10:03:40 +03:00

8 lines
1.1 KiB
Plaintext
Vendored

# JSON data can also be passed as a path to a .json file
oint mysql AddRecords \
--table "testtable" \
--rows "[{'char_field':{'TEXT':'AAAAA'},'varchar_field':{'TEXT':'Some varchar'},'tinytext_field':{'TEXT':'Some tiny text'},'text_field':{'TEXT':'Some text'},'mediumtext_field':{'TEXT':'Some medium text'},'longtext_field':{'TEXT':'Some looooooong text'},'tinyint_field':{'INT':127},'smallint_field':{'INT':-32767},'mediumint_field':{'INT':8388607},'int_field':{'INT':-2147483647},'uint_field':{'UINT':4294967295},'bigint_field':{'INT':9223372036854775807},'float_field':{'FLOAT':100.50},'double_field':{'FLOAT':100.512123},'date_field':{'DATE':'2025-05-21T09:10:29.0377877Z'},'time_field':{'TIME':'2025-05-21T09:10:29.0377877Z'},'datetime_field':{'DATE':'2025-05-21T09:10:29.0377877Z'},'timestamp_field':{'DATE':'2025-05-21T09:10:29.0377877Z'},'mediumblob_field':{'BYTES':'https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg'},'set_field':{'TEXT':'one'}}]" \
--trn true \
--dbc "mysql://bayselonarrend:***@127.0.0.1:3306/" \
--tls "{'use_tls':true,'accept_invalid_certs':true}"