2017 © Pedro Peláez
 

library doctrine-dbal-ibmi

Doctrine DBAL module for DB2 on the IBM i platform

image

guidofaecke/doctrine-dbal-ibmi

Doctrine DBAL module for DB2 on the IBM i platform

  • Wednesday, July 11, 2018
  • by gfaecke
  • Repository
  • 1 Watchers
  • 0 Stars
  • 23 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 11 Versions
  • 0 % Grown

The README.md

doctrine-dbal-ibmi

Build Status, (*1)

Doctrine DBAL module for DB2 on the IBM i platform., (*2)

Based on the original work by @cassvail in doctrine/dbal#910., (*3)

Usage

First, install with Composer:, (*4)

$ composer require guidofaecke/doctrine-dbal-ibmi

Configuration

In your connection configuration, use this specific DB2Driver class, for example, when configuring for a Zend Expressive application:, (*5)

<?php

return [
    'doctrine' => [
        'connection' => [
            'orm_default' => [
                'driverClass' => \DoctrineDbalIbmi\Driver\DB2Driver::class,
                'params' => [
                    'host'     => '...',
                    'user'     => '...',
                    'password' => '...',
                    'dbname'   => '...',
                    'persistent' => true,
                    'driverOptions' => [
                        'i5_naming' => DB2_I5_NAMING_OFF,
                        'i5_commit' => DB2_I5_TXN_NO_COMMIT,
                        'i5_lib' => '...',
                    ],
                ],
            ],
        ],
    ],
];

Manual Configuration

You can manually configure an EntityManager like so:, (*6)

<?php

$configuration = \Doctrine\ORM\Tools\Setup::createAnnotationMetadataConfiguration([
    __DIR__ . '/../path/to/your/entities/',
], true);

$connection = [
    'driverClass' => \DoctrineDbalIbmi\Driver\DB2Driver::class,
    'host' => '...', // Replace this
    'user' => '...', // Replace this
    'password' => '...', // Replace this
    'dbname' => '...', // Look up value with WRKRDBDIRE
    'persistent' => true,
    'driverOptions' => [
        'i5_lib' => '...', // Replace this
        'i5_naming' => DB2_I5_NAMING_OFF,
        'i5_commit' => DB2_I5_TXN_NO_COMMIT,
    ],
];

$entityManager = \Doctrine\ORM\EntityManager::create($connection, $configuration);

You can then use this instance of $entityManager., (*7)

The Versions

11/07 2018

dev-master

9999999-dev

Doctrine DBAL module for DB2 on the IBM i platform

  Sources   Download

MIT

The Requires

 

The Development Requires

by Cassiano Vailati
by Guido Faecke

22/06 2018

dev-limit_offset

dev-limit_offset

Doctrine DBAL module for DB2 on the IBM i platform

  Sources   Download

MIT

The Requires

 

The Development Requires

by Cassiano Vailati
by Guido Faecke

01/06 2018

0.0.7

0.0.7.0

Doctrine DBAL module for DB2 on the IBM i platform

  Sources   Download

MIT

The Requires

 

The Development Requires

by Cassiano Vailati
by Guido Faecke

01/06 2018

dev-pagination_with_order_by

dev-pagination_with_order_by

Doctrine DBAL module for DB2 on the IBM i platform

  Sources   Download

MIT

The Requires

 

The Development Requires

by Cassiano Vailati
by Guido Faecke

23/10 2016

dev-add-test-for-do-modify-limit-query

dev-add-test-for-do-modify-limit-query

Doctrine DBAL module for DB2 on the IBM i platform

  Sources   Download

MIT

The Requires

 

The Development Requires

by Cassiano Vailati

04/04 2016

0.0.6

0.0.6.0

Doctrine DBAL module for DB2 on the IBM i platform

  Sources   Download

MIT

The Requires

 

15/03 2016

0.0.5

0.0.5.0

Doctrine DBAL module for DB2 on the IBM i platform

  Sources   Download

MIT

The Requires

 

14/03 2016

0.0.4

0.0.4.0

Doctrine DBAL module for DB2 on the IBM i platform

  Sources   Download

MIT

The Requires

 

04/03 2016

0.0.3

0.0.3.0

Doctrine DBAL module for DB2 on the IBM i platform

  Sources   Download

MIT

The Requires

 

22/01 2016

0.0.2

0.0.2.0

Doctrine DBAL module for DB2 on the IBM i platform

  Sources   Download

MIT

The Requires

 

22/01 2016

0.0.1

0.0.1.0

Doctrine DBAL module for DB2 on the IBM i platform

  Sources   Download

MIT

The Requires