PHP Classes

File: Config/Queries/ClientDB/GET/SearchCategory.php

Recommend this page to a friend!
  Classes of Ramesh Narayan Jangid   Open Swoole Microservices   Config/Queries/ClientDB/GET/SearchCategory.php   Download  
File: Config/Queries/ClientDB/GET/SearchCategory.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: Open Swoole Microservices
Implement microservices using Open Swoole
Author: By
Last change: Implemented serverMode feature for Read Configs
Date: 1 month ago
Size: 501 bytes
 

Contents

Class file image Download
<?php
namespace Microservices\Config\Queries\ClientDB\GET;

//return represents root for hierarchyData
use Microservices\App\Constants;

return [
   
'query' => "SELECT * FROM `category` WHERE `name` like CONCAT ('%', :name, '%');",
   
'__CONFIG__' => [// [{payload/uriParams}, key/index, {Constants::$REQUIRED}]
       
['payload', 'name', Constants::$REQUIRED],
    ],
   
'__WHERE__' => [
       
'name' => ['payload', 'name']
    ],
   
'mode' => 'multipleRowFormat',//Multiple rows returned.
];