-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
78 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Yiisoft\Db\Sqlite\Column; | ||
|
||
use Yiisoft\Db\Schema\Column\ColumnFactoryInterface; | ||
|
||
final class ColumnBuilder extends \Yiisoft\Db\Schema\Column\ColumnBuilder | ||
{ | ||
public static function columnFactory(): ColumnFactoryInterface | ||
{ | ||
return new ColumnFactory(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Yiisoft\Db\Sqlite\Column\ColumnFactory; | ||
use Yiisoft\Db\Sqlite\Tests\Support\TestTrait; | ||
use Yiisoft\Db\Tests\AbstractColumnBuilderTest; | ||
|
||
/** | ||
* @group sqlite | ||
*/ | ||
class ColumnBuilderTest extends AbstractColumnBuilderTest | ||
{ | ||
use TestTrait; | ||
|
||
public function testColumnFactory(): void | ||
{ | ||
$db = $this->getConnection(); | ||
$columnBuilderClass = $db->getColumnBuilderClass(); | ||
|
||
$this->assertInstanceOf(ColumnFactory::class, $columnBuilderClass::columnFactory()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters