DB
in package
The main entry point for Database Factory. This class gives access to the query builder and the current PDO connection
Tags
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