# IDatabase

interface IDatabase

Database Interface

## Methods

connect(array $options = null)

Connect to Database

close()

Disconnect from Database

query($query)

Database Query

bool
isConnected()

Database connection state

string
escapeString($query)

Returns a string that has been properly escaped

## Details

###
at line 19
`connect(array $options = null)`

Connect to Database

#### Parameters

array | $options |

###
at line 24
`close()`

Disconnect from Database

###
at line 31
`query($query)`

Database Query

#### Parameters

| $query |

###
at line 38
`bool isConnected()`

Database connection state

#### Return Value

bool | $this->_isConnected

###
at line 45
`string escapeString($query)`

Returns a string that has been properly escaped

#### Parameters

| $query |

#### Return Value

string |