1 Star 0 Fork 0

sky8652 / z_db

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

2016年2月16日 v1.0(PHP5.4+)

已经完成基本的功能,暂时支持mysql连接:

require_once  __DIR__."/DB.php";
DB::init([
    'default' => [
        'driver'    => 'mysql',             //mysql, oracle, sqlite, mssql
        'host'      => '127.0.0.1',         //服务器IP
        'port'      => '3306',              //mysql端口,默认3306
        'user'      => 'z_db',              //数据库账号
        'pass'      => '147258369',         //数据库密码
        'database'  => 'zdb',               //数据库名
        'prefix'    => 'zdb_'               //表前缀
    ],
    //数据库查询服务器配置(同上方 default 参数),如果定义了,default配置的服务器不用于查询(select)
    'read' => [

    ],
    //数据库增删改服务器配置(同上方 default 参数),如果定义了,default配置的服务器不用于增删改(update, delete, insert)
    'write' => [

    ]
]);
The MIT License (MIT) Copyright (c) 2015 陆小白 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

PHP数据库操作类,参照Larvel的数据库操作类写的。可单独放到任何PHP项目中使用。 展开 收起
PHP
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
PHP
1
https://gitee.com/resourcesplus/z_db.git
git@gitee.com:resourcesplus/z_db.git
resourcesplus
z_db
z_db
master

搜索帮助