diff --git a/src/ConfigProvider.php b/src/ConfigProvider.php index 8adb77b..3ebe056 100644 --- a/src/ConfigProvider.php +++ b/src/ConfigProvider.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Database\SQLite; use Hyperf\Database\SQLite\Connectors\SQLiteConnector; diff --git a/src/Connectors/SQLiteConnector.php b/src/Connectors/SQLiteConnector.php index ee41335..6f4d029 100644 --- a/src/Connectors/SQLiteConnector.php +++ b/src/Connectors/SQLiteConnector.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Database\SQLite\Connectors; use Hyperf\Database\Connectors\Connector; diff --git a/src/Listener/RegisterConnectionListener.php b/src/Listener/RegisterConnectionListener.php index 9cbeba5..dd76011 100644 --- a/src/Listener/RegisterConnectionListener.php +++ b/src/Listener/RegisterConnectionListener.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Database\SQLite\Listener; use Hyperf\Context\ApplicationContext; diff --git a/src/Query/Grammars/SQLiteGrammar.php b/src/Query/Grammars/SQLiteGrammar.php index 3b643f6..59b23b6 100644 --- a/src/Query/Grammars/SQLiteGrammar.php +++ b/src/Query/Grammars/SQLiteGrammar.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Database\SQLite\Query\Grammars; use Hyperf\Collection\Arr; diff --git a/src/Query/Processors/SQLiteProcessor.php b/src/Query/Processors/SQLiteProcessor.php index 0e72d03..20fb46c 100644 --- a/src/Query/Processors/SQLiteProcessor.php +++ b/src/Query/Processors/SQLiteProcessor.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Database\SQLite\Query\Processors; use Hyperf\Database\Query\Processors\Processor; diff --git a/src/SQLiteConnection.php b/src/SQLiteConnection.php index 261e9f3..89e5abc 100644 --- a/src/SQLiteConnection.php +++ b/src/SQLiteConnection.php @@ -9,15 +9,18 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Database\SQLite; use Closure; +use Doctrine\DBAL\Driver\PDO\SQLite\Driver; use Doctrine\DBAL\Driver\PDO\SQLite\Driver as DoctrineDriver; use Hyperf\Database\Connection; use Hyperf\Database\Query\Grammars\Grammar as HyperfQueryGrammar; use Hyperf\Database\Query\Processors\Processor; use Hyperf\Database\Schema\Builder as SchemaBuilder; use Hyperf\Database\Schema\Grammars\Grammar as HyperfSchemaGrammar; +use Hyperf\Database\SQLite\Query\Grammars\SQLiteGrammar; use Hyperf\Database\SQLite\Query\Grammars\SQLiteGrammar as QueryGrammar; use Hyperf\Database\SQLite\Query\Processors\SQLiteProcessor; use Hyperf\Database\SQLite\Schema\Grammars\SQLiteGrammar as SchemaGrammar; @@ -51,7 +54,7 @@ public function __construct($pdo, $database = '', $tablePrefix = '', array $conf /** * Get a schema builder instance for the connection. * - * @return \Hyperf\Database\SQLite\Schema\SQLiteBuilder + * @return SQLiteBuilder */ public function getSchemaBuilder(): SchemaBuilder { @@ -65,7 +68,7 @@ public function getSchemaBuilder(): SchemaBuilder /** * Get the default query grammar instance. * - * @return \Hyperf\Database\SQLite\Query\Grammars\SQLiteGrammar + * @return SQLiteGrammar */ protected function getDefaultQueryGrammar(): HyperfQueryGrammar { @@ -76,7 +79,7 @@ protected function getDefaultQueryGrammar(): HyperfQueryGrammar /** * Get the default schema grammar instance. * - * @return \Hyperf\Database\SQLite\Schema\Grammars\SQLiteGrammar + * @return SchemaGrammar */ protected function getDefaultSchemaGrammar(): HyperfSchemaGrammar { @@ -87,7 +90,7 @@ protected function getDefaultSchemaGrammar(): HyperfSchemaGrammar /** * Get the default post processor instance. * - * @return \Hyperf\Database\SQLite\Query\Processors\SQLiteProcessor + * @return SQLiteProcessor */ protected function getDefaultPostProcessor(): Processor { @@ -97,7 +100,7 @@ protected function getDefaultPostProcessor(): Processor /** * Get the Doctrine DBAL driver. * - * @return \Doctrine\DBAL\Driver\PDO\SQLite\Driver + * @return Driver */ protected function getDoctrineDriver() { diff --git a/src/Schema/Grammars/SQLiteGrammar.php b/src/Schema/Grammars/SQLiteGrammar.php index 487e859..133c1a1 100644 --- a/src/Schema/Grammars/SQLiteGrammar.php +++ b/src/Schema/Grammars/SQLiteGrammar.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Database\SQLite\Schema\Grammars; use Hyperf\Collection\Arr; @@ -581,7 +582,7 @@ protected function addForeignKeys(Blueprint $blueprint): ?string /** * Get the SQL for the foreign key. * - * @param \Hyperf\Support\Fluent $foreign + * @param Fluent $foreign */ protected function getForeignKey($foreign): string { diff --git a/src/Schema/SQLiteBuilder.php b/src/Schema/SQLiteBuilder.php index 224b69e..589c037 100644 --- a/src/Schema/SQLiteBuilder.php +++ b/src/Schema/SQLiteBuilder.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Database\SQLite\Schema; use Hyperf\Context\ApplicationContext; diff --git a/tests/DatabaseSQLiteBuilderTest.php b/tests/DatabaseSQLiteBuilderTest.php index 7caca32..f86d03f 100644 --- a/tests/DatabaseSQLiteBuilderTest.php +++ b/tests/DatabaseSQLiteBuilderTest.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace HyperfTest\Database\SQLite; use Hyperf\Context\ApplicationContext; diff --git a/tests/DatabaseSQLiteProcessorTest.php b/tests/DatabaseSQLiteProcessorTest.php index 7409b5f..654fed3 100644 --- a/tests/DatabaseSQLiteProcessorTest.php +++ b/tests/DatabaseSQLiteProcessorTest.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace HyperfTest\Database\SQLite; use Hyperf\Database\Schema\Column; diff --git a/tests/DatabaseSQLiteQueryGrammarTest.php b/tests/DatabaseSQLiteQueryGrammarTest.php index 22a8677..1b8c0d1 100644 --- a/tests/DatabaseSQLiteQueryGrammarTest.php +++ b/tests/DatabaseSQLiteQueryGrammarTest.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace HyperfTest\Database\SQLite; use Hyperf\Database\Connection; diff --git a/tests/DatabaseSQLiteSchemaGrammarTest.php b/tests/DatabaseSQLiteSchemaGrammarTest.php index 45275c5..678e455 100644 --- a/tests/DatabaseSQLiteSchemaGrammarTest.php +++ b/tests/DatabaseSQLiteSchemaGrammarTest.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace HyperfTest\Database\SQLite; use Hyperf\Collection\Collection;