Menu

## DatabaseDriverInterface
in

DatabaseDriverInterface.php : 8

### Table of Contents

#### Methods

connect() : static
  Establishes the database connection
getApplication() : PioniaApplication|null
  Returns the application instance
getDsn() : string|null
  Returns the DSN
getPdo() : PDO|null
  Returns the PDO instance
getPrefix() : string|null
  Returns the database table prefix we should use
getType() : string
  Returns the database type we are connecting to
isLogging() : bool
  Tell the core if we should log queries
isTestMode() : bool
  Sets whether we are in test mode

### Methods

#### connect()

DatabaseDriverInterface.php : 57

Establishes the database connection

`public static connect(PioniaApplication|null $application[, null|string|array<string|int, mixed>|PDO $connection = 'default' ]) : static`

##### Parameters

$application : PioniaApplication|null
$connection : null|string|array<string|int, mixed>|PDO = 'default'

##### Return values

static

#### getApplication()

DatabaseDriverInterface.php : 14

Returns the application instance

`public getApplication() : PioniaApplication|null`

##### Return values

PioniaApplication|null

#### getDsn()

DatabaseDriverInterface.php : 26

Returns the DSN

`public getDsn() : string|null`

##### Return values

string|null

#### getPdo()

DatabaseDriverInterface.php : 20

Returns the PDO instance

`public getPdo() : PDO|null`

##### Return values

PDO|null

#### getPrefix()

DatabaseDriverInterface.php : 38

Returns the database table prefix we should use

`public getPrefix() : string|null`

##### Return values

string|null

#### getType()

DatabaseDriverInterface.php : 32

Returns the database type we are connecting to

`public getType() : string`

##### Return values

string

#### isLogging()

DatabaseDriverInterface.php : 49

Tell the core if we should log queries

`public isLogging() : bool`

##### Return values

bool

#### isTestMode()

DatabaseDriverInterface.php : 44

Sets whether we are in test mode

`public isTestMode() : bool`

##### Return values

bool

## Search results