承接 hybridlogic/db-querybuilder 相关项目开发

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

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

hybridlogic/db-querybuilder

最新稳定版本:v1.0.2

Composer 安装命令:

composer require hybridlogic/db-querybuilder

包简介

A MySQL Query Builder for effortlessly composing SQL statements with support for executing them against databases.

README 文档

README

A MySQL Query Builder for effortlessly composing SQL statements with support for executing them against databases.

0.0 Table of Contents

  • Introduction
  • Examples
  • Running Tests
  • Troubleshooting
  • Changelog

1.0 Introduction

Query Builder makes it effortless to create complex SQL statements from simple method calls. With support for escaping and aliasing, you'll never worry about injecting the wrong data into your database ever again.

Query Builder currently targets the MySQL version of the SQL specification.

@todo Add composer dependency for github.com/Dachande663/PHP-DB

2.0 Examples

$sql = Query::select(array('m.name', 'movie'), array('t.name', 'theatre_name'), 'visited_date')
	->from(array('visits', 'v'))
	->join(array('movies', 'm'))->on('v.movie_id', '=', 'm.id')
	->join(array('theatres', 't'))->on('v.theatre_id', '=', 't.id')
	->where('m.rating', '>=', 80)
	->order_by('v.visited_date', 'DESC')
	->limit(5)
	->as_object('MovieVisit')
	->sql();

3.0 Running Tests

phpunit tests

Please note the test suite is currently incomplete.

4.0 Troubleshooting

@todo

5.0 Changelog

  • [2012-12-08] Initial Version
  • [2013-01-02] First Release

统计信息

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

GitHub 信息

  • Stars: 13
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-01-12