Documentation

Db
in package

Generates test database connectors.

Copyright 2011-2021 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Tags
category

Horde

author

Gunnar Wrobel wrobel@pardus.de

license

http://www.horde.org/licenses/lgpl21 LGPL

link
http://www.horde.org/components/Horde_Test

Table of Contents

create()  : Horde_Db_Adapter_Pdo_Sqlite
Create a connector to an in-memory sqlite DB.

Methods

create()

Create a connector to an in-memory sqlite DB.

public create([array<string|int, mixed> $params = array() ]) : Horde_Db_Adapter_Pdo_Sqlite
Parameters
$params : array<string|int, mixed> = array()

Additional options.

'migrations' - (array) An list of migrations that should be run.
               Each element must contain the keys 'migrationsPath'
               and 'schemaTableName'.
               DEFAULT: empty
Return values
Horde_Db_Adapter_Pdo_Sqlite

The DB adapter.

Search results