/
githubmirror
/
sqlc
Обзор
Документация
Войти
/
githubmirror
/
sqlc
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
internal/endtoend/testdata/json_array_elements/postgresql/pgx/query.sql
6 строк
264 B
Kyle Gray
test: Add more test cases for new analyzer (#2879)
18 окт 2023, 22:05
Не верифицирован
18 окт 2023, 22:05
4ec9bfa
Код
Авторство
О чём код?
-- name: GetActionCodeByResource :one SELECT code, arr.item_object ->> 'code' as resource_code FROM sys_actions, jsonb_array_elements(resources) with ordinality arr(item_object, resource) WHERE item_object->>'resource' = sqlc.arg('resource') LIMIT 1;