You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-25 22:12:29 +02:00
Main build (Jenkins)
This commit is contained in:
@@ -43,4 +43,8 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
|
||||
|
||||
```json title="Result"
|
||||
{
|
||||
"result": true
|
||||
}
|
||||
```
|
||||
|
||||
@@ -57,4 +57,6 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
|
||||
|
||||
```json title="Result"
|
||||
NOT JSON: AddIn.OPI_MySQL.Main
|
||||
```
|
||||
|
||||
@@ -97,6 +97,42 @@ Without specifying the `ForcifyResult` flag, result data is returned only for qu
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
oint mysql ExecuteSQLQuery \
|
||||
--sql "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/TEST_DATA2.sql" \
|
||||
--dbc "mysql://bayselonarrend:***@127.0.0.1:3306/"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
oint mysql ExecuteSQLQuery ^
|
||||
--sql "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/TEST_DATA2.sql" ^
|
||||
--dbc "mysql://bayselonarrend:***@127.0.0.1:3306/"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
|
||||
```json title="Result"
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"age": 25,
|
||||
"amount": 1000.11999511719,
|
||||
"data": {
|
||||
"BYTES": "Base64"
|
||||
},
|
||||
"date": "2025-04-06T03:00:00+03:00",
|
||||
"name": "Vitaly",
|
||||
"salary": 1000.12,
|
||||
"time": "1970-01-01T16:53:40+03:00",
|
||||
"type": 1
|
||||
}
|
||||
],
|
||||
"result": true
|
||||
}
|
||||
```
|
||||
|
||||
@@ -38,6 +38,30 @@ import TabItem from '@theme/TabItem';
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
oint mysql GenerateConnectionString \
|
||||
--addr "127.0.0.1" \
|
||||
--db "" \
|
||||
--login "bayselonarrend" \
|
||||
--pass "***"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
oint mysql GenerateConnectionString ^
|
||||
--addr "127.0.0.1" ^
|
||||
--db "" ^
|
||||
--login "bayselonarrend" ^
|
||||
--pass "***"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
|
||||
```json title="Result"
|
||||
"mysql://bayselonarrend:***@127.0.0.1:3306/"
|
||||
```
|
||||
|
||||
@@ -46,4 +46,6 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
|
||||
|
||||
```json title="Result"
|
||||
true
|
||||
```
|
||||
|
||||
39
docs/en/md/MySQL/Orm/Add-records.mdx
vendored
39
docs/en/md/MySQL/Orm/Add-records.mdx
vendored
@@ -82,6 +82,43 @@ The list of available types is described on the initial page of the MySQL librar
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# 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-04-06T15:49:10.7504022Z'},'time_field':{'TIME':'2025-04-06T15:49:10.7504022Z'},'datetime_field':{'DATE':'2025-04-06T15:49:10.7504022Z'},'timestamp_field':{'DATE':'2025-04-06T15:49:10.7504022Z'},'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}"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: 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-04-06T15:49:10.7504022Z'},'time_field':{'TIME':'2025-04-06T15:49:10.7504022Z'},'datetime_field':{'DATE':'2025-04-06T15:49:10.7504022Z'},'timestamp_field':{'DATE':'2025-04-06T15:49:10.7504022Z'},'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}"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
|
||||
```json title="Result"
|
||||
{
|
||||
"commit": {
|
||||
"result": true
|
||||
},
|
||||
"result": true,
|
||||
"rows": 1,
|
||||
"errors": []
|
||||
}
|
||||
```
|
||||
|
||||
30
docs/en/md/MySQL/Orm/Clear-table.mdx
vendored
30
docs/en/md/MySQL/Orm/Clear-table.mdx
vendored
@@ -44,6 +44,34 @@ import TabItem from '@theme/TabItem';
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint mysql ClearTable \
|
||||
--table "testtable" \
|
||||
--dbc "mysql://bayselonarrend:***@127.0.0.1:3306/" \
|
||||
--tls "{'use_tls':true,'accept_invalid_certs':true}"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint mysql ClearTable ^
|
||||
--table "testtable" ^
|
||||
--dbc "mysql://bayselonarrend:***@127.0.0.1:3306/" ^
|
||||
--tls "{'use_tls':true,'accept_invalid_certs':true}"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
|
||||
```json title="Result"
|
||||
{
|
||||
"result": true
|
||||
}
|
||||
```
|
||||
|
||||
30
docs/en/md/MySQL/Orm/Create-database.mdx
vendored
30
docs/en/md/MySQL/Orm/Create-database.mdx
vendored
@@ -44,6 +44,34 @@ import TabItem from '@theme/TabItem';
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint mysql CreateDatabase \
|
||||
--base "testbase1" \
|
||||
--dbc "mysql://bayselonarrend:***@127.0.0.1:3306/" \
|
||||
--tls "{'use_tls':true,'accept_invalid_certs':true}"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint mysql CreateDatabase ^
|
||||
--base "testbase1" ^
|
||||
--dbc "mysql://bayselonarrend:***@127.0.0.1:3306/" ^
|
||||
--tls "{'use_tls':true,'accept_invalid_certs':true}"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
|
||||
```json title="Result"
|
||||
{
|
||||
"result": true
|
||||
}
|
||||
```
|
||||
|
||||
32
docs/en/md/MySQL/Orm/Create-table.mdx
vendored
32
docs/en/md/MySQL/Orm/Create-table.mdx
vendored
@@ -71,6 +71,36 @@ The list of available types is described on the initial page of the MySQL librar
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint mysql CreateTable \
|
||||
--table "testtable" \
|
||||
--cols "{'char_field':'CHAR(5)','varchar_field':'VARCHAR(255)','tinytext_field':'TINYTEXT','text_field':'TEXT','mediumtext_field':'MEDIUMTEXT','longtext_field':'LONGTEXT','tinyint_field':'TINYINT','smallint_field':'SMALLINT','mediumint_field':'MEDIUMINT','int_field':'INT','uint_field':'INT UNSIGNED','bigint_field':'BIGINT','float_field':'FLOAT','double_field':'DOUBLE','date_field':'DATE','time_field':'TIME','datetime_field':'DATETIME','timestamp_field':'TIMESTAMP','mediumblob_field':'MEDIUMBLOB','set_field':'SET(\u0027one\u0027,\u0027two\u0027,\u0027three\u0027)'}" \
|
||||
--dbc "mysql://bayselonarrend:***@127.0.0.1:3306/" \
|
||||
--tls "{'use_tls':true,'accept_invalid_certs':true}"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint mysql CreateTable ^
|
||||
--table "testtable" ^
|
||||
--cols "{'char_field':'CHAR(5)','varchar_field':'VARCHAR(255)','tinytext_field':'TINYTEXT','text_field':'TEXT','mediumtext_field':'MEDIUMTEXT','longtext_field':'LONGTEXT','tinyint_field':'TINYINT','smallint_field':'SMALLINT','mediumint_field':'MEDIUMINT','int_field':'INT','uint_field':'INT UNSIGNED','bigint_field':'BIGINT','float_field':'FLOAT','double_field':'DOUBLE','date_field':'DATE','time_field':'TIME','datetime_field':'DATETIME','timestamp_field':'TIMESTAMP','mediumblob_field':'MEDIUMBLOB','set_field':'SET(\u0027one\u0027,\u0027two\u0027,\u0027three\u0027)'}" ^
|
||||
--dbc "mysql://bayselonarrend:***@127.0.0.1:3306/" ^
|
||||
--tls "{'use_tls':true,'accept_invalid_certs':true}"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
|
||||
```json title="Result"
|
||||
{
|
||||
"result": true
|
||||
}
|
||||
```
|
||||
|
||||
30
docs/en/md/MySQL/Orm/Delete-database.mdx
vendored
30
docs/en/md/MySQL/Orm/Delete-database.mdx
vendored
@@ -44,6 +44,34 @@ import TabItem from '@theme/TabItem';
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint mysql DeleteDatabase \
|
||||
--base "testbase1" \
|
||||
--dbc "mysql://bayselonarrend:***@127.0.0.1:3306/" \
|
||||
--tls "{'use_tls':true,'accept_invalid_certs':true}"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint mysql DeleteDatabase ^
|
||||
--base "testbase1" ^
|
||||
--dbc "mysql://bayselonarrend:***@127.0.0.1:3306/" ^
|
||||
--tls "{'use_tls':true,'accept_invalid_certs':true}"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
|
||||
```json title="Result"
|
||||
{
|
||||
"result": true
|
||||
}
|
||||
```
|
||||
|
||||
26
docs/en/md/MySQL/Orm/Delete-records.mdx
vendored
26
docs/en/md/MySQL/Orm/Delete-records.mdx
vendored
@@ -64,6 +64,30 @@ import TabItem from '@theme/TabItem';
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
oint mysql DeleteRecords \
|
||||
--table "test_data" \
|
||||
--filter "[{'field':'gender','type':'=','value':{'VARCHAR':'Male'},'raw':false,'union':'AND'}]" \
|
||||
--dbc "mysql://bayselonarrend:***@127.0.0.1:3306/"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
oint mysql DeleteRecords ^
|
||||
--table "test_data" ^
|
||||
--filter "[{'field':'gender','type':'=','value':{'VARCHAR':'Male'},'raw':false,'union':'AND'}]" ^
|
||||
--dbc "mysql://bayselonarrend:***@127.0.0.1:3306/"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
|
||||
```json title="Result"
|
||||
{
|
||||
"result": true
|
||||
}
|
||||
```
|
||||
|
||||
24
docs/en/md/MySQL/Orm/Delete-table.mdx
vendored
24
docs/en/md/MySQL/Orm/Delete-table.mdx
vendored
@@ -44,6 +44,28 @@ import TabItem from '@theme/TabItem';
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
oint mysql DeleteTable \
|
||||
--table "test_data" \
|
||||
--dbc "mysql://bayselonarrend:***@127.0.0.1:3306/"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
oint mysql DeleteTable ^
|
||||
--table "test_data" ^
|
||||
--dbc "mysql://bayselonarrend:***@127.0.0.1:3306/"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
|
||||
```json title="Result"
|
||||
{
|
||||
"result": true
|
||||
}
|
||||
```
|
||||
|
||||
@@ -35,6 +35,30 @@ In such a case, you must use `raw:true` to set the condition directly in the que
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
oint mysql GetRecordsFilterStrucutre \
|
||||
--empty true
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
oint mysql GetRecordsFilterStrucutre ^
|
||||
--empty true
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
|
||||
```json title="Result"
|
||||
{
|
||||
"field": "<filtering field name>",
|
||||
"type": "<comparison type>",
|
||||
"value": "<comparison value>",
|
||||
"union": "<connection with the following condition: AND, OR, etc..>",
|
||||
"raw": "<true - the value will be inserted by text as it is, false - through the parameter>"
|
||||
}
|
||||
```
|
||||
|
||||
50
docs/en/md/MySQL/Orm/Get-records.mdx
vendored
50
docs/en/md/MySQL/Orm/Get-records.mdx
vendored
@@ -86,6 +86,54 @@ import TabItem from '@theme/TabItem';
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
oint mysql GetRecords \
|
||||
--table "testtable" \
|
||||
--dbc "mysql://bayselonarrend:***@127.0.0.1:3306/"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
oint mysql GetRecords ^
|
||||
--table "testtable" ^
|
||||
--dbc "mysql://bayselonarrend:***@127.0.0.1:3306/"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
|
||||
```json title="Result"
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"bigint_field": 9223372036854775807,
|
||||
"char_field": "AAAAA",
|
||||
"date_field": "2025-04-06T03:00:00+03:00",
|
||||
"datetime_field": "2025-04-06T16:53:47+03:00",
|
||||
"double_field": 100.51212310791,
|
||||
"float_field": 100.5,
|
||||
"int_field": -2147483647,
|
||||
"longtext_field": "Some looooooong text",
|
||||
"mediumblob_field": {
|
||||
"BYTES": "/9j/4VTBRX..."
|
||||
},
|
||||
"mediumint_field": 8388607,
|
||||
"mediumtext_field": "Some medium text",
|
||||
"set_field": "one",
|
||||
"smallint_field": -32767,
|
||||
"text_field": "Some text",
|
||||
"time_field": "1970-01-01T16:53:47+03:00",
|
||||
"timestamp_field": "2025-04-06T16:53:47+03:00",
|
||||
"tinyint_field": 127,
|
||||
"tinytext_field": "Some tiny text",
|
||||
"uint_field": 4294967295,
|
||||
"varchar_field": "Some varchar"
|
||||
}
|
||||
],
|
||||
"result": true
|
||||
}
|
||||
```
|
||||
|
||||
32
docs/en/md/MySQL/Orm/Update-records.mdx
vendored
32
docs/en/md/MySQL/Orm/Update-records.mdx
vendored
@@ -66,6 +66,36 @@ The list of available types is described on the initial page of the MySQL librar
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint mysql UpdateRecords \
|
||||
--table "testtable" \
|
||||
--values "{'varchar_field':{'VARCHAR':'Another varchar'}}" \
|
||||
--dbc "mysql://bayselonarrend:***@127.0.0.1:3306/" \
|
||||
--tls "{'use_tls':true,'accept_invalid_certs':true}"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint mysql UpdateRecords ^
|
||||
--table "testtable" ^
|
||||
--values "{'varchar_field':{'VARCHAR':'Another varchar'}}" ^
|
||||
--dbc "mysql://bayselonarrend:***@127.0.0.1:3306/" ^
|
||||
--tls "{'use_tls':true,'accept_invalid_certs':true}"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
|
||||
```json title="Result"
|
||||
{
|
||||
"result": true
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user