feat: implement boris

This commit is contained in:
Rico
2026-03-02 00:04:01 +01:00
parent ff81bc43bb
commit 016abb1ea3
9 changed files with 205 additions and 20 deletions

View File

@@ -1,5 +1,7 @@
<?php
use Pdo\Mysql;
return [
'default' => env('DB_CONNECTION', 'mysql'),
@@ -25,10 +27,10 @@ return [
'prefix_indexes' => true,
'strict' => true,
'engine' => null,
'options' => extension_loaded('pdo_mysql') ? [
'options' => extension_loaded('pdo_mysql') ? array_filter([
PDO::ATTR_TIMEOUT => 15,
PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true,
] : [],
class_exists(Mysql::class) ? Mysql::ATTR_USE_BUFFERED_QUERY : PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true,
], static fn ($value) => $value !== null) : [],
'sticky' => true,
],
],

View File

@@ -13,4 +13,9 @@ return [
'api_key' => env('LMI_API_KEY'),
],
'boris' => [
'url' => env('BORIS_URL', 'https://boris.heimerdinger.lol'),
'api_key' => env('BORIS_API_KEY'),
],
];