定制 rahisi/rahisi-db 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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.6 is supported as of rahisiDb 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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-09