1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-27 22:18:36 +02:00
Files
OpenIntegrations/docs/en/cli/mysql/AddRecords/bash.txt
Vitaly the Alpaca (bot) 02e08e1b6e Test data update (Jenkins)
2025-10-15 11:06:08 +00: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/15/2025 09:22:48'},'time_field':{'TIME':'10/15/2025 09:22:48'},'datetime_field':{'DATE':'10/15/2025 09:22:48'},'timestamp_field':{'DATE':'10/15/2025 09:22:48'},'mediumblob_field':{'BYTES':'/tmp/bgbzut5a.myf'},'set_field':{'TEXT':'one'}}]" \
--trn true \
--dbc "mysql://bayselonarrend:***@127.0.0.1:3306/" \
--tls "{'use_tls':true,'accept_invalid_certs':true}"