I simply need to add where into all queries. Exceptionally insert queries doesn't have where but it contains the exactly same column(s) as row field(s). Actually i know i can do that with extending Medoo class but i guess if it's possible in main repo, better than that.
For example:
$db->addGlobalWhere('tenancy',["tenant_id"=>$tenant_id]);
$db->select("customers","*",["type"=>"sellers"]);
// It would be run like below
$db->select("customers","*",["type"=>"sellers","tenant_id"=>$tenant_id]);
// For disabling
$db->disableGlobalWhere('tenancy');
I simply need to add
where
into all queries. Exceptionallyinsert
queries doesn't havewhere
but it contains the exactly same column(s) as row field(s). Actually i know i can do that with extending Medoo class but i guess if it's possible in main repo, better than that.For example:
Thanks for all your efforts.