Xeed
final class Xeed implements ArrayAccess (View source)
Database Object.
Constants
AVAILABLE_DATABASES |
Array of available databases. |
LARAVEL_DEFAULT_TABLES |
|
Properties
$pdo | PDO Instance. |
||
$driver | Driver name. eg. 'mysql' or 'sqlite' |
Methods
Establish connection
Singleton factory method.
prevent from being unserialized (which would create a second instance of it)
Get new instance
Get attached tables.
Get a specific attached table.
Implements ArrayAccess interface.
Implements ArrayAccess interface.
Implements ArrayAccess interface.
Implements ArrayAccess interface.
Get a tables array.
Details
Xeed
addConnection(array $connection)
Establish connection
static Xeed
getInstance()
Singleton factory method.
__wakeup()
prevent from being unserialized (which would create a second instance of it)
static Xeed
make()
Singleton factory method without connection.
static Xeed
getNewInstance()
Get new instance
Xeed
attach(string|null $table = null)
Attach tables and columns.
array
getTables()
Get attached tables.
Table|null
getTable(string $table)
Get a specific attached table.
bool
offsetExists(mixed $offset)
Implements ArrayAccess interface.
mixed
offsetGet(mixed $offset)
Implements ArrayAccess interface.
void
offsetSet(mixed $offset, mixed $value)
Implements ArrayAccess interface.
void
offsetUnset(mixed $offset)
Implements ArrayAccess interface.
array
toArray()
Get a tables array.