rahisi/rahisi-db
最新稳定版本:v1.0.0
Composer 安装命令:
composer require rahisi/rahisi-db
包简介
this is database quering function
README 文档
README
rahisiDb library is used to simplify interaction with database
Requirements
PHP versions and extensions
PHP 8.1.6is supported as ofrahisiDb v1.1.1
Usage
The simplest usage (since version 1.0.0) of the library would be as follows:
<?php require_once __DIR__ . '/vendor/autoload.php'; use Rahisi\RahisiDb\DB; // selecting DB::table("accounts")->where(["id" => 1])->get() //this will select * from accounts where id = 1 // inserting DB::table("accounts")->insert(["id" => 1]) //this will INSERT INTO accounts set ("id") value (1) // Updating DB::table("accounts")->Update(["name" => "josh"])->where(['id'=>1])->save() //this will UPDATE accounts SET `name`="josh" where id=1
统计信息
- 总下载量: 18
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-04-09