Свойство | Type | Description | |
---|---|---|---|
$connection | string | The name of the database connection to use. | |
$resolver | Illuminate\Database\ConnectionResolverInterface | The database connection resolver instance. | |
$table | string | The name of the mappings table. |
Méthode | Description | |
---|---|---|
__construct ( Illuminate\Database\ConnectionResolverInterface $resolver, string $table ) | Create a new database mapping repository instance. | |
createRepository ( ) | Create the mapping repository data store. | |
delete ( object $mapping ) | Remove mapping from the log. | |
exits ( ) : mixed | Check it the repository table exits. | |
getConnection ( ) : Illuminate\Database\ConnectionInterface | Resolve the database connection instance. | |
getConnectionResolver ( ) : Illuminate\Database\ConnectionResolverInterface | Get the connection resolver instance. | |
getLast ( ) : array | Get the last mapping batch. | |
getLastBatchNumber ( ) : float | integer | Get the next mapping batch number. | |
getNextBatchNumber ( ) | * Get the next mapping batch number | |
getRan ( ) : array | Get the ran mappings. | |
log ( $file, $batch ) | Log that a mapping was run. | |
reset ( ) | Remove all mapping logs from the repository. | |
setSource ( string $name ) : void | Set the information source to gather data. |
Méthode | Description | |
---|---|---|
schema ( ) : Illuminate\Database\Schema\Builder | get a schema builder instance. | |
table ( ) : |
Get a query builder for the mapping table. |
public __construct ( Illuminate\Database\ConnectionResolverInterface $resolver, string $table ) | ||
$resolver | Illuminate\Database\ConnectionResolverInterface | |
$table | string |
public createRepository ( ) |
public getConnection ( ) : Illuminate\Database\ConnectionInterface | ||
Résultat | Illuminate\Database\ConnectionInterface |
public getConnectionResolver ( ) : Illuminate\Database\ConnectionResolverInterface | ||
Résultat | Illuminate\Database\ConnectionResolverInterface |
public getLastBatchNumber ( ) : float | integer | ||
Résultat | float | integer |
public getNextBatchNumber ( ) |
protected schema ( ) : Illuminate\Database\Schema\Builder | ||
Résultat | Illuminate\Database\Schema\Builder |
protected table ( ) : |
||
Résultat |
protected string $connection | ||
Résultat | string |
protected ConnectionResolverInterface,Illuminate\Database $resolver | ||
Résultat | Illuminate\Database\ConnectionResolverInterface |
protected string $table | ||
Résultat | string |