Skip to content

Commit

Permalink
Create Builder.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Helldar authored Nov 20, 2021
1 parent 4b9475b commit 9d63ddf
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions src/MigrateDB/Builder.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?php

/*
* This file is part of the "dragon-code/contracts" project.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Andrey Helldar <[email protected]>
*
* @copyright 2021 Andrey Helldar
*
* @license MIT
*
* @see https://github.com/TheDragonCode/contracts
*/

declare(strict_types=1);

namespace DragonCode\Contracts\MigrateDB;

use Illuminate\Database\Connection;
use Illuminate\Database\Schema\Builder as SchemaBuilder;

interface Builder
{
public function __construct(Connection $connection);

/**
* @return \Illuminate\Database\Schema\Builder|\Illuminate\Database\Schema\MySqlBuilder|\Illuminate\Database\Schema\PostgresBuilder
*/
public function schema(): SchemaBuilder;

public function getPrimaryKey(string $table): string;

public function getAllTables(): array;

public function dropAllTables(): void;

public function disableForeign(): void;

public function enableForeign(): void;
}

0 comments on commit 9d63ddf

Please sign in to comment.