Index Documentation

NullDbBackend
in package
implements DbBackend

Information about the dummy database layer.

Table of Contents

Interfaces

DbBackend
Information about a database layer. Should not have any external dependencies.

Methods

createConnection()  : NullDbConnection
Creates a dummy database connection.
isAvailable()  : bool
Checks whether the driver is available and a connection can be made.
parseDsn()  : NullDbConnectionInfo
Constructs a connection info instance from a dsn.

Methods

isAvailable()

Checks whether the driver is available and a connection can be made.

public isAvailable() : bool
Return values
bool

If true a connection can be made, if false a required extension is missing.

parseDsn()

Constructs a connection info instance from a dsn.

public parseDsn(string|array<string, int|string> $dsn) : NullDbConnectionInfo

NullDb has no parameters that can be controlled using the DSN.

Parameters
$dsn : string|array<string, int|string>

DSN with connection information.

Return values
NullDbConnectionInfo

Dummy connection info instance.


        
On this page

Search results