hengyuz/dosql

dosql is a class which has sealed the generic operate of mysql databases

Maintainers

Details

github.com/HengYuZ/Dosql

Source

Issues

Installs: 7

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Type:project

dev-master 2016-09-07 03:44 UTC

This package is not auto-updated.

Last update: 2025-01-18 21:36:10 UTC


README

#Dosql ##简介 ##Dosql是一个简单的mysql操作数据库封装类。

##使用 新建一个composer.json文件

    {
      "require":{
          "php":">=5.3.0",
          "hengyuz/dosql":"dev-master"
      },
      "minimum-stability":"stable"
    }

然后保存composer.json文件后,使用composer install 命令进行安装。

然后使用命令: cd vendor/hengyu/dosql;

简单使用可以参照show.php。 ##更多用法: Dosql不使用组合条件:

1. $dosql->select('user','','');
2. $dosql->select('user','',['id='=>9]);

Dosql支持组合条件使用:

1. $dosql->select('tb_name',['name','id'],['AND'=>[['id='=>9],['name'=>'hengyu']);
2. $dosql->select('tb_name',['name','id'],['AND'=>['OR'=>[['id='=>9],['name='=>'hengyu']],'OR'=>[['id='=>5],['name='=>'zhu']]]];