承接 gengbin/sqlbatis 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

gengbin/sqlbatis

最新稳定版本:v1.1

Composer 安装命令:

composer require gengbin/sqlbatis

包简介

This is a tool help you better write sql

README 文档

README

This is a SQL library for the PHP.

What does this project do?

It can help you better for write sql.

Why is this project useful?

It can help you don't doing go to encapsulation Sql Code. let your sql developing extremely easy.

Installation

Composer

From the Command Line:

composer require gengbin/sqlbatis

In your composer.json:

{
  "require":{
    "gengbin/sqlbatis": "^1.0"
  }
}

Basic Usage

1st, suggest you can to write encapsulation.

<?php
require 'vendor/autoload.php';
use \Gengbin\Sqlbatis\Sqlbatis;
use Gengbin\Sqlbatis\entity\ConnectSource;
class Main_Database extends Sqlbatis
{
    function construct($connectData = '', $userName = '', $userPassword = ''): ConnectSource
    {
        $a = new ConnectSource();
        $a->setConnectData('mysql:host=localhost;dbname=mysql');
        $a->setUserName('root');
        $a->setUserPassword('123456');
        return $a;
    }
}

2nd, you can to new This Object

<?php
$m = new Main_Database();
$result = $m->query('SELECT * FROM mm;');
$result = $m->exec('INSERT INTO v(a) VALUES("123123123")');

How do I get started?

You can extend Sqlbathis and rewrite construct and return sql connect info in a array. Second you can call query, exec, resource. Learn More How to use

Where can I get more help, if I need it?

If you meet question, you can take issues, We can help you and feel happy.

统计信息

  • 总下载量: 20
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-11-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固