1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-29 22:27:42 +02:00
Files
OpenIntegrations/docs/en/cli/mysql/AddRecords/bash.txt
Vitaly the Alpaca (bot) 1d3aa9fa53 Test data update (Jenkins)
2025-10-08 21:18:51 +03:00

8 lines
1.0 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.5'},'double_field':{'FLOAT':'100.512123'},'date_field':{'DATE':'10/8/2025 7:58:55 PM'},'time_field':{'TIME':'10/8/2025 7:58:55 PM'},'datetime_field':{'DATE':'10/8/2025 7:58:55 PM'},'timestamp_field':{'DATE':'10/8/2025 7:58:55 PM'},'mediumblob_field':{'BYTES':'C:\\Users\\bayse\\AppData\\Local\\Temp\\v3jx3sug.542'},'set_field':{'TEXT':'one'}}]" \
--trn true \
--dbc "mysql://bayselonarrend:***@127.0.0.1:3306/" \
--tls "{'use_tls':true,'accept_invalid_certs':true}"