PHP Classes

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

Recommend this page to a friend!
  Classes of Ramesh Narayan Jangid   Open Swoole Microservices   Config/Queries/ClientDB/Common/Registration.php   Download  
File: Config/Queries/ClientDB/Common/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: Implemented serverMode feature for Read Configs
Date: 1 month ago
Size: 464 bytes
 

Contents

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

use
Microservices\App\Constants;

return [
   
'query' => "UPDATE `registration` SET __SET__ WHERE __WHERE__",
   
'validate' => [
        [
           
'fn' => 'primaryKeyExist',
           
'fnArgs' => [
               
'table' => ['custom', 'registration'],
               
'primary' => ['custom', 'id'],
               
'id' => ['uriParams', 'id']
            ],
           
'errorMessage' => 'Invalid registration id'
       
],
    ]
];