1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-25 22:12:29 +02:00
Files
OpenIntegrations/docs/en/examples/MySQL/EnsureTable.txt
Vitaly the Alpaca (bot) 408473f4ec Main build (Jenkins)
2025-06-29 14:35:33 +03:00

17 lines
572 B
Plaintext
Vendored

Address = "127.0.0.1";
Login = "bayselonarrend";
Password = "12we...";
Base = "testbase1";
Table = "testtable";
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password);
ColoumnsStruct = New Structure;
ColoumnsStruct.Insert("smallint_field" , "SMALLINT");
ColoumnsStruct.Insert("double_field" , "DOUBLE");
ColoumnsStruct.Insert("bigint_field" , "BIGINT");
ColoumnsStruct.Insert("custom_field" , "TEXT");
Result = OPI_MySQL.EnsureTable(Table, ColoumnsStruct, ConnectionString);