{ "name": "Внешний источник данных: таблицы и функции", "setup": "empty-config", "preRun": [ { "script": "meta-compile/scripts/meta-compile", "input": { "type": "ExternalDataSource", "name": "PG", "dataLockControlMode": "AutomaticAndManaged", "tables": { "products": { "nameInDataSource": "eds.public.products", "tableDataType": "ObjectData", "keyFields": ["id"], "presentationField": "name", "fields": ["id: Number(10,0)", "name: String(150)", "article: String(50) | nullable"] } }, "functions": { "total": { "expression": "public.f_total(&1, &2)", "returns": "Number(15,2)" } } }, "args": { "-JsonPath": "{inputFile}", "-OutputDir": "{workDir}" } } ], "params": { "objectPath": "ExternalDataSources/PG.xml" }, "expect": { "stdoutContains": ["Внешний источник данных: PG", "Таблицы (1): products", "public.f_total(&1, &2)"] } }