Package Data | |
---|---|
Maintainer Username: | dlad |
Maintainer Contact: | qdladoooo@gmail.com (Dlad) |
Package Create Date: | 2016-06-14 |
Package Last Update: | 2017-07-03 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-26 15:24:35 |
Package Statistics | |
---|---|
Total Downloads: | 53 |
Monthly Downloads: | 3 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Wrapper of PDO.
Procedure oriented, Pre process, As supplement of ORM.
composer require qdladoooo/laravel-sweeter-fetch
use SweeterFetch\LaravelSF;
//take db_connection as parameter
$sf = new LaravelSF();
Execute none query
//return nothing
$sf->Enq('use candy_shop;');
Execute query
//return [row1, row2, ...]
$sf->Eq($sql);
Execute one row
//return the first row by array
$sf->Eor($sql);
Execute column
//return a column
$sf->Ec($sql);
Execute scalar
//return a number
$sf->Es($sql);
The laravel-sweeter-fetch is open-sourced software licensed under the MIT license.