\Pop\DbDb

Db install class

Summary

Methods
Properties
Constants
connect()
check()
install()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

connect()

connect(string  $adapter, array  $options, string  $prefix = '\Pop\Db\Adapter\\') : \Pop\Db\Adapter\AbstractAdapter

Factory to create database adapter object and connect to the database

Parameters

string $adapter
array $options
string $prefix

Throws

\Pop\Db\Exception

Returns

\Pop\Db\Adapter\AbstractAdapter

check()

check(array  $db, string  $adapter, string  $prefix = '\Pop\Db\Adapter\\') : string

Check the database

Parameters

array $db
string $adapter
string $prefix

Returns

string

install()

install(string  $sql, array  $db, string  $adapter, string  $prefix = '\Pop\Db\Adapter\\') : void

Install the database schema

Parameters

string $sql
array $db
string $adapter
string $prefix

Throws

\Pop\Db\Exception