Small Swoole Db

PHPz
Release: 2024-08-16 20:34:30
Original
861 people have browsed it

Small Swoole Db

Small Swoole Db 2.3 introduce left joins :

$selector = (new TableSelector('user')) ->leftJoin('post', 'messageOwner', 'message') ; $selector->where() ->firstCondition(new Condition( new ConditionElement(ConditionElementType::var, 'name', 'user'), ConditionOperator::equal, new ConditionElement(ConditionElementType::const, 'john') ))->andCondition(new Condition( new ConditionElement(ConditionElementType::var, 'subject', 'message'), ConditionOperator::like, new ConditionElement(ConditionElementType::const, '%hiring%') )) ;
Copy after login

packagist : https://packagist.org/packages/small/swoole-db
git : https://git.small-project.dev/lib/small-swoole-db

The above is the detailed content of Small Swoole Db. For more information, please follow other related articles on the PHP Chinese website!

source:dev.to
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!