定制 naprstek/doctrine-functions 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

naprstek/doctrine-functions

最新稳定版本:1.2.1

Composer 安装命令:

composer require naprstek/doctrine-functions

包简介

A set of User Defined Functions to Doctrine 2, basically for MSSQL.

README 文档

README

A set of extensions to Doctrine 2 that add support for additional query functions available in MSSQL.

This library is inspired by DoctrineExpressions, see here: [https://github.com/beberlei/DoctrineExtensions]. It contains a lot of functions for other DB.

The namespace were preserved as they are in DoctrineExtensions, so those two library can be used together.

DB Functions
MSSQL CAST, FORMAT, ISNULL, GETDATE, MONTH, YEAR, DATEPART

Installation

To install this library, run the command below and you will get the latest version:

composer require naprstek/doctrine-functions

Integration to application

in module.config.php add to doctrine section and name function you need. Functions are not added automaticaly (to decrease dependencies and speed up):

    'doctrine' => [
        'connection' => [
            'orm_default' => [
                ...
            ],
        ],
        'configuration' => [
            'orm_default' => [ //User Defined Functions
                'string_functions' => [
                    'format' => 'DoctrineFunctions\Query\Mssql\Format',
                    ...
                ],
                'datetime_functions' => [], //when they exist
                'numeric_functions' => [], //when they exist
            ],
        ],
    ],

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2017-12-05