stephenahiggins/doctrine-query-builder-standalone 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

stephenahiggins/doctrine-query-builder-standalone

最新稳定版本:1.0.0

Composer 安装命令:

composer require stephenahiggins/doctrine-query-builder-standalone

包简介

A standalone version of the Doctrine Query Builder

README 文档

README

A standalone implementation of the Doctrine Query Builder. Removes the dependency on having a Doctrine DB connection. This is useful for building queries for other DB connections, or using PDO to execute the query. All credit goes to the original Doctrine team.

Note: This is a work in progress and is not ready for production use.

Installation

Add the repository to your project's composer.json.

composer require stephenahiggins/doctrine-query-builder-standalone:dev-main

Usage

use DoctrineQueryBuilder\Query\StandaloneQueryBuilder;

$qb = new StandaloneQueryBuilder();
$qb->select('*')
    ->from("test_table", 'tt')
    ->innerJoin('tt', "test_table2", 'tt2', "tt.id = tt2.id")
    ->leftJoin('tt', "test_table3", 'tt3', "tt.id = tt3.id")
    ->rightJoin('tt', "test_table4", 'tt4', "tt.id = tt4.id")
    ->setMaxResults(100);

$query = $qb->getSQL();

print "Query:" . $query.PHP_EOL;

Running Tests

Run make run-tests.

Support

Please open an issue. Pull requests are welcome.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-01-02