Documentation

DB

The main entry point for Database Factory. This class gives access to the query builder and the current PDO connection

Tags
author

Jason Napolitano

version
1.0.0
since
1.0.0
license

MIT https://mit-license.org

Table of Contents

connect()  : void
Establish a connection
connection()  : PDO
Returns the current PDO connection
table()  : Builder
Returns a query builder instance

Methods

connect()

Establish a connection

public static connect() : void
Return values
void

connection()

Returns the current PDO connection

public static connection() : PDO
Return values
PDO

table()

Returns a query builder instance

public static table(string $table[, string $config = ConfigBaseConfig::class ]) : Builder
Parameters
$table : string

Database table

$config : string = ConfigBaseConfig::class

Config class

Return values
Builder

Search results