PHP Classes

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

Recommend this page to a friend!
  Classes of Ramesh Narayan Jangid   Open Swoole Microservices   Config/Queries/ClientDB/GET/Registration.php   Download  
File: Config/Queries/ClientDB/GET/Registration.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: Open Swoole Microservices
Implement microservices using Open Swoole
Author: By
Last change: Refactoring
Date: 3 days ago
Size: 695 bytes
 

Contents

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

//return represents root for hierarchyData
return [
   
'query' => "SELECT * FROM `registration` WHERE __WHERE__",
   
'__WHERE__' => [
       
'is_deleted' => ['custom', 'No']
    ],
   
'mode' => 'multipleRowFormat',//Multiple rows returned.
   
'subQuery' => [
       
'reg-address' => [
           
'query' => "SELECT * FROM `address` WHERE __WHERE__",
           
'__WHERE__' => [
               
'is_deleted' => ['custom', 'No'],
               
'registration_id' => ['hierarchyData', 'return:id'],
            ],
           
'mode' => 'multipleRowFormat',//Multiple rows returned.
       
]
    ],
   
'useHierarchy' => true
];