<?php
/**
* API Query config
* php version 8.3
*
* @category API_Query_Config
* @package Openswoole_Microservices
* @author Ramesh N Jangid <[email protected]>
* @copyright 2025 Ramesh N Jangid
* @license MIT https://opensource.org/license/mit
* @link https://github.com/polygoncoin/Openswoole-Microservices
* @since Class available since Release 1.0.0
*/
namespace Microservices\Config\Queries\Auth\ClientDB\Groups\AdminGroup\GET;
return [
'__QUERY__' => "SELECT * FROM `category` WHERE __WHERE__",
'__WHERE__' => [
[
'column' => 'is_deleted',
'fetchFrom' => 'custom',
'fetchFromValue' => 'No'
],
[
'column' => 'parent_id',
'fetchFrom' => 'custom',
'fetchFromValue' => 0
],
[
'column' => 'is_deleted',
'fetchFrom' => 'uriParams',
'fetchFromValue' => 'id'
]
],
'__MODE__' => 'multipleRowFormat',
'__SUB-QUERY__' => [
'sub' => [
'__QUERY__' => "SELECT * FROM `category` WHERE __WHERE__",
'__WHERE__' => [
[
'column' => 'is_deleted',
'fetchFrom' => 'custom',
'fetchFromValue' => 'No'
],
[
'column' => 'parent_id',
'fetchFrom' => 'sqlResults',
'fetchFromValue' => 'return:id'
],
],
'__MODE__' => 'multipleRowFormat',
'__SUB-QUERY__' => [
'subsub' => [
'__QUERY__' => "SELECT * FROM `category` WHERE __WHERE__",
'__WHERE__' => [
[
'column' => 'is_deleted',
'fetchFrom' => 'custom',
'fetchFromValue' => 'No'
],
[
'column' => 'parent_id',
'fetchFrom' => 'sqlResults',
'fetchFromValue' => 'return:sub:id'
],
],
'__MODE__' => 'multipleRowFormat',
'__SUB-QUERY__' => [
'subsubsub' => [
'__QUERY__' => "SELECT * FROM `category` WHERE __WHERE__",
'__WHERE__' => [
[
'column' => 'is_deleted',
'fetchFrom' => 'custom',
'fetchFromValue' => 'No'
],
[
'column' => 'parent_id',
'fetchFrom' => 'sqlResults',
'fetchFromValue' => 'return:sub:subsub:id'
],
],
'__MODE__' => 'multipleRowFormat',
]
]
]
],
]
],
'useResultSet' => true,
];
|