Skip to content

Commit

Permalink
Main build (Jenkins)
Browse files Browse the repository at this point in the history
  • Loading branch information
VitalyTheAlpaca committed Feb 27, 2025
1 parent cb8540b commit a84c85b
Show file tree
Hide file tree
Showing 66 changed files with 7,776 additions and 7,204 deletions.
2 changes: 1 addition & 1 deletion ci/clitesten
Original file line number Diff line number Diff line change
Expand Up @@ -2132,7 +2132,7 @@ def test_sqlite(){


catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
powershell encoding: 'UTF-8', script:'./oint.exe sqlite ExecuteSQLQuery --sql "test" --params "test" --force "test" --db "test" --debug --test '
powershell encoding: 'UTF-8', script:'./oint.exe sqlite ExecuteSQLQuery --sql "test" --params "test" --force "test" --db "test" --exts "test" --debug --test '
}

catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
Expand Down
2 changes: 1 addition & 1 deletion ci/clitestru
Original file line number Diff line number Diff line change
Expand Up @@ -2132,7 +2132,7 @@ def test_sqlite(){


catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
powershell encoding: 'UTF-8', script:'./oint.exe sqlite ВыполнитьЗапросSQL --sql "test" --params "test" --force "test" --db "test" --debug --test '
powershell encoding: 'UTF-8', script:'./oint.exe sqlite ВыполнитьЗапросSQL --sql "test" --params "test" --force "test" --db "test" --exts "test" --debug --test '
}

catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
Expand Down
4 changes: 4 additions & 0 deletions docs/en/data/SQLite/ConnectExtension.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"Base": "C:\\Users\\Administrator\\AppData\\Local\\Temp\\v8_4102_79.sqlite",
"Extension": "https://api.athenaeum.digital/test_data/uuid.dll"
}
3 changes: 2 additions & 1 deletion docs/en/data/SQLite/ExecuteSQLQuery.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"Image": "https://api.athenaeum.digital/test_data/picture.jpg"
"Image": "https://api.athenaeum.digital/test_data/picture.jpg",
"Extension": "https://api.athenaeum.digital/test_data/uuid.dll"
}
2 changes: 1 addition & 1 deletion docs/en/examples/SQLite/AddRecords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PictureFile = GetTempFileName("png");
Image.Write(PictureFile); // PictureFile - File to disk

Base = "C:\Users\Administrator\AppData\Local\Temp\v8_761F_2fd.sqlite";
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_4102_79.sqlite";
Table = "test";

DataArray = New Array;
Expand Down
2 changes: 1 addition & 1 deletion docs/en/examples/SQLite/ClearTable.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
 Base = "C:\Users\Administrator\AppData\Local\Temp\v8_761F_2fd.sqlite";
 Base = "C:\Users\Administrator\AppData\Local\Temp\v8_4102_79.sqlite";
Table = "test";

Result = OPI_SQLite.ClearTable(Table, Base);
6 changes: 6 additions & 0 deletions docs/en/examples/SQLite/ConnectExtension.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
 Base = "C:\Users\Administrator\AppData\Local\Temp\v8_4102_79.sqlite";
Extension = "https://api.athenaeum.digital/test_data/uuid.dll"; // URL, Path or Binary Data
EntryPoint = "sqlite3_uuid_init";

Connection = OPI_SQLite.CreateConnection(Base);
Result = OPI_SQLite.ConnectExtension(Extension, EntryPoint, Connection);
2 changes: 1 addition & 1 deletion docs/en/examples/SQLite/CreateTable.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
 Base = "C:\Users\Administrator\AppData\Local\Temp\v8_761F_2fd.sqlite";
 Base = "C:\Users\Administrator\AppData\Local\Temp\v8_4102_79.sqlite";
Table = "test";

ColoumnsStruct = New Structure;
Expand Down
2 changes: 1 addition & 1 deletion docs/en/examples/SQLite/DeleteRecords.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
 Base = "C:\Users\Administrator\AppData\Local\Temp\v8_761F_2fd.sqlite";
 Base = "C:\Users\Administrator\AppData\Local\Temp\v8_4102_79.sqlite";
Table = "test";

Filters = New Array;
Expand Down
2 changes: 1 addition & 1 deletion docs/en/examples/SQLite/DeleteTable.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
 Base = "C:\Users\Administrator\AppData\Local\Temp\v8_761F_2fd.sqlite";
 Base = "C:\Users\Administrator\AppData\Local\Temp\v8_4102_79.sqlite";
Table = "test";

Result = OPI_SQLite.DeleteTable(Table, Base);
12 changes: 12 additions & 0 deletions docs/en/examples/SQLite/ExecuteSQLQuery.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,16 @@

Result = OPI_SQLite.ExecuteSQLQuery(QueryText, , , Connection);

// With extension

Extension = "https://api.athenaeum.digital/test_data/uuid.dll"; // URL, Path or Binary Data
EntryPoint = "sqlite3_uuid_init";

ExtensionMap = New Map;
ExtensionMap.Insert(Extension, EntryPoint);

QueryText = "SELECT uuid4();";

Result = OPI_SQLite.ExecuteSQLQuery(QueryText, , , Connection, ExtensionMap);

Closing = OPI_SQLite.CloseConnection(Connection);
2 changes: 1 addition & 1 deletion docs/en/examples/SQLite/GetRecords.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
 Base = "C:\Users\Administrator\AppData\Local\Temp\v8_761F_2fd.sqlite";
 Base = "C:\Users\Administrator\AppData\Local\Temp\v8_4102_79.sqlite";
Table = "test";

Fields = New Array;
Expand Down
2 changes: 1 addition & 1 deletion docs/en/examples/SQLite/GetTableInformation.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
 Base = "C:\Users\Administrator\AppData\Local\Temp\v8_761F_2fd.sqlite";
 Base = "C:\Users\Administrator\AppData\Local\Temp\v8_4102_79.sqlite";
Table = "test";

Result = OPI_SQLite.GetTableInformation(Table, Base);
2 changes: 1 addition & 1 deletion docs/en/examples/SQLite/UpdateRecords.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
 Base = "C:\Users\Administrator\AppData\Local\Temp\v8_761F_2fd.sqlite";
 Base = "C:\Users\Administrator\AppData\Local\Temp\v8_4102_79.sqlite";
Table = "test";

FieldsStructure = New Structure;
Expand Down
53 changes: 53 additions & 0 deletions docs/en/md/SQLite/Common-methods/Connect-extension.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
sidebar_position: 5
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# Connect extension
Connects the SQLite extension for the specified connection



`Function ConnectExtension(Val Extension, Val EntryPoint = "", Val Connection = "") Export`

| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Extension | - | String, BinaryData | ✔ | Extension data or filepath |
| EntryPoint | - | String | ✖ | Expansion entry point, if required |
| Connection | - | String, Arbitrary | ✖ | Existing connection or path to the base. In memory, if not filled |


Returns: Map Of KeyAndValue - Result of extension connecting

<br/>

:::tip
The extension is active only for the current connection. You must reconnect it each time a new connection is established

Similar to using the `Extensions` parameter (`exts` in CLI) of the `ExecuteSQLQuery` function

Parameters with Binary data type can also accept file paths on disk and URLs
:::

:::caution
**NOCLI:** this method is not available in CLI version
:::
<br/>



```bsl title="1C:Enterprise/OneScript code example"
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_4102_79.sqlite";
Extension = "https://api.athenaeum.digital/test_data/uuid.dll"; // URL, Path or Binary Data
EntryPoint = "sqlite3_uuid_init";
Connection = OPI_SQLite.CreateConnection(Base);
Result = OPI_SQLite.ConnectExtension(Extension, EntryPoint, Connection);
```





17 changes: 16 additions & 1 deletion docs/en/md/SQLite/Common-methods/Execute-sql-query.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ import TabItem from '@theme/TabItem';



`Function ExecuteSQLQuery(Val QueryText, Val Parameters = "", Val ForceResult = False, Val Connection = "") Export`
`Function ExecuteSQLQuery(Val QueryText, Val Parameters = "", Val ForceResult = False, Val Connection = "", Val Extensions = Undefined) Export`

| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| QueryText | --sql | String | &#x2714; | Database query text |
| Parameters | --params | Array Of Arbitrary | &#x2716; | Array of positional parameters of the request |
| ForceResult | --force | Boolean | &#x2716; | Includes an attempt to retrieve the result, even for nonSELECT queries |
| Connection | --db | String, Arbitrary | &#x2716; | Existing connection or path to the base. In memory, if not filled |
| Extensions | --exts | Map Of KeyAndValue | &#x2716; | Extensions: Key > filepath or extension data, Value > entry point |


Returns: Map Of KeyAndValue - Result of query execution
Expand All @@ -28,6 +29,8 @@ import TabItem from '@theme/TabItem';
Available parameter types: String, Number, Date, Boolean, BinaryData. Binary data can also be passed as a `{'blob':File path}` structure. Binary data (BLOB) values are returned as `{'blob':Base64 string}`

Without specifying the `ForcifyResult` flag, result data is returned only for queries beginning with `SELECT` keyword For other queries, `result:true` or `false` with error text is returned

When performing multiple requests within a single connection, it is better to connect extensions once using the `ConnectExtension` function
:::
<br/>

Expand Down Expand Up @@ -93,6 +96,18 @@ Without specifying the `ForcifyResult` flag, result data is returned only for qu
Result = OPI_SQLite.ExecuteSQLQuery(QueryText, , , Connection);
// With extension
Extension = "https://api.athenaeum.digital/test_data/uuid.dll"; // URL, Path or Binary Data
EntryPoint = "sqlite3_uuid_init";
ExtensionMap = New Map;
ExtensionMap.Insert(Extension, EntryPoint);
QueryText = "SELECT uuid4();";
Result = OPI_SQLite.ExecuteSQLQuery(QueryText, , , Connection, ExtensionMap);
Closing = OPI_SQLite.CloseConnection(Connection);
```

Expand Down
2 changes: 1 addition & 1 deletion docs/en/md/SQLite/Orm/Add-records.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Binary data can also be transferred as a structure `{'blob':File path}`
PictureFile = GetTempFileName("png");
Image.Write(PictureFile); // PictureFile - File to disk
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_761F_2fd.sqlite";
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_4102_79.sqlite";
Table = "test";
DataArray = New Array;
Expand Down
2 changes: 1 addition & 1 deletion docs/en/md/SQLite/Orm/Clear-table.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import TabItem from '@theme/TabItem';


```bsl title="1C:Enterprise/OneScript code example"
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_761F_2fd.sqlite";
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_4102_79.sqlite";
Table = "test";
Result = OPI_SQLite.ClearTable(Table, Base);
Expand Down
2 changes: 1 addition & 1 deletion docs/en/md/SQLite/Orm/Create-table.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import TabItem from '@theme/TabItem';


```bsl title="1C:Enterprise/OneScript code example"
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_761F_2fd.sqlite";
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_4102_79.sqlite";
Table = "test";
ColoumnsStruct = New Structure;
Expand Down
2 changes: 1 addition & 1 deletion docs/en/md/SQLite/Orm/Delete-records.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import TabItem from '@theme/TabItem';


```bsl title="1C:Enterprise/OneScript code example"
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_761F_2fd.sqlite";
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_4102_79.sqlite";
Table = "test";
Filters = New Array;
Expand Down
2 changes: 1 addition & 1 deletion docs/en/md/SQLite/Orm/Delete-table.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import TabItem from '@theme/TabItem';


```bsl title="1C:Enterprise/OneScript code example"
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_761F_2fd.sqlite";
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_4102_79.sqlite";
Table = "test";
Result = OPI_SQLite.DeleteTable(Table, Base);
Expand Down
2 changes: 1 addition & 1 deletion docs/en/md/SQLite/Orm/Get-records.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Values of the Binary data type (BLOB) are returned as `{'blob':Base64 string}`


```bsl title="1C:Enterprise/OneScript code example"
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_761F_2fd.sqlite";
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_4102_79.sqlite";
Table = "test";
Fields = New Array;
Expand Down
2 changes: 1 addition & 1 deletion docs/en/md/SQLite/Orm/Get-table-information.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import TabItem from '@theme/TabItem';


```bsl title="1C:Enterprise/OneScript code example"
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_761F_2fd.sqlite";
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_4102_79.sqlite";
Table = "test";
Result = OPI_SQLite.GetTableInformation(Table, Base);
Expand Down
2 changes: 1 addition & 1 deletion docs/en/md/SQLite/Orm/Update-records.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import TabItem from '@theme/TabItem';


```bsl title="1C:Enterprise/OneScript code example"
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_761F_2fd.sqlite";
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_4102_79.sqlite";
Table = "test";
FieldsStructure = New Structure;
Expand Down
3 changes: 2 additions & 1 deletion docs/ru/data/SQLite/ВыполнитьЗапросSQL.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"Картинка": "https://api.athenaeum.digital/test_data/picture.jpg"
"Картинка": "https://api.athenaeum.digital/test_data/picture.jpg",
"Расширение": "https://api.athenaeum.digital/test_data/uuid.dll"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"База": "C:\\Users\\Administrator\\AppData\\Local\\Temp\\v8_4102_79.sqlite",
"Расширение": "https://api.athenaeum.digital/test_data/uuid.dll"
}
12 changes: 12 additions & 0 deletions docs/ru/examples/SQLite/ВыполнитьЗапросSQL.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,16 @@

Результат = OPI_SQLite.ВыполнитьЗапросSQL(ТекстЗапроса, , , Соединение);

// С расширением

Расширение = "https://api.athenaeum.digital/test_data/uuid.dll"; // URL, Путь или Двоичные данные
ТочкаВхода = "sqlite3_uuid_init";

СоответствиеРасширений = Новый Соответствие;
СоответствиеРасширений.Вставить(Расширение, ТочкаВхода);

ТекстЗапроса = "SELECT uuid4();";

Результат = OPI_SQLite.ВыполнитьЗапросSQL(ТекстЗапроса, , , Соединение, СоответствиеРасширений);

Закрытие = OPI_SQLite.ЗакрытьСоединение(Соединение);
2 changes: 1 addition & 1 deletion docs/ru/examples/SQLite/ДобавитьЗаписи.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
ФайлКартинки = ПолучитьИмяВременногоФайла("png");
Картинка.Записать(ФайлКартинки); // ФайлКартинки - Файл на диске

База = "C:\Users\Administrator\AppData\Local\Temp\v8_761F_2fd.sqlite";
База = "C:\Users\Administrator\AppData\Local\Temp\v8_4102_79.sqlite";
Таблица = "test";

МассивДанных = Новый Массив;
Expand Down
2 changes: 1 addition & 1 deletion docs/ru/examples/SQLite/ОбновитьЗаписи.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
 База = "C:\Users\Administrator\AppData\Local\Temp\v8_761F_2fd.sqlite";
 База = "C:\Users\Administrator\AppData\Local\Temp\v8_4102_79.sqlite";
Таблица = "test";

СтруктураПолей = Новый Структура;
Expand Down
2 changes: 1 addition & 1 deletion docs/ru/examples/SQLite/ОчиститьТаблицу.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
 База = "C:\Users\Administrator\AppData\Local\Temp\v8_761F_2fd.sqlite";
 База = "C:\Users\Administrator\AppData\Local\Temp\v8_4102_79.sqlite";
Таблица = "test";

Результат = OPI_SQLite.ОчиститьТаблицу(Таблица, База);
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
 База = "C:\Users\Administrator\AppData\Local\Temp\v8_4102_79.sqlite";
Расширение = "https://api.athenaeum.digital/test_data/uuid.dll"; // URL, Путь или Двоичные данные
ТочкаВхода = "sqlite3_uuid_init";

Соединение = OPI_SQLite.ОткрытьСоединение(База);
Результат = OPI_SQLite.ПодключитьРасширение(Расширение, ТочкаВхода, Соединение);
2 changes: 1 addition & 1 deletion docs/ru/examples/SQLite/ПолучитьЗаписи.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
 База = "C:\Users\Administrator\AppData\Local\Temp\v8_761F_2fd.sqlite";
 База = "C:\Users\Administrator\AppData\Local\Temp\v8_4102_79.sqlite";
Таблица = "test";

Поля = Новый Массив;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
 База = "C:\Users\Administrator\AppData\Local\Temp\v8_761F_2fd.sqlite";
 База = "C:\Users\Administrator\AppData\Local\Temp\v8_4102_79.sqlite";
Таблица = "test";

Результат = OPI_SQLite.ПолучитьИнформациюОТаблице(Таблица, База);
2 changes: 1 addition & 1 deletion docs/ru/examples/SQLite/СоздатьТаблицу.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
 База = "C:\Users\Administrator\AppData\Local\Temp\v8_761F_2fd.sqlite";
 База = "C:\Users\Administrator\AppData\Local\Temp\v8_4102_79.sqlite";
Таблица = "test";

СтруктураКолонок = Новый Структура;
Expand Down
2 changes: 1 addition & 1 deletion docs/ru/examples/SQLite/УдалитьЗаписи.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
 База = "C:\Users\Administrator\AppData\Local\Temp\v8_761F_2fd.sqlite";
 База = "C:\Users\Administrator\AppData\Local\Temp\v8_4102_79.sqlite";
Таблица = "test";

Фильтры = Новый Массив;
Expand Down
2 changes: 1 addition & 1 deletion docs/ru/examples/SQLite/УдалитьТаблицу.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
 База = "C:\Users\Administrator\AppData\Local\Temp\v8_761F_2fd.sqlite";
 База = "C:\Users\Administrator\AppData\Local\Temp\v8_4102_79.sqlite";
Таблица = "test";

Результат = OPI_SQLite.УдалитьТаблицу(Таблица, База);
Loading

0 comments on commit a84c85b

Please sign in to comment.