PHP Classes

File: Config/Queries/ClientDB/GET/Address-single.php

Recommend this page to a friend!
  Classes of Ramesh Narayan Jangid   Open Swoole Microservices   Config/Queries/ClientDB/GET/Address-single.php   Download  
File: Config/Queries/ClientDB/GET/Address-single.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: 462 bytes
 

Contents

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

use
Microservices\App\Constants;

return [
   
'query' => "SELECT * FROM `address` WHERE __WHERE__",
   
'__CONFIG__' => [// [{payload/uriParams}, key/index, {Constants::$REQUIRED}]
       
['uriParams', 'id', Constants::$REQUIRED],
    ],
   
'__WHERE__' => [
       
'is_deleted' => ['custom', 'No'],
       
'id' => ['uriParams','id']
    ],
   
'mode' => 'singleRowFormat'//Single row returned.
];