Skip to content

Commit

Permalink
Merge branch 'master' of github.com:renoki-co/laravel-d1
Browse files Browse the repository at this point in the history
  • Loading branch information
rennokki committed Oct 2, 2023
2 parents 7795919 + 2390b09 commit 0627d70
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![CI](https://github.com/renoki-co/l1/workflows/CI/badge.svg?branch=master)
[![codecov](https://codecov.io/gh/renoki-co/l1/branch/master/graph/badge.svg)](https://codecov.io/gh/renoki-co/l1/branch/master)
[![StyleCI](https://github.styleci.io/repos/:styleci_code/shield?branch=master)](https://github.styleci.io/repos/:styleci_code)
[![StyleCI](https://github.styleci.io/repos/651202208/shield?branch=master)](https://github.styleci.io/repos/651202208)
[![Latest Stable Version](https://poser.pugx.org/renoki-co/l1/v/stable)](https://packagist.org/packages/renoki-co/l1)
[![Total Downloads](https://poser.pugx.org/renoki-co/l1/downloads)](https://packagist.org/packages/renoki-co/l1)
[![Monthly Downloads](https://poser.pugx.org/renoki-co/l1/d/monthly)](https://packagist.org/packages/renoki-co/l1)
Expand Down
2 changes: 1 addition & 1 deletion src/CloudflareRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace RenokiCo\L1;

use Saloon\Http\Request;
use Saloon\Contracts\Connector;
use Saloon\Http\Request;

abstract class CloudflareRequest extends Request
{
Expand Down
2 changes: 1 addition & 1 deletion src/D1/D1Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace RenokiCo\L1\D1;

use Illuminate\Database\SQLiteConnection;
use RenokiCo\L1\D1\Pdo\D1Pdo;
use RenokiCo\L1\CloudflareD1Connector;
use RenokiCo\L1\D1\Pdo\D1Pdo;

class D1Connection extends SQLiteConnection
{
Expand Down
2 changes: 1 addition & 1 deletion src/D1/D1SchemaGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace RenokiCo\L1\D1;

use Illuminate\Support\Str;
use Illuminate\Database\Schema\Grammars\SQLiteGrammar;
use Illuminate\Support\Str;

class D1SchemaGrammar extends SQLiteGrammar
{
Expand Down
1 change: 0 additions & 1 deletion src/D1/Pdo/D1Pdo.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use PDO;
use PDOStatement;
use RenokiCo\L1\D1\Pdo\D1PdoStatement;
use RenokiCo\L1\CloudflareD1Connector;

class D1Pdo extends PDO
Expand Down
3 changes: 1 addition & 2 deletions src/D1/Pdo/D1PdoStatement.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class D1PdoStatement extends PDOStatement
protected array $bindings = [];
protected array $responses = [];


public function __construct(
protected D1Pdo &$pdo,
protected string $query,
Expand Down Expand Up @@ -51,7 +50,7 @@ public function execute($params = []): bool
$this->bindings,
);

if ($response->failed() || !$response->json('success')) {
if ($response->failed() || ! $response->json('success')) {
throw new PDOException(
(string) $response->json('errors.0.message'),
(int) $response->json('errors.0.code'),
Expand Down
2 changes: 1 addition & 1 deletion src/D1/Requests/D1QueryRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace RenokiCo\L1\D1\Requests;

use Saloon\Enums\Method;
use RenokiCo\L1\CloudflareRequest;
use Saloon\Contracts\Body\HasBody;
use Saloon\Enums\Method;
use Saloon\Traits\Body\HasJsonBody;

class D1QueryRequest extends CloudflareRequest implements HasBody
Expand Down
2 changes: 0 additions & 2 deletions src/L1ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

namespace RenokiCo\L1;

use Illuminate\Support\Facades\DB;
use Illuminate\Support\ServiceProvider;
use RenokiCo\L1\CloudflareD1Connector;
use RenokiCo\L1\D1\D1Connection;

class L1ServiceProvider extends ServiceProvider
Expand Down

0 comments on commit 0627d70

Please sign in to comment.