diff --git a/.phpstorm.meta.php b/.phpstorm.meta.php index de30da9e2..1078788ee 100644 --- a/.phpstorm.meta.php +++ b/.phpstorm.meta.php @@ -13,8 +13,8 @@ */ override(new \Illuminate\Contracts\Container\Container, map([ '' => '@', + 'App\Settings\DataIntegrationSettings' => \App\Settings\DataIntegrationSettings::class, 'App\Settings\DataMigrationSettings' => \App\Settings\DataMigrationSettings::class, - 'App\Settings\InfluxDbSettings' => \App\Settings\InfluxDbSettings::class, 'App\Settings\NotificationSettings' => \App\Settings\NotificationSettings::class, 'App\Settings\ThresholdSettings' => \App\Settings\ThresholdSettings::class, 'BladeUI\Icons\Factory' => \BladeUI\Icons\Factory::class, @@ -54,7 +54,7 @@ 'Illuminate\Console\Scheduling\ScheduleTestCommand' => \Illuminate\Console\Scheduling\ScheduleTestCommand::class, 'Illuminate\Console\Scheduling\ScheduleWorkCommand' => \Illuminate\Console\Scheduling\ScheduleWorkCommand::class, 'Illuminate\Contracts\Auth\Access\Gate' => \Illuminate\Auth\Access\Gate::class, - 'Illuminate\Contracts\Broadcasting\Broadcaster' => \Illuminate\Broadcasting\Broadcasters\NullBroadcaster::class, + 'Illuminate\Contracts\Broadcasting\Broadcaster' => \Illuminate\Broadcasting\Broadcasters\LogBroadcaster::class, 'Illuminate\Contracts\Console\Kernel' => \Illuminate\Foundation\Console\Kernel::class, 'Illuminate\Contracts\Debug\ExceptionHandler' => \NunoMaduro\Collision\Adapters\Laravel\ExceptionHandler::class, 'Illuminate\Contracts\Foundation\ExceptionRenderer' => \Spatie\LaravelIgnition\Renderers\IgnitionExceptionRenderer::class, @@ -217,9 +217,9 @@ 'composer' => \Illuminate\Support\Composer::class, 'cookie' => \Illuminate\Cookie\CookieJar::class, 'db' => \Illuminate\Database\DatabaseManager::class, - 'db.connection' => \Illuminate\Database\MySqlConnection::class, + 'db.connection' => \Illuminate\Database\SQLiteConnection::class, 'db.factory' => \Illuminate\Database\Connectors\ConnectionFactory::class, - 'db.schema' => \Illuminate\Database\Schema\MySqlBuilder::class, + 'db.schema' => \Illuminate\Database\Schema\SQLiteBuilder::class, 'db.transactions' => \Illuminate\Database\DatabaseTransactionsManager::class, 'encrypter' => \Illuminate\Encryption\Encrypter::class, 'events' => \Illuminate\Events\Dispatcher::class, @@ -259,8 +259,8 @@ ])); override(\Illuminate\Container\Container::makeWith(0), map([ '' => '@', + 'App\Settings\DataIntegrationSettings' => \App\Settings\DataIntegrationSettings::class, 'App\Settings\DataMigrationSettings' => \App\Settings\DataMigrationSettings::class, - 'App\Settings\InfluxDbSettings' => \App\Settings\InfluxDbSettings::class, 'App\Settings\NotificationSettings' => \App\Settings\NotificationSettings::class, 'App\Settings\ThresholdSettings' => \App\Settings\ThresholdSettings::class, 'BladeUI\Icons\Factory' => \BladeUI\Icons\Factory::class, @@ -300,7 +300,7 @@ 'Illuminate\Console\Scheduling\ScheduleTestCommand' => \Illuminate\Console\Scheduling\ScheduleTestCommand::class, 'Illuminate\Console\Scheduling\ScheduleWorkCommand' => \Illuminate\Console\Scheduling\ScheduleWorkCommand::class, 'Illuminate\Contracts\Auth\Access\Gate' => \Illuminate\Auth\Access\Gate::class, - 'Illuminate\Contracts\Broadcasting\Broadcaster' => \Illuminate\Broadcasting\Broadcasters\NullBroadcaster::class, + 'Illuminate\Contracts\Broadcasting\Broadcaster' => \Illuminate\Broadcasting\Broadcasters\LogBroadcaster::class, 'Illuminate\Contracts\Console\Kernel' => \Illuminate\Foundation\Console\Kernel::class, 'Illuminate\Contracts\Debug\ExceptionHandler' => \NunoMaduro\Collision\Adapters\Laravel\ExceptionHandler::class, 'Illuminate\Contracts\Foundation\ExceptionRenderer' => \Spatie\LaravelIgnition\Renderers\IgnitionExceptionRenderer::class, @@ -463,9 +463,9 @@ 'composer' => \Illuminate\Support\Composer::class, 'cookie' => \Illuminate\Cookie\CookieJar::class, 'db' => \Illuminate\Database\DatabaseManager::class, - 'db.connection' => \Illuminate\Database\MySqlConnection::class, + 'db.connection' => \Illuminate\Database\SQLiteConnection::class, 'db.factory' => \Illuminate\Database\Connectors\ConnectionFactory::class, - 'db.schema' => \Illuminate\Database\Schema\MySqlBuilder::class, + 'db.schema' => \Illuminate\Database\Schema\SQLiteBuilder::class, 'db.transactions' => \Illuminate\Database\DatabaseTransactionsManager::class, 'encrypter' => \Illuminate\Encryption\Encrypter::class, 'events' => \Illuminate\Events\Dispatcher::class, @@ -505,8 +505,8 @@ ])); override(\Illuminate\Contracts\Container\Container::get(0), map([ '' => '@', + 'App\Settings\DataIntegrationSettings' => \App\Settings\DataIntegrationSettings::class, 'App\Settings\DataMigrationSettings' => \App\Settings\DataMigrationSettings::class, - 'App\Settings\InfluxDbSettings' => \App\Settings\InfluxDbSettings::class, 'App\Settings\NotificationSettings' => \App\Settings\NotificationSettings::class, 'App\Settings\ThresholdSettings' => \App\Settings\ThresholdSettings::class, 'BladeUI\Icons\Factory' => \BladeUI\Icons\Factory::class, @@ -546,7 +546,7 @@ 'Illuminate\Console\Scheduling\ScheduleTestCommand' => \Illuminate\Console\Scheduling\ScheduleTestCommand::class, 'Illuminate\Console\Scheduling\ScheduleWorkCommand' => \Illuminate\Console\Scheduling\ScheduleWorkCommand::class, 'Illuminate\Contracts\Auth\Access\Gate' => \Illuminate\Auth\Access\Gate::class, - 'Illuminate\Contracts\Broadcasting\Broadcaster' => \Illuminate\Broadcasting\Broadcasters\NullBroadcaster::class, + 'Illuminate\Contracts\Broadcasting\Broadcaster' => \Illuminate\Broadcasting\Broadcasters\LogBroadcaster::class, 'Illuminate\Contracts\Console\Kernel' => \Illuminate\Foundation\Console\Kernel::class, 'Illuminate\Contracts\Debug\ExceptionHandler' => \NunoMaduro\Collision\Adapters\Laravel\ExceptionHandler::class, 'Illuminate\Contracts\Foundation\ExceptionRenderer' => \Spatie\LaravelIgnition\Renderers\IgnitionExceptionRenderer::class, @@ -709,9 +709,9 @@ 'composer' => \Illuminate\Support\Composer::class, 'cookie' => \Illuminate\Cookie\CookieJar::class, 'db' => \Illuminate\Database\DatabaseManager::class, - 'db.connection' => \Illuminate\Database\MySqlConnection::class, + 'db.connection' => \Illuminate\Database\SQLiteConnection::class, 'db.factory' => \Illuminate\Database\Connectors\ConnectionFactory::class, - 'db.schema' => \Illuminate\Database\Schema\MySqlBuilder::class, + 'db.schema' => \Illuminate\Database\Schema\SQLiteBuilder::class, 'db.transactions' => \Illuminate\Database\DatabaseTransactionsManager::class, 'encrypter' => \Illuminate\Encryption\Encrypter::class, 'events' => \Illuminate\Events\Dispatcher::class, @@ -751,8 +751,8 @@ ])); override(\Illuminate\Contracts\Container\Container::make(0), map([ '' => '@', + 'App\Settings\DataIntegrationSettings' => \App\Settings\DataIntegrationSettings::class, 'App\Settings\DataMigrationSettings' => \App\Settings\DataMigrationSettings::class, - 'App\Settings\InfluxDbSettings' => \App\Settings\InfluxDbSettings::class, 'App\Settings\NotificationSettings' => \App\Settings\NotificationSettings::class, 'App\Settings\ThresholdSettings' => \App\Settings\ThresholdSettings::class, 'BladeUI\Icons\Factory' => \BladeUI\Icons\Factory::class, @@ -792,7 +792,7 @@ 'Illuminate\Console\Scheduling\ScheduleTestCommand' => \Illuminate\Console\Scheduling\ScheduleTestCommand::class, 'Illuminate\Console\Scheduling\ScheduleWorkCommand' => \Illuminate\Console\Scheduling\ScheduleWorkCommand::class, 'Illuminate\Contracts\Auth\Access\Gate' => \Illuminate\Auth\Access\Gate::class, - 'Illuminate\Contracts\Broadcasting\Broadcaster' => \Illuminate\Broadcasting\Broadcasters\NullBroadcaster::class, + 'Illuminate\Contracts\Broadcasting\Broadcaster' => \Illuminate\Broadcasting\Broadcasters\LogBroadcaster::class, 'Illuminate\Contracts\Console\Kernel' => \Illuminate\Foundation\Console\Kernel::class, 'Illuminate\Contracts\Debug\ExceptionHandler' => \NunoMaduro\Collision\Adapters\Laravel\ExceptionHandler::class, 'Illuminate\Contracts\Foundation\ExceptionRenderer' => \Spatie\LaravelIgnition\Renderers\IgnitionExceptionRenderer::class, @@ -955,9 +955,9 @@ 'composer' => \Illuminate\Support\Composer::class, 'cookie' => \Illuminate\Cookie\CookieJar::class, 'db' => \Illuminate\Database\DatabaseManager::class, - 'db.connection' => \Illuminate\Database\MySqlConnection::class, + 'db.connection' => \Illuminate\Database\SQLiteConnection::class, 'db.factory' => \Illuminate\Database\Connectors\ConnectionFactory::class, - 'db.schema' => \Illuminate\Database\Schema\MySqlBuilder::class, + 'db.schema' => \Illuminate\Database\Schema\SQLiteBuilder::class, 'db.transactions' => \Illuminate\Database\DatabaseTransactionsManager::class, 'encrypter' => \Illuminate\Encryption\Encrypter::class, 'events' => \Illuminate\Events\Dispatcher::class, @@ -997,8 +997,8 @@ ])); override(\Illuminate\Contracts\Container\Container::makeWith(0), map([ '' => '@', + 'App\Settings\DataIntegrationSettings' => \App\Settings\DataIntegrationSettings::class, 'App\Settings\DataMigrationSettings' => \App\Settings\DataMigrationSettings::class, - 'App\Settings\InfluxDbSettings' => \App\Settings\InfluxDbSettings::class, 'App\Settings\NotificationSettings' => \App\Settings\NotificationSettings::class, 'App\Settings\ThresholdSettings' => \App\Settings\ThresholdSettings::class, 'BladeUI\Icons\Factory' => \BladeUI\Icons\Factory::class, @@ -1038,7 +1038,7 @@ 'Illuminate\Console\Scheduling\ScheduleTestCommand' => \Illuminate\Console\Scheduling\ScheduleTestCommand::class, 'Illuminate\Console\Scheduling\ScheduleWorkCommand' => \Illuminate\Console\Scheduling\ScheduleWorkCommand::class, 'Illuminate\Contracts\Auth\Access\Gate' => \Illuminate\Auth\Access\Gate::class, - 'Illuminate\Contracts\Broadcasting\Broadcaster' => \Illuminate\Broadcasting\Broadcasters\NullBroadcaster::class, + 'Illuminate\Contracts\Broadcasting\Broadcaster' => \Illuminate\Broadcasting\Broadcasters\LogBroadcaster::class, 'Illuminate\Contracts\Console\Kernel' => \Illuminate\Foundation\Console\Kernel::class, 'Illuminate\Contracts\Debug\ExceptionHandler' => \NunoMaduro\Collision\Adapters\Laravel\ExceptionHandler::class, 'Illuminate\Contracts\Foundation\ExceptionRenderer' => \Spatie\LaravelIgnition\Renderers\IgnitionExceptionRenderer::class, @@ -1201,9 +1201,9 @@ 'composer' => \Illuminate\Support\Composer::class, 'cookie' => \Illuminate\Cookie\CookieJar::class, 'db' => \Illuminate\Database\DatabaseManager::class, - 'db.connection' => \Illuminate\Database\MySqlConnection::class, + 'db.connection' => \Illuminate\Database\SQLiteConnection::class, 'db.factory' => \Illuminate\Database\Connectors\ConnectionFactory::class, - 'db.schema' => \Illuminate\Database\Schema\MySqlBuilder::class, + 'db.schema' => \Illuminate\Database\Schema\SQLiteBuilder::class, 'db.transactions' => \Illuminate\Database\DatabaseTransactionsManager::class, 'encrypter' => \Illuminate\Encryption\Encrypter::class, 'events' => \Illuminate\Events\Dispatcher::class, @@ -1243,8 +1243,8 @@ ])); override(\App::get(0), map([ '' => '@', + 'App\Settings\DataIntegrationSettings' => \App\Settings\DataIntegrationSettings::class, 'App\Settings\DataMigrationSettings' => \App\Settings\DataMigrationSettings::class, - 'App\Settings\InfluxDbSettings' => \App\Settings\InfluxDbSettings::class, 'App\Settings\NotificationSettings' => \App\Settings\NotificationSettings::class, 'App\Settings\ThresholdSettings' => \App\Settings\ThresholdSettings::class, 'BladeUI\Icons\Factory' => \BladeUI\Icons\Factory::class, @@ -1284,7 +1284,7 @@ 'Illuminate\Console\Scheduling\ScheduleTestCommand' => \Illuminate\Console\Scheduling\ScheduleTestCommand::class, 'Illuminate\Console\Scheduling\ScheduleWorkCommand' => \Illuminate\Console\Scheduling\ScheduleWorkCommand::class, 'Illuminate\Contracts\Auth\Access\Gate' => \Illuminate\Auth\Access\Gate::class, - 'Illuminate\Contracts\Broadcasting\Broadcaster' => \Illuminate\Broadcasting\Broadcasters\NullBroadcaster::class, + 'Illuminate\Contracts\Broadcasting\Broadcaster' => \Illuminate\Broadcasting\Broadcasters\LogBroadcaster::class, 'Illuminate\Contracts\Console\Kernel' => \Illuminate\Foundation\Console\Kernel::class, 'Illuminate\Contracts\Debug\ExceptionHandler' => \NunoMaduro\Collision\Adapters\Laravel\ExceptionHandler::class, 'Illuminate\Contracts\Foundation\ExceptionRenderer' => \Spatie\LaravelIgnition\Renderers\IgnitionExceptionRenderer::class, @@ -1447,9 +1447,9 @@ 'composer' => \Illuminate\Support\Composer::class, 'cookie' => \Illuminate\Cookie\CookieJar::class, 'db' => \Illuminate\Database\DatabaseManager::class, - 'db.connection' => \Illuminate\Database\MySqlConnection::class, + 'db.connection' => \Illuminate\Database\SQLiteConnection::class, 'db.factory' => \Illuminate\Database\Connectors\ConnectionFactory::class, - 'db.schema' => \Illuminate\Database\Schema\MySqlBuilder::class, + 'db.schema' => \Illuminate\Database\Schema\SQLiteBuilder::class, 'db.transactions' => \Illuminate\Database\DatabaseTransactionsManager::class, 'encrypter' => \Illuminate\Encryption\Encrypter::class, 'events' => \Illuminate\Events\Dispatcher::class, @@ -1489,8 +1489,8 @@ ])); override(\App::make(0), map([ '' => '@', + 'App\Settings\DataIntegrationSettings' => \App\Settings\DataIntegrationSettings::class, 'App\Settings\DataMigrationSettings' => \App\Settings\DataMigrationSettings::class, - 'App\Settings\InfluxDbSettings' => \App\Settings\InfluxDbSettings::class, 'App\Settings\NotificationSettings' => \App\Settings\NotificationSettings::class, 'App\Settings\ThresholdSettings' => \App\Settings\ThresholdSettings::class, 'BladeUI\Icons\Factory' => \BladeUI\Icons\Factory::class, @@ -1530,7 +1530,7 @@ 'Illuminate\Console\Scheduling\ScheduleTestCommand' => \Illuminate\Console\Scheduling\ScheduleTestCommand::class, 'Illuminate\Console\Scheduling\ScheduleWorkCommand' => \Illuminate\Console\Scheduling\ScheduleWorkCommand::class, 'Illuminate\Contracts\Auth\Access\Gate' => \Illuminate\Auth\Access\Gate::class, - 'Illuminate\Contracts\Broadcasting\Broadcaster' => \Illuminate\Broadcasting\Broadcasters\NullBroadcaster::class, + 'Illuminate\Contracts\Broadcasting\Broadcaster' => \Illuminate\Broadcasting\Broadcasters\LogBroadcaster::class, 'Illuminate\Contracts\Console\Kernel' => \Illuminate\Foundation\Console\Kernel::class, 'Illuminate\Contracts\Debug\ExceptionHandler' => \NunoMaduro\Collision\Adapters\Laravel\ExceptionHandler::class, 'Illuminate\Contracts\Foundation\ExceptionRenderer' => \Spatie\LaravelIgnition\Renderers\IgnitionExceptionRenderer::class, @@ -1693,9 +1693,9 @@ 'composer' => \Illuminate\Support\Composer::class, 'cookie' => \Illuminate\Cookie\CookieJar::class, 'db' => \Illuminate\Database\DatabaseManager::class, - 'db.connection' => \Illuminate\Database\MySqlConnection::class, + 'db.connection' => \Illuminate\Database\SQLiteConnection::class, 'db.factory' => \Illuminate\Database\Connectors\ConnectionFactory::class, - 'db.schema' => \Illuminate\Database\Schema\MySqlBuilder::class, + 'db.schema' => \Illuminate\Database\Schema\SQLiteBuilder::class, 'db.transactions' => \Illuminate\Database\DatabaseTransactionsManager::class, 'encrypter' => \Illuminate\Encryption\Encrypter::class, 'events' => \Illuminate\Events\Dispatcher::class, @@ -1735,8 +1735,8 @@ ])); override(\App::makeWith(0), map([ '' => '@', + 'App\Settings\DataIntegrationSettings' => \App\Settings\DataIntegrationSettings::class, 'App\Settings\DataMigrationSettings' => \App\Settings\DataMigrationSettings::class, - 'App\Settings\InfluxDbSettings' => \App\Settings\InfluxDbSettings::class, 'App\Settings\NotificationSettings' => \App\Settings\NotificationSettings::class, 'App\Settings\ThresholdSettings' => \App\Settings\ThresholdSettings::class, 'BladeUI\Icons\Factory' => \BladeUI\Icons\Factory::class, @@ -1776,7 +1776,7 @@ 'Illuminate\Console\Scheduling\ScheduleTestCommand' => \Illuminate\Console\Scheduling\ScheduleTestCommand::class, 'Illuminate\Console\Scheduling\ScheduleWorkCommand' => \Illuminate\Console\Scheduling\ScheduleWorkCommand::class, 'Illuminate\Contracts\Auth\Access\Gate' => \Illuminate\Auth\Access\Gate::class, - 'Illuminate\Contracts\Broadcasting\Broadcaster' => \Illuminate\Broadcasting\Broadcasters\NullBroadcaster::class, + 'Illuminate\Contracts\Broadcasting\Broadcaster' => \Illuminate\Broadcasting\Broadcasters\LogBroadcaster::class, 'Illuminate\Contracts\Console\Kernel' => \Illuminate\Foundation\Console\Kernel::class, 'Illuminate\Contracts\Debug\ExceptionHandler' => \NunoMaduro\Collision\Adapters\Laravel\ExceptionHandler::class, 'Illuminate\Contracts\Foundation\ExceptionRenderer' => \Spatie\LaravelIgnition\Renderers\IgnitionExceptionRenderer::class, @@ -1939,9 +1939,9 @@ 'composer' => \Illuminate\Support\Composer::class, 'cookie' => \Illuminate\Cookie\CookieJar::class, 'db' => \Illuminate\Database\DatabaseManager::class, - 'db.connection' => \Illuminate\Database\MySqlConnection::class, + 'db.connection' => \Illuminate\Database\SQLiteConnection::class, 'db.factory' => \Illuminate\Database\Connectors\ConnectionFactory::class, - 'db.schema' => \Illuminate\Database\Schema\MySqlBuilder::class, + 'db.schema' => \Illuminate\Database\Schema\SQLiteBuilder::class, 'db.transactions' => \Illuminate\Database\DatabaseTransactionsManager::class, 'encrypter' => \Illuminate\Encryption\Encrypter::class, 'events' => \Illuminate\Events\Dispatcher::class, @@ -1981,8 +1981,8 @@ ])); override(\app(0), map([ '' => '@', + 'App\Settings\DataIntegrationSettings' => \App\Settings\DataIntegrationSettings::class, 'App\Settings\DataMigrationSettings' => \App\Settings\DataMigrationSettings::class, - 'App\Settings\InfluxDbSettings' => \App\Settings\InfluxDbSettings::class, 'App\Settings\NotificationSettings' => \App\Settings\NotificationSettings::class, 'App\Settings\ThresholdSettings' => \App\Settings\ThresholdSettings::class, 'BladeUI\Icons\Factory' => \BladeUI\Icons\Factory::class, @@ -2022,7 +2022,7 @@ 'Illuminate\Console\Scheduling\ScheduleTestCommand' => \Illuminate\Console\Scheduling\ScheduleTestCommand::class, 'Illuminate\Console\Scheduling\ScheduleWorkCommand' => \Illuminate\Console\Scheduling\ScheduleWorkCommand::class, 'Illuminate\Contracts\Auth\Access\Gate' => \Illuminate\Auth\Access\Gate::class, - 'Illuminate\Contracts\Broadcasting\Broadcaster' => \Illuminate\Broadcasting\Broadcasters\NullBroadcaster::class, + 'Illuminate\Contracts\Broadcasting\Broadcaster' => \Illuminate\Broadcasting\Broadcasters\LogBroadcaster::class, 'Illuminate\Contracts\Console\Kernel' => \Illuminate\Foundation\Console\Kernel::class, 'Illuminate\Contracts\Debug\ExceptionHandler' => \NunoMaduro\Collision\Adapters\Laravel\ExceptionHandler::class, 'Illuminate\Contracts\Foundation\ExceptionRenderer' => \Spatie\LaravelIgnition\Renderers\IgnitionExceptionRenderer::class, @@ -2185,9 +2185,9 @@ 'composer' => \Illuminate\Support\Composer::class, 'cookie' => \Illuminate\Cookie\CookieJar::class, 'db' => \Illuminate\Database\DatabaseManager::class, - 'db.connection' => \Illuminate\Database\MySqlConnection::class, + 'db.connection' => \Illuminate\Database\SQLiteConnection::class, 'db.factory' => \Illuminate\Database\Connectors\ConnectionFactory::class, - 'db.schema' => \Illuminate\Database\Schema\MySqlBuilder::class, + 'db.schema' => \Illuminate\Database\Schema\SQLiteBuilder::class, 'db.transactions' => \Illuminate\Database\DatabaseTransactionsManager::class, 'encrypter' => \Illuminate\Encryption\Encrypter::class, 'events' => \Illuminate\Events\Dispatcher::class, @@ -2227,8 +2227,8 @@ ])); override(\resolve(0), map([ '' => '@', + 'App\Settings\DataIntegrationSettings' => \App\Settings\DataIntegrationSettings::class, 'App\Settings\DataMigrationSettings' => \App\Settings\DataMigrationSettings::class, - 'App\Settings\InfluxDbSettings' => \App\Settings\InfluxDbSettings::class, 'App\Settings\NotificationSettings' => \App\Settings\NotificationSettings::class, 'App\Settings\ThresholdSettings' => \App\Settings\ThresholdSettings::class, 'BladeUI\Icons\Factory' => \BladeUI\Icons\Factory::class, @@ -2268,7 +2268,7 @@ 'Illuminate\Console\Scheduling\ScheduleTestCommand' => \Illuminate\Console\Scheduling\ScheduleTestCommand::class, 'Illuminate\Console\Scheduling\ScheduleWorkCommand' => \Illuminate\Console\Scheduling\ScheduleWorkCommand::class, 'Illuminate\Contracts\Auth\Access\Gate' => \Illuminate\Auth\Access\Gate::class, - 'Illuminate\Contracts\Broadcasting\Broadcaster' => \Illuminate\Broadcasting\Broadcasters\NullBroadcaster::class, + 'Illuminate\Contracts\Broadcasting\Broadcaster' => \Illuminate\Broadcasting\Broadcasters\LogBroadcaster::class, 'Illuminate\Contracts\Console\Kernel' => \Illuminate\Foundation\Console\Kernel::class, 'Illuminate\Contracts\Debug\ExceptionHandler' => \NunoMaduro\Collision\Adapters\Laravel\ExceptionHandler::class, 'Illuminate\Contracts\Foundation\ExceptionRenderer' => \Spatie\LaravelIgnition\Renderers\IgnitionExceptionRenderer::class, @@ -2431,9 +2431,9 @@ 'composer' => \Illuminate\Support\Composer::class, 'cookie' => \Illuminate\Cookie\CookieJar::class, 'db' => \Illuminate\Database\DatabaseManager::class, - 'db.connection' => \Illuminate\Database\MySqlConnection::class, + 'db.connection' => \Illuminate\Database\SQLiteConnection::class, 'db.factory' => \Illuminate\Database\Connectors\ConnectionFactory::class, - 'db.schema' => \Illuminate\Database\Schema\MySqlBuilder::class, + 'db.schema' => \Illuminate\Database\Schema\SQLiteBuilder::class, 'db.transactions' => \Illuminate\Database\DatabaseTransactionsManager::class, 'encrypter' => \Illuminate\Encryption\Encrypter::class, 'events' => \Illuminate\Events\Dispatcher::class, @@ -2473,8 +2473,8 @@ ])); override(\Psr\Container\ContainerInterface::get(0), map([ '' => '@', + 'App\Settings\DataIntegrationSettings' => \App\Settings\DataIntegrationSettings::class, 'App\Settings\DataMigrationSettings' => \App\Settings\DataMigrationSettings::class, - 'App\Settings\InfluxDbSettings' => \App\Settings\InfluxDbSettings::class, 'App\Settings\NotificationSettings' => \App\Settings\NotificationSettings::class, 'App\Settings\ThresholdSettings' => \App\Settings\ThresholdSettings::class, 'BladeUI\Icons\Factory' => \BladeUI\Icons\Factory::class, @@ -2514,7 +2514,7 @@ 'Illuminate\Console\Scheduling\ScheduleTestCommand' => \Illuminate\Console\Scheduling\ScheduleTestCommand::class, 'Illuminate\Console\Scheduling\ScheduleWorkCommand' => \Illuminate\Console\Scheduling\ScheduleWorkCommand::class, 'Illuminate\Contracts\Auth\Access\Gate' => \Illuminate\Auth\Access\Gate::class, - 'Illuminate\Contracts\Broadcasting\Broadcaster' => \Illuminate\Broadcasting\Broadcasters\NullBroadcaster::class, + 'Illuminate\Contracts\Broadcasting\Broadcaster' => \Illuminate\Broadcasting\Broadcasters\LogBroadcaster::class, 'Illuminate\Contracts\Console\Kernel' => \Illuminate\Foundation\Console\Kernel::class, 'Illuminate\Contracts\Debug\ExceptionHandler' => \NunoMaduro\Collision\Adapters\Laravel\ExceptionHandler::class, 'Illuminate\Contracts\Foundation\ExceptionRenderer' => \Spatie\LaravelIgnition\Renderers\IgnitionExceptionRenderer::class, @@ -2677,9 +2677,9 @@ 'composer' => \Illuminate\Support\Composer::class, 'cookie' => \Illuminate\Cookie\CookieJar::class, 'db' => \Illuminate\Database\DatabaseManager::class, - 'db.connection' => \Illuminate\Database\MySqlConnection::class, + 'db.connection' => \Illuminate\Database\SQLiteConnection::class, 'db.factory' => \Illuminate\Database\Connectors\ConnectionFactory::class, - 'db.schema' => \Illuminate\Database\Schema\MySqlBuilder::class, + 'db.schema' => \Illuminate\Database\Schema\SQLiteBuilder::class, 'db.transactions' => \Illuminate\Database\DatabaseTransactionsManager::class, 'encrypter' => \Illuminate\Encryption\Encrypter::class, 'events' => \Illuminate\Events\Dispatcher::class, diff --git a/_ide_helper.php b/_ide_helper.php index 6f4615280..c2c0a175d 100644 --- a/_ide_helper.php +++ b/_ide_helper.php @@ -4302,7 +4302,7 @@ /** * Get the underlying database connection. * - * @return \Illuminate\Database\MySqlConnection + * @return \Illuminate\Database\SQLiteConnection * @static */ public static function getConnection() { @@ -5605,7 +5605,7 @@ * Build a database connection instance from the given configuration. * * @param array $config - * @return \Illuminate\Database\MySqlConnection + * @return \Illuminate\Database\SQLiteConnection * @static */ public static function build($config) { @@ -5618,7 +5618,7 @@ * @param string $name * @param array $config * @param bool $force - * @return \Illuminate\Database\MySqlConnection + * @return \Illuminate\Database\SQLiteConnection * @static */ public static function connectUsing($name, $config, $force = false) { @@ -5829,60 +5829,17 @@ * @static */ public static function getDriverTitle() { - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->getDriverTitle(); - } - /** - * Run an insert statement against the database. - * - * @param string $query - * @param array $bindings - * @param string|null $sequence - * @return bool - * @static - */ public static function insert($query, $bindings = [], $sequence = null) - { - /** @var \Illuminate\Database\MySqlConnection $instance */ - return $instance->insert($query, $bindings, $sequence); - } - /** - * Get the connection's last insert ID. - * - * @return string|int|null - * @static - */ public static function getLastInsertId() - { - /** @var \Illuminate\Database\MySqlConnection $instance */ - return $instance->getLastInsertId(); - } - /** - * Determine if the connected database is a MariaDB database. - * - * @return bool - * @static - */ public static function isMaria() - { - /** @var \Illuminate\Database\MySqlConnection $instance */ - return $instance->isMaria(); - } - /** - * Get the server version for the connection. - * - * @return string - * @static - */ public static function getServerVersion() - { - /** @var \Illuminate\Database\MySqlConnection $instance */ - return $instance->getServerVersion(); } /** * Get a schema builder instance for the connection. * - * @return \Illuminate\Database\Schema\MySqlBuilder + * @return \Illuminate\Database\Schema\SQLiteBuilder * @static */ public static function getSchemaBuilder() { - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->getSchemaBuilder(); } /** @@ -5890,11 +5847,11 @@ * * @param \Illuminate\Filesystem\Filesystem|null $files * @param callable|null $processFactory - * @return \Illuminate\Database\Schema\MySqlSchemaState + * @throws \RuntimeException * @static */ public static function getSchemaState($files = null, $processFactory = null) { - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->getSchemaState($files, $processFactory); } /** @@ -5904,7 +5861,7 @@ * @static */ public static function useDefaultQueryGrammar() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ $instance->useDefaultQueryGrammar(); } /** @@ -5914,7 +5871,7 @@ * @static */ public static function useDefaultSchemaGrammar() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ $instance->useDefaultSchemaGrammar(); } /** @@ -5924,7 +5881,7 @@ * @static */ public static function useDefaultPostProcessor() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ $instance->useDefaultPostProcessor(); } /** @@ -5936,7 +5893,7 @@ * @static */ public static function table($table, $as = null) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->table($table, $as); } /** @@ -5946,7 +5903,7 @@ * @static */ public static function query() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->query(); } /** @@ -5959,7 +5916,7 @@ * @static */ public static function selectOne($query, $bindings = [], $useReadPdo = true) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->selectOne($query, $bindings, $useReadPdo); } /** @@ -5973,7 +5930,7 @@ * @static */ public static function scalar($query, $bindings = [], $useReadPdo = true) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->scalar($query, $bindings, $useReadPdo); } /** @@ -5985,7 +5942,7 @@ * @static */ public static function selectFromWriteConnection($query, $bindings = []) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->selectFromWriteConnection($query, $bindings); } /** @@ -5998,7 +5955,7 @@ * @static */ public static function select($query, $bindings = [], $useReadPdo = true) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->select($query, $bindings, $useReadPdo); } /** @@ -6011,7 +5968,7 @@ * @static */ public static function selectResultSets($query, $bindings = [], $useReadPdo = true) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->selectResultSets($query, $bindings, $useReadPdo); } /** @@ -6024,8 +5981,20 @@ * @static */ public static function cursor($query, $bindings = [], $useReadPdo = true) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->cursor($query, $bindings, $useReadPdo); + } + /** + * Run an insert statement against the database. + * + * @param string $query + * @param array $bindings + * @return bool + * @static + */ public static function insert($query, $bindings = []) + { //Method inherited from \Illuminate\Database\Connection + /** @var \Illuminate\Database\SQLiteConnection $instance */ + return $instance->insert($query, $bindings); } /** * Run an update statement against the database. @@ -6036,7 +6005,7 @@ * @static */ public static function update($query, $bindings = []) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->update($query, $bindings); } /** @@ -6048,7 +6017,7 @@ * @static */ public static function delete($query, $bindings = []) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->delete($query, $bindings); } /** @@ -6060,7 +6029,7 @@ * @static */ public static function statement($query, $bindings = []) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->statement($query, $bindings); } /** @@ -6072,7 +6041,7 @@ * @static */ public static function affectingStatement($query, $bindings = []) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->affectingStatement($query, $bindings); } /** @@ -6083,7 +6052,7 @@ * @static */ public static function unprepared($query) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->unprepared($query); } /** @@ -6093,7 +6062,7 @@ * @static */ public static function threadCount() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->threadCount(); } /** @@ -6104,7 +6073,7 @@ * @static */ public static function pretend($callback) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->pretend($callback); } /** @@ -6115,7 +6084,7 @@ * @static */ public static function withoutPretending($callback) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->withoutPretending($callback); } /** @@ -6127,7 +6096,7 @@ * @static */ public static function bindValues($statement, $bindings) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ $instance->bindValues($statement, $bindings); } /** @@ -6138,7 +6107,7 @@ * @static */ public static function prepareBindings($bindings) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->prepareBindings($bindings); } /** @@ -6151,7 +6120,7 @@ * @static */ public static function logQuery($query, $bindings, $time = null) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ $instance->logQuery($query, $bindings, $time); } /** @@ -6163,7 +6132,7 @@ * @static */ public static function whenQueryingForLongerThan($threshold, $handler) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ $instance->whenQueryingForLongerThan($threshold, $handler); } /** @@ -6173,7 +6142,7 @@ * @static */ public static function allowQueryDurationHandlersToRunAgain() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ $instance->allowQueryDurationHandlersToRunAgain(); } /** @@ -6183,7 +6152,7 @@ * @static */ public static function totalQueryDuration() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->totalQueryDuration(); } /** @@ -6193,7 +6162,7 @@ * @static */ public static function resetTotalQueryDuration() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ $instance->resetTotalQueryDuration(); } /** @@ -6203,29 +6172,29 @@ * @static */ public static function reconnectIfMissingConnection() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ $instance->reconnectIfMissingConnection(); } /** * Register a hook to be run just before a database transaction is started. * * @param \Closure $callback - * @return \Illuminate\Database\MySqlConnection + * @return \Illuminate\Database\SQLiteConnection * @static */ public static function beforeStartingTransaction($callback) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->beforeStartingTransaction($callback); } /** * Register a hook to be run just before a database query is executed. * * @param \Closure $callback - * @return \Illuminate\Database\MySqlConnection + * @return \Illuminate\Database\SQLiteConnection * @static */ public static function beforeExecuting($callback) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->beforeExecuting($callback); } /** @@ -6236,7 +6205,7 @@ * @static */ public static function listen($callback) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ $instance->listen($callback); } /** @@ -6247,7 +6216,7 @@ * @static */ public static function raw($value) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->raw($value); } /** @@ -6259,7 +6228,7 @@ * @static */ public static function escape($value, $binary = false) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->escape($value, $binary); } /** @@ -6269,7 +6238,7 @@ * @static */ public static function hasModifiedRecords() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->hasModifiedRecords(); } /** @@ -6280,18 +6249,18 @@ * @static */ public static function recordsHaveBeenModified($value = true) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ $instance->recordsHaveBeenModified($value); } /** * Set the record modification state. * * @param bool $value - * @return \Illuminate\Database\MySqlConnection + * @return \Illuminate\Database\SQLiteConnection * @static */ public static function setRecordModificationState($value) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->setRecordModificationState($value); } /** @@ -6301,18 +6270,18 @@ * @static */ public static function forgetRecordModificationState() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ $instance->forgetRecordModificationState(); } /** * Indicate that the connection should use the write PDO connection for reads. * * @param bool $value - * @return \Illuminate\Database\MySqlConnection + * @return \Illuminate\Database\SQLiteConnection * @static */ public static function useWriteConnectionWhenReading($value = true) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->useWriteConnectionWhenReading($value); } /** @@ -6322,7 +6291,7 @@ * @static */ public static function getPdo() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->getPdo(); } /** @@ -6332,7 +6301,7 @@ * @static */ public static function getRawPdo() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->getRawPdo(); } /** @@ -6342,7 +6311,7 @@ * @static */ public static function getReadPdo() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->getReadPdo(); } /** @@ -6352,29 +6321,29 @@ * @static */ public static function getRawReadPdo() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->getRawReadPdo(); } /** * Set the PDO connection. * * @param \PDO|\Closure|null $pdo - * @return \Illuminate\Database\MySqlConnection + * @return \Illuminate\Database\SQLiteConnection * @static */ public static function setPdo($pdo) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->setPdo($pdo); } /** * Set the PDO connection used for reading. * * @param \PDO|\Closure|null $pdo - * @return \Illuminate\Database\MySqlConnection + * @return \Illuminate\Database\SQLiteConnection * @static */ public static function setReadPdo($pdo) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->setReadPdo($pdo); } /** @@ -6384,7 +6353,7 @@ * @static */ public static function getName() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->getName(); } /** @@ -6394,7 +6363,7 @@ * @static */ public static function getNameWithReadWriteType() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->getNameWithReadWriteType(); } /** @@ -6405,7 +6374,7 @@ * @static */ public static function getConfig($option = null) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->getConfig($option); } /** @@ -6415,7 +6384,7 @@ * @static */ public static function getDriverName() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->getDriverName(); } /** @@ -6425,18 +6394,18 @@ * @static */ public static function getQueryGrammar() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->getQueryGrammar(); } /** * Set the query grammar used by the connection. * * @param \Illuminate\Database\Query\Grammars\Grammar $grammar - * @return \Illuminate\Database\MySqlConnection + * @return \Illuminate\Database\SQLiteConnection * @static */ public static function setQueryGrammar($grammar) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->setQueryGrammar($grammar); } /** @@ -6446,18 +6415,18 @@ * @static */ public static function getSchemaGrammar() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->getSchemaGrammar(); } /** * Set the schema grammar used by the connection. * * @param \Illuminate\Database\Schema\Grammars\Grammar $grammar - * @return \Illuminate\Database\MySqlConnection + * @return \Illuminate\Database\SQLiteConnection * @static */ public static function setSchemaGrammar($grammar) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->setSchemaGrammar($grammar); } /** @@ -6467,18 +6436,18 @@ * @static */ public static function getPostProcessor() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->getPostProcessor(); } /** * Set the query post processor used by the connection. * * @param \Illuminate\Database\Query\Processors\Processor $processor - * @return \Illuminate\Database\MySqlConnection + * @return \Illuminate\Database\SQLiteConnection * @static */ public static function setPostProcessor($processor) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->setPostProcessor($processor); } /** @@ -6488,18 +6457,18 @@ * @static */ public static function getEventDispatcher() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->getEventDispatcher(); } /** * Set the event dispatcher instance on the connection. * * @param \Illuminate\Contracts\Events\Dispatcher $events - * @return \Illuminate\Database\MySqlConnection + * @return \Illuminate\Database\SQLiteConnection * @static */ public static function setEventDispatcher($events) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->setEventDispatcher($events); } /** @@ -6509,18 +6478,18 @@ * @static */ public static function unsetEventDispatcher() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ $instance->unsetEventDispatcher(); } /** * Set the transaction manager instance on the connection. * * @param \Illuminate\Database\DatabaseTransactionsManager $manager - * @return \Illuminate\Database\MySqlConnection + * @return \Illuminate\Database\SQLiteConnection * @static */ public static function setTransactionManager($manager) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->setTransactionManager($manager); } /** @@ -6530,7 +6499,7 @@ * @static */ public static function unsetTransactionManager() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ $instance->unsetTransactionManager(); } /** @@ -6540,7 +6509,7 @@ * @static */ public static function pretending() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->pretending(); } /** @@ -6550,7 +6519,7 @@ * @static */ public static function getQueryLog() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->getQueryLog(); } /** @@ -6560,7 +6529,7 @@ * @static */ public static function getRawQueryLog() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->getRawQueryLog(); } /** @@ -6570,7 +6539,7 @@ * @static */ public static function flushQueryLog() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ $instance->flushQueryLog(); } /** @@ -6580,7 +6549,7 @@ * @static */ public static function enableQueryLog() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ $instance->enableQueryLog(); } /** @@ -6590,7 +6559,7 @@ * @static */ public static function disableQueryLog() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ $instance->disableQueryLog(); } /** @@ -6600,7 +6569,7 @@ * @static */ public static function logging() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->logging(); } /** @@ -6610,29 +6579,29 @@ * @static */ public static function getDatabaseName() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->getDatabaseName(); } /** * Set the name of the connected database. * * @param string $database - * @return \Illuminate\Database\MySqlConnection + * @return \Illuminate\Database\SQLiteConnection * @static */ public static function setDatabaseName($database) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->setDatabaseName($database); } /** * Set the read / write type of the connection. * * @param string|null $readWriteType - * @return \Illuminate\Database\MySqlConnection + * @return \Illuminate\Database\SQLiteConnection * @static */ public static function setReadWriteType($readWriteType) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->setReadWriteType($readWriteType); } /** @@ -6642,18 +6611,18 @@ * @static */ public static function getTablePrefix() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->getTablePrefix(); } /** * Set the table prefix in use by the connection. * * @param string $prefix - * @return \Illuminate\Database\MySqlConnection + * @return \Illuminate\Database\SQLiteConnection * @static */ public static function setTablePrefix($prefix) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->setTablePrefix($prefix); } /** @@ -6665,8 +6634,18 @@ * @static */ public static function withTablePrefix($grammar) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->withTablePrefix($grammar); + } + /** + * Get the server version for the connection. + * + * @return string + * @static + */ public static function getServerVersion() + { //Method inherited from \Illuminate\Database\Connection + /** @var \Illuminate\Database\SQLiteConnection $instance */ + return $instance->getServerVersion(); } /** * Register a connection resolver. @@ -6677,7 +6656,7 @@ * @static */ public static function resolverFor($driver, $callback) { //Method inherited from \Illuminate\Database\Connection - \Illuminate\Database\MySqlConnection::resolverFor($driver, $callback); + \Illuminate\Database\SQLiteConnection::resolverFor($driver, $callback); } /** * Get the connection resolver for the given driver. @@ -6687,7 +6666,7 @@ * @static */ public static function getResolver($driver) { //Method inherited from \Illuminate\Database\Connection - return \Illuminate\Database\MySqlConnection::getResolver($driver); + return \Illuminate\Database\SQLiteConnection::getResolver($driver); } /** * @@ -6702,7 +6681,7 @@ * @static */ public static function transaction($callback, $attempts = 1) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->transaction($callback, $attempts); } /** @@ -6713,7 +6692,7 @@ * @static */ public static function beginTransaction() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ $instance->beginTransaction(); } /** @@ -6724,7 +6703,7 @@ * @static */ public static function commit() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ $instance->commit(); } /** @@ -6736,7 +6715,7 @@ * @static */ public static function rollBack($toLevel = null) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ $instance->rollBack($toLevel); } /** @@ -6746,7 +6725,7 @@ * @static */ public static function transactionLevel() { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ return $instance->transactionLevel(); } /** @@ -6758,7 +6737,7 @@ * @static */ public static function afterCommit($callback) { //Method inherited from \Illuminate\Database\Connection - /** @var \Illuminate\Database\MySqlConnection $instance */ + /** @var \Illuminate\Database\SQLiteConnection $instance */ $instance->afterCommit($callback); } } @@ -14826,7 +14805,7 @@ * @static */ public static function createDatabase($name) { - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ return $instance->createDatabase($name); } /** @@ -14837,7 +14816,7 @@ * @static */ public static function dropDatabaseIfExists($name) { - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ return $instance->dropDatabaseIfExists($name); } /** @@ -14848,81 +14827,93 @@ * @static */ public static function hasTable($table) { - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ return $instance->hasTable($table); } /** * Get the tables for the database. * + * @param bool $withSize * @return array * @static - */ public static function getTables() + */ public static function getTables($withSize = true) { - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ - return $instance->getTables(); + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ + return $instance->getTables($withSize); } /** - * Get the views for the database. + * Get the columns for a given table. * + * @param string $table * @return array * @static - */ public static function getViews() + */ public static function getColumns($table) { - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ - return $instance->getViews(); + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ + return $instance->getColumns($table); } /** - * Get the columns for a given table. + * Drop all tables from the database. * - * @param string $table - * @return array + * @return void * @static - */ public static function getColumns($table) + */ public static function dropAllTables() { - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ - return $instance->getColumns($table); + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ + $instance->dropAllTables(); } /** - * Get the indexes for a given table. + * Drop all views from the database. * - * @param string $table - * @return array + * @return void * @static - */ public static function getIndexes($table) + */ public static function dropAllViews() { - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ - return $instance->getIndexes($table); + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ + $instance->dropAllViews(); } /** - * Get the foreign keys for a given table. + * Set the busy timeout. * - * @param string $table - * @return array + * @param int $milliseconds + * @return bool * @static - */ public static function getForeignKeys($table) + */ public static function setBusyTimeout($milliseconds) { - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ - return $instance->getForeignKeys($table); + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ + return $instance->setBusyTimeout($milliseconds); } /** - * Drop all tables from the database. + * Set the journal mode. * - * @return void + * @param string $mode + * @return bool * @static - */ public static function dropAllTables() + */ public static function setJournalMode($mode) { - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ - $instance->dropAllTables(); + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ + return $instance->setJournalMode($mode); } /** - * Drop all views from the database. + * Set the synchronous mode. + * + * @param int $mode + * @return bool + * @static + */ public static function setSynchronous($mode) + { + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ + return $instance->setSynchronous($mode); + } + /** + * Empty the database file. * * @return void * @static - */ public static function dropAllViews() + */ public static function refreshDatabaseFile() { - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ - $instance->dropAllViews(); + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ + $instance->refreshDatabaseFile(); } /** * Set the default string length for migrations. @@ -14932,7 +14923,7 @@ * @static */ public static function defaultStringLength($length) { //Method inherited from \Illuminate\Database\Schema\Builder - \Illuminate\Database\Schema\MySqlBuilder::defaultStringLength($length); + \Illuminate\Database\Schema\SQLiteBuilder::defaultStringLength($length); } /** * Set the default morph key type for migrations. @@ -14943,7 +14934,7 @@ * @static */ public static function defaultMorphKeyType($type) { //Method inherited from \Illuminate\Database\Schema\Builder - \Illuminate\Database\Schema\MySqlBuilder::defaultMorphKeyType($type); + \Illuminate\Database\Schema\SQLiteBuilder::defaultMorphKeyType($type); } /** * Set the default morph key type for migrations to UUIDs. @@ -14952,7 +14943,7 @@ * @static */ public static function morphUsingUuids() { //Method inherited from \Illuminate\Database\Schema\Builder - \Illuminate\Database\Schema\MySqlBuilder::morphUsingUuids(); + \Illuminate\Database\Schema\SQLiteBuilder::morphUsingUuids(); } /** * Set the default morph key type for migrations to ULIDs. @@ -14961,7 +14952,7 @@ * @static */ public static function morphUsingUlids() { //Method inherited from \Illuminate\Database\Schema\Builder - \Illuminate\Database\Schema\MySqlBuilder::morphUsingUlids(); + \Illuminate\Database\Schema\SQLiteBuilder::morphUsingUlids(); } /** * Determine if the given view exists. @@ -14971,7 +14962,7 @@ * @static */ public static function hasView($view) { //Method inherited from \Illuminate\Database\Schema\Builder - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ return $instance->hasView($view); } /** @@ -14981,8 +14972,18 @@ * @static */ public static function getTableListing() { //Method inherited from \Illuminate\Database\Schema\Builder - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ return $instance->getTableListing(); + } + /** + * Get the views that belong to the database. + * + * @return array + * @static + */ public static function getViews() + { //Method inherited from \Illuminate\Database\Schema\Builder + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ + return $instance->getViews(); } /** * Get the user-defined types that belong to the database. @@ -14991,7 +14992,7 @@ * @static */ public static function getTypes() { //Method inherited from \Illuminate\Database\Schema\Builder - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ return $instance->getTypes(); } /** @@ -15003,7 +15004,7 @@ * @static */ public static function hasColumn($table, $column) { //Method inherited from \Illuminate\Database\Schema\Builder - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ return $instance->hasColumn($table, $column); } /** @@ -15015,7 +15016,7 @@ * @static */ public static function hasColumns($table, $columns) { //Method inherited from \Illuminate\Database\Schema\Builder - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ return $instance->hasColumns($table, $columns); } /** @@ -15028,7 +15029,7 @@ * @static */ public static function whenTableHasColumn($table, $column, $callback) { //Method inherited from \Illuminate\Database\Schema\Builder - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ $instance->whenTableHasColumn($table, $column, $callback); } /** @@ -15041,7 +15042,7 @@ * @static */ public static function whenTableDoesntHaveColumn($table, $column, $callback) { //Method inherited from \Illuminate\Database\Schema\Builder - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ $instance->whenTableDoesntHaveColumn($table, $column, $callback); } /** @@ -15054,7 +15055,7 @@ * @static */ public static function getColumnType($table, $column, $fullDefinition = false) { //Method inherited from \Illuminate\Database\Schema\Builder - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ return $instance->getColumnType($table, $column, $fullDefinition); } /** @@ -15065,8 +15066,19 @@ * @static */ public static function getColumnListing($table) { //Method inherited from \Illuminate\Database\Schema\Builder - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ return $instance->getColumnListing($table); + } + /** + * Get the indexes for a given table. + * + * @param string $table + * @return array + * @static + */ public static function getIndexes($table) + { //Method inherited from \Illuminate\Database\Schema\Builder + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ + return $instance->getIndexes($table); } /** * Get the names of the indexes for a given table. @@ -15076,7 +15088,7 @@ * @static */ public static function getIndexListing($table) { //Method inherited from \Illuminate\Database\Schema\Builder - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ return $instance->getIndexListing($table); } /** @@ -15089,8 +15101,19 @@ * @static */ public static function hasIndex($table, $index, $type = null) { //Method inherited from \Illuminate\Database\Schema\Builder - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ return $instance->hasIndex($table, $index, $type); + } + /** + * Get the foreign keys for a given table. + * + * @param string $table + * @return array + * @static + */ public static function getForeignKeys($table) + { //Method inherited from \Illuminate\Database\Schema\Builder + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ + return $instance->getForeignKeys($table); } /** * Modify a table on the schema. @@ -15101,7 +15124,7 @@ * @static */ public static function table($table, $callback) { //Method inherited from \Illuminate\Database\Schema\Builder - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ $instance->table($table, $callback); } /** @@ -15113,7 +15136,7 @@ * @static */ public static function create($table, $callback) { //Method inherited from \Illuminate\Database\Schema\Builder - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ $instance->create($table, $callback); } /** @@ -15124,7 +15147,7 @@ * @static */ public static function drop($table) { //Method inherited from \Illuminate\Database\Schema\Builder - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ $instance->drop($table); } /** @@ -15135,7 +15158,7 @@ * @static */ public static function dropIfExists($table) { //Method inherited from \Illuminate\Database\Schema\Builder - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ $instance->dropIfExists($table); } /** @@ -15147,7 +15170,7 @@ * @static */ public static function dropColumns($table, $columns) { //Method inherited from \Illuminate\Database\Schema\Builder - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ $instance->dropColumns($table, $columns); } /** @@ -15158,7 +15181,7 @@ * @static */ public static function dropAllTypes() { //Method inherited from \Illuminate\Database\Schema\Builder - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ $instance->dropAllTypes(); } /** @@ -15170,7 +15193,7 @@ * @static */ public static function rename($from, $to) { //Method inherited from \Illuminate\Database\Schema\Builder - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ $instance->rename($from, $to); } /** @@ -15180,7 +15203,7 @@ * @static */ public static function enableForeignKeyConstraints() { //Method inherited from \Illuminate\Database\Schema\Builder - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ return $instance->enableForeignKeyConstraints(); } /** @@ -15190,7 +15213,7 @@ * @static */ public static function disableForeignKeyConstraints() { //Method inherited from \Illuminate\Database\Schema\Builder - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ return $instance->disableForeignKeyConstraints(); } /** @@ -15201,7 +15224,7 @@ * @static */ public static function withoutForeignKeyConstraints($callback) { //Method inherited from \Illuminate\Database\Schema\Builder - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ return $instance->withoutForeignKeyConstraints($callback); } /** @@ -15211,18 +15234,18 @@ * @static */ public static function getConnection() { //Method inherited from \Illuminate\Database\Schema\Builder - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ return $instance->getConnection(); } /** * Set the database connection instance. * * @param \Illuminate\Database\Connection $connection - * @return \Illuminate\Database\Schema\MySqlBuilder + * @return \Illuminate\Database\Schema\SQLiteBuilder * @static */ public static function setConnection($connection) { //Method inherited from \Illuminate\Database\Schema\Builder - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ return $instance->setConnection($connection); } /** @@ -15233,7 +15256,7 @@ * @static */ public static function blueprintResolver($resolver) { //Method inherited from \Illuminate\Database\Schema\Builder - /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */ + /** @var \Illuminate\Database\Schema\SQLiteBuilder $instance */ $instance->blueprintResolver($resolver); } /** @@ -15246,7 +15269,7 @@ * @static */ public static function macro($name, $macro) { //Method inherited from \Illuminate\Database\Schema\Builder - \Illuminate\Database\Schema\MySqlBuilder::macro($name, $macro); + \Illuminate\Database\Schema\SQLiteBuilder::macro($name, $macro); } /** * Mix another object into the class. @@ -15258,7 +15281,7 @@ * @static */ public static function mixin($mixin, $replace = true) { //Method inherited from \Illuminate\Database\Schema\Builder - \Illuminate\Database\Schema\MySqlBuilder::mixin($mixin, $replace); + \Illuminate\Database\Schema\SQLiteBuilder::mixin($mixin, $replace); } /** * Checks if macro is registered. @@ -15268,7 +15291,7 @@ * @static */ public static function hasMacro($name) { //Method inherited from \Illuminate\Database\Schema\Builder - return \Illuminate\Database\Schema\MySqlBuilder::hasMacro($name); + return \Illuminate\Database\Schema\SQLiteBuilder::hasMacro($name); } /** * Flush the existing macros. @@ -15277,7 +15300,7 @@ * @static */ public static function flushMacros() { //Method inherited from \Illuminate\Database\Schema\Builder - \Illuminate\Database\Schema\MySqlBuilder::flushMacros(); + \Illuminate\Database\Schema\SQLiteBuilder::flushMacros(); } } /** @@ -26808,11 +26831,6 @@ class Flare extends \Spatie\LaravelIgnition\Facades\Flare {} } -namespace Facades\Livewire\Features\SupportFileUploads { - /** - * @mixin \Livewire\Features\SupportFileUploads\GenerateSignedUploadUrl */ - class GenerateSignedUploadUrl extends \Livewire\Features\SupportFileUploads\GenerateSignedUploadUrl {} -} diff --git a/app/Actions/InfluxDBv2/SendAllResultsToInfluxDB.php b/app/Actions/InfluxDBv2/SendAllResultsToInfluxDB.php new file mode 100644 index 000000000..4e2fcb8bd --- /dev/null +++ b/app/Actions/InfluxDBv2/SendAllResultsToInfluxDB.php @@ -0,0 +1,52 @@ +title('No Results to Export') + ->body('There are no speed test results available to send to InfluxDB.') + ->warning() + ->send(); + + return; + } + + // Notify that the export is starting + Notification::make() + ->title('Export Started') + ->body("Found {$totalResults} results to be sent to InfluxDB. Export process has started.") + ->info() + ->send(); + + // Fetch all results + $results = Result::all(); + + // Dispatch the job for each result + foreach ($results as $result) { + WriteSpeedtestResult::dispatch($result); + } + } +} diff --git a/app/Actions/InfluxDBv2/TestInfluxDB.php b/app/Actions/InfluxDBv2/TestInfluxDB.php new file mode 100644 index 000000000..c12b84801 --- /dev/null +++ b/app/Actions/InfluxDBv2/TestInfluxDB.php @@ -0,0 +1,46 @@ + $settings->influxdb_v2_enabled, + 'url' => $settings?->influxdb_v2_url, + 'org' => $settings?->influxdb_v2_org, + 'bucket' => $settings?->influxdb_v2_bucket, + 'token' => $settings?->influxdb_v2_token, + ]; + + if ($influxdb['enabled'] == true) { + // Create a test result if InfluxDB is enabled + $result = Result::factory()->create(); + + // Dispatch the job to write the result to InfluxDB + dispatch(new WriteSpeedtestResult($result, $settings)); + } + + // Optional: Notification + Notification::make() + ->title('Success') + ->body('A test log has been sent to InfluxDB. Check if the data is received!') + ->success() + ->send(); + } +} diff --git a/app/Console/Commands/TestInfluxDB.php b/app/Console/Commands/TestInfluxDB.php deleted file mode 100644 index 0824fbc8a..000000000 --- a/app/Console/Commands/TestInfluxDB.php +++ /dev/null @@ -1,42 +0,0 @@ - $settings->v2_enabled, - 'url' => $settings?->v2_url, - 'org' => $settings?->v2_org, - 'bucket' => $settings?->v2_bucket, - 'token' => $settings?->v2_token, - ]; - - if ($influxdb['enabled'] == true) { - $result = Result::factory()->create(); - } - } -} diff --git a/app/Enums/ResultService.php b/app/Enums/ResultService.php index 94ee19765..2d2cf7d8d 100644 --- a/app/Enums/ResultService.php +++ b/app/Enums/ResultService.php @@ -8,6 +8,7 @@ enum ResultService: string implements HasLabel { case Ookla = 'ookla'; + case faker = 'faker'; public function getLabel(): ?string { diff --git a/app/Filament/Pages/Settings/InfluxDbPage.php b/app/Filament/Pages/Settings/DataIntegrationPage.php similarity index 50% rename from app/Filament/Pages/Settings/InfluxDbPage.php rename to app/Filament/Pages/Settings/DataIntegrationPage.php index 1c0d495e7..109b94780 100644 --- a/app/Filament/Pages/Settings/InfluxDbPage.php +++ b/app/Filament/Pages/Settings/DataIntegrationPage.php @@ -2,12 +2,14 @@ namespace App\Filament\Pages\Settings; -use App\Settings\InfluxDbSettings; +use App\Actions\InfluxDBv2\SendAllResultsToInfluxDB; +use App\Actions\InfluxDBv2\TestInfluxDB; +use App\Settings\DataIntegrationSettings; use Filament\Forms; use Filament\Forms\Form; use Filament\Pages\SettingsPage; -class InfluxDbPage extends SettingsPage +class DataIntegrationPage extends SettingsPage { protected static ?string $navigationIcon = 'heroicon-o-circle-stack'; @@ -15,11 +17,11 @@ class InfluxDbPage extends SettingsPage protected static ?int $navigationSort = 2; - protected static ?string $title = 'InfluxDB'; + protected static ?string $title = 'Data Integration'; - protected static ?string $navigationLabel = 'InfluxDB'; + protected static ?string $navigationLabel = 'Data Integration'; - protected static string $settings = InfluxDbSettings::class; + protected static string $settings = DataIntegrationSettings::class; public static function canAccess(): bool { @@ -37,47 +39,64 @@ public function form(Form $form): Form ->schema([ Forms\Components\Grid::make([ 'default' => 1, + 'md' => 3, ]) ->schema([ - Forms\Components\Section::make('InfluxDB v2 Settings') + Forms\Components\Section::make('InfluxDB v2') + ->description('When enabled, all new Speedtest results will also be sent to InfluxDB.') ->schema([ - Forms\Components\Toggle::make('v2_enabled') + Forms\Components\Toggle::make('influxdb_v2_enabled') ->label('Enable') ->reactive() - ->columnSpan(2), - Forms\Components\Grid::make([ - 'default' => 1, - 'md' => 3, - ]) - ->hidden(fn (Forms\Get $get) => $get('v2_enabled') !== true) + ->columnSpanFull(), + Forms\Components\Grid::make(['default' => 1, 'md' => 3]) + ->hidden(fn (Forms\Get $get) => $get('influxdb_v2_enabled') !== true) ->schema([ - Forms\Components\TextInput::make('v2_url') + Forms\Components\TextInput::make('influxdb_v2_url') ->label('URL') ->placeholder('http://your-influxdb-instance') ->maxLength(255) - ->required(fn (Forms\Get $get) => $get('v2_enabled') == true) - ->columnSpanFull(), - Forms\Components\Checkbox::make('v2_verify_ssl') - ->label('Verify SSL') - ->columnSpanFull(), - Forms\Components\TextInput::make('v2_org') + ->required(fn (Forms\Get $get) => $get('influxdb_v2_enabled') === true) + ->columnSpan(['md' => 1]), + Forms\Components\TextInput::make('influxdb_v2_org') ->label('Org') ->maxLength(255) - ->required(fn (Forms\Get $get) => $get('v2_enabled') == true) - ->columnSpan(['md' => 2]), - Forms\Components\TextInput::make('v2_bucket') + ->required(fn (Forms\Get $get) => $get('influxdb_v2_enabled') === true) + ->columnSpan(['md' => 1]), + Forms\Components\TextInput::make('influxdb_v2_bucket') ->placeholder('speedtest-tracker') ->label('Bucket') ->maxLength(255) - ->required(fn (Forms\Get $get) => $get('v2_enabled') == true) - ->columnSpan(['md' => 1]), - Forms\Components\TextInput::make('v2_token') + ->required(fn (Forms\Get $get) => $get('influxdb_v2_enabled') === true) + ->columnSpan(['md' => 2]), + Forms\Components\TextInput::make('influxdb_v2_token') ->label('Token') ->maxLength(255) ->password() - ->required(fn (Forms\Get $get) => $get('v2_enabled') == true) + ->required(fn (Forms\Get $get) => $get('influxdb_v2_enabled') === true) ->disableAutocomplete() + ->columnSpan(['md' => 2]), + Forms\Components\Checkbox::make('influxdb_v2_verify_ssl') + ->label('Verify SSL') ->columnSpanFull(), + // Button to send old data to InfluxDB + Forms\Components\Actions::make([ + Forms\Components\Actions\Action::make('Export current results') + ->label('Export current results') + ->action(fn () => app(SendAllResultsToInfluxDB::class)->handle()) + ->color('primary') + ->icon('heroicon-o-cloud-arrow-up') + ->visible(fn (): bool => app(DataIntegrationSettings::class)->influxdb_v2_enabled), + ]), + // Button to test InfluxDB connection + Forms\Components\Actions::make([ + Forms\Components\Actions\Action::make('Test InfluxDB connection') + ->label('Test InfluxDB connection') + ->action(fn () => app(TestInfluxDB::class)->handle()) + ->color('primary') + ->icon('heroicon-o-check-circle') + ->visible(fn (): bool => app(DataIntegrationSettings::class)->influxdb_v2_enabled), + ]), ]), ]) ->compact() @@ -85,8 +104,7 @@ public function form(Form $form): Form 'default' => 1, 'md' => 2, ]), - ]) - ->columnSpan('full'), + ]), ]); } } diff --git a/app/Jobs/InfluxDBv2/WriteCompletedSpeedtest.php b/app/Jobs/InfluxDBv2/WriteCompletedSpeedtest.php deleted file mode 100644 index c06de4525..000000000 --- a/app/Jobs/InfluxDBv2/WriteCompletedSpeedtest.php +++ /dev/null @@ -1,71 +0,0 @@ - $this->settings->v2_enabled, - 'url' => $this->settings?->v2_url, - 'org' => $this->settings?->v2_org, - 'bucket' => $this->settings?->v2_bucket, - 'token' => $this->settings?->v2_token, - 'verifySSL' => $this->settings->v2_verify_ssl, - ]; - - $client = new Client([ - 'url' => $influxdb['url'], - 'token' => $influxdb['token'], - 'bucket' => $influxdb['bucket'], - 'org' => $influxdb['org'], - 'verifySSL' => $influxdb['verifySSL'], - 'precision' => \InfluxDB2\Model\WritePrecision::S, - ]); - - $writeApi = $client->createWriteApi(); - - $dataArray = [ - 'name' => 'speedtest', - 'tags' => $this->result->formatTagsForInfluxDB2(), - 'fields' => $this->result->formatForInfluxDB2(), - 'time' => strtotime($this->result->created_at), - ]; - - try { - $writeApi->write($dataArray); - } catch (\Exception $e) { - Log::info($e); - - $this->fail(); - } - - $writeApi->close(); - } -} diff --git a/app/Jobs/InfluxDBv2/WriteSpeedtestResult.php b/app/Jobs/InfluxDBv2/WriteSpeedtestResult.php new file mode 100644 index 000000000..3aa3f454e --- /dev/null +++ b/app/Jobs/InfluxDBv2/WriteSpeedtestResult.php @@ -0,0 +1,79 @@ +settings = app(DataIntegrationSettings::class); + $this->enabled = $this->settings->influxdb_v2_enabled; + } + + /** + * Execute the job. + */ + public function handle(): void + { + if (! $this->enabled) { + return; + } + + // Now $this->settings is available in the handle method + $client = new Client([ + 'url' => $this->settings->influxdb_v2_url, + 'token' => $this->settings->influxdb_v2_token, + 'bucket' => $this->settings->influxdb_v2_bucket, + 'org' => $this->settings->influxdb_v2_org, + 'verifySSL' => $this->settings->influxdb_v2_verify_ssl, + 'precision' => \InfluxDB2\Model\WritePrecision::S, + ]); + + $writeApi = $client->createWriteApi(); + + $dataArray = [ + 'name' => 'speedtest', + 'tags' => $this->result->formatTagsForInfluxDB2(), + 'fields' => $this->result->formatForInfluxDB2(), + 'time' => strtotime($this->result->created_at), + ]; + + try { + Log::info('Writing to InfluxDB', ['data' => $dataArray]); + + $writeApi->write($dataArray); + } catch (\Exception $e) { + Log::error('Failed to write to InfluxDB', [ + 'error' => $e->getMessage(), + 'result_id' => $this->result->id, + ]); + + $this->fail($e); + } finally { + $writeApi->close(); + } + } +} diff --git a/app/Jobs/Ookla/ProcessSpeedtestBatch.php b/app/Jobs/Ookla/ProcessSpeedtestBatch.php index ad7d698a0..c1547da6b 100644 --- a/app/Jobs/Ookla/ProcessSpeedtestBatch.php +++ b/app/Jobs/Ookla/ProcessSpeedtestBatch.php @@ -3,6 +3,7 @@ namespace App\Jobs\Ookla; use App\Jobs\CheckForInternetConnectionJob; +use App\Jobs\InfluxDBv2\WriteSpeedtestResult; use App\Models\Result; use Illuminate\Bus\Batch; use Illuminate\Contracts\Queue\ShouldQueue; @@ -35,6 +36,7 @@ public function handle(): void new RunSpeedtestJob($this->result), new BenchmarkSpeedtestJob($this->result), new CompleteSpeedtestJob($this->result), + new WriteSpeedtestResult($this->result), ], ])->catch(function (Batch $batch, ?Throwable $e) { Log::error(sprintf('Speedtest batch "%s" failed for an unknown reason.', $batch->id)); diff --git a/app/Listeners/Data/InfluxDb2Listener.php b/app/Listeners/Data/InfluxDb2Listener.php deleted file mode 100644 index 622ec5be6..000000000 --- a/app/Listeners/Data/InfluxDb2Listener.php +++ /dev/null @@ -1,22 +0,0 @@ -v2_enabled) { - WriteCompletedSpeedtest::dispatch($event->result, $influxSettings); - } - } -} diff --git a/app/Models/Result.php b/app/Models/Result.php index db5ffcc3c..232f95b7d 100644 --- a/app/Models/Result.php +++ b/app/Models/Result.php @@ -48,37 +48,35 @@ public function formatTagsForInfluxDB2(): array 'server_id' => (int) $this->server_id, 'server_host' => $this->server_host, 'server_name' => $this->server_name, + 'status' => $this->status->value, + 'scheduled' => (bool) $this->scheduled, + 'health' => (bool) $this->healthy, + 'isp' => $this->isp, + 'app_name' => config('app.name'), ]; } /** * The attributes to be passed to influxdb */ - public function formatForInfluxDB2() + public function formatForInfluxDB2(): array { return [ 'id' => $this->id, - 'ping' => $this?->ping, - 'download' => $this?->download, - 'upload' => $this?->upload, - 'download_bits' => $this->download_bits, - 'upload_bits' => $this->upload_bits, - 'ping_jitter' => $this->ping_jitter, - 'download_jitter' => $this->download_jitter, - 'upload_jitter' => $this->upload_jitter, - 'download_latency_avg' => $this->download_latency_iqm, - 'download_latency_low' => $this->download_latency_low, - 'download_latency_high' => $this->download_latency_high, - 'upload_latency_avg' => $this->upload_latency_iqm, - 'upload_latency_low' => $this->upload_latency_low, - 'upload_latency_high' => $this->upload_latency_high, - 'server_id' => $this?->server_id, - 'isp' => $this?->isp, - 'server_host' => $this?->server_host, - 'server_name' => $this?->server_name, - 'server_location' => $this?->server_location, - 'scheduled' => $this->scheduled, - 'successful' => $this->status === ResultStatus::Completed, + 'ping' => $this->ping ?? null, + 'download' => $this->download ?? null, + 'upload' => $this->upload ?? null, + 'download_bits' => (float) $this->download_bits, + 'upload_bits' => (float) $this->upload_bits, + 'ping_jitter' => (float) $this->ping_jitter, + 'download_jitter' => (float) $this->download_jitter, + 'upload_jitter' => (float) $this->upload_jitter, + 'download_latency_avg' => (float) $this->download_latency_iqm, + 'download_latency_low' => (float) $this->download_latency_low, + 'download_latency_high' => (float) $this->download_latency_high, + 'upload_latency_avg' => (float) $this->upload_latency_iqm, + 'upload_latency_low' => (float) $this->upload_latency_low, + 'upload_latency_high' => (float) $this->upload_latency_high, 'packet_loss' => (float) $this->packet_loss, ]; } diff --git a/app/Settings/DataIntegrationSettings.php b/app/Settings/DataIntegrationSettings.php new file mode 100644 index 000000000..2cc29515e --- /dev/null +++ b/app/Settings/DataIntegrationSettings.php @@ -0,0 +1,25 @@ +migrator->rename('influxdb.v2_enabled', 'dataintegration.influxdb_v2_enabled'); + $this->migrator->rename('influxdb.v2_url', 'dataintegration.influxdb_v2_url'); + $this->migrator->rename('influxdb.v2_org', 'dataintegration.influxdb_v2_org'); + $this->migrator->rename('influxdb.v2_bucket', 'dataintegration.influxdb_v2_bucket'); + $this->migrator->rename('influxdb.v2_token', 'dataintegration.influxdb_v2_token'); + $this->migrator->rename('influxdb.v2_verify_ssl', 'dataintegration.influxdb_v2_verify_ssl'); + } +}