final class MysqlProvider implements ProviderInterface

Mysql provider can help to retrieve data from mysql database and marshalling between another fields for MySQL.

Methods

void
attach(Xeed $xeed, string|null $table = null)

Attach child provider to DB instance.

static array
mapForeignKeys(array $foreignKey)

{@inheritDoc}

static array
map(array $column, string|null $table = null, Xeed|null $xeed = null)

Do mapping method between another fields for Database.

Details

at line 21
void attach(Xeed $xeed, string|null $table = null)

Attach child provider to DB instance.

Parameters

Xeed $xeed

Xeed instance

string|null $table

The table name to attach child provider

Return Value

void

at line 49
static array mapForeignKeys(array $foreignKey)

{@inheritDoc}

Parameters

array $foreignKey

Return Value

array

at line 63
static array map(array $column, string|null $table = null, Xeed|null $xeed = null)

Do mapping method between another fields for Database.

Parameters

array $column

Original column data

string|null $table

Table name

Xeed|null $xeed

Database instance

Return Value

array

The method returns mapped column data