Code Monkey home page Code Monkey logo

turso-laravel's Issues

[Bug]: Protocol "libsql" not supported

What happened?

I try to run the migration, but there comes the following error:

cURL error 1: Protocol "libsql" not supported (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for libsql://xxx-yyy.turso.io/v3/pipeline (Connection: turso, SQL: select name from sqlite_master where type = 'table' and name not like 'sqlite_%' order by name)

Do you have any ideas?

Besides that, this Project is so awesome, thank you very much

How to reproduce the bug

run the migration script also with a fresh install of your cms project

Package Version

I dont know

PHP Version

8.3

Laravel Version

11

Which operating systems does with happen with?

No response

Notes

No response

[Bug]: Blob data storage not working

What happened?

Blob storage doesn't work:
GuzzleHttp\Exception\InvalidArgumentException: json_encode error: Malformed UTF-8 characters, possibly incorrectly encoded

How to reproduce the bug

Schema::create('blob', function (\Illuminate\Database\Schema\Blueprint $table) {
    $table->binary('blob');
});

$data = random_bytes(50);
$result = DB::table('blob')->insert([
    'blob' => $data,
]);

$newData = DB::table('blob')->first();

expect($result)->toBeTrue()
    ->and(DB::table('blob')->count())->toBe(1)
    ->and($newData->blob)->toBe($data);

Package Version

0.6

PHP Version

8.3

Laravel Version

11.0

Which operating systems does with happen with?

macOS

Notes

No response

[Bug]: Migrate from sql dump file fails (Laravel squashed migration import)

What happened?

I tried testing importing from an sql dump using Laravel's squash migrations feature.
https://laravel.com/docs/11.x/migrations#squashing-migrations

I get this error:

   Symfony\Component\Process\Exception\InvalidArgumentException 

  Command line is missing a value for parameter "LARAVEL_LOAD_DATABASE": sqlite3 "${:LARAVEL_LOAD_DATABASE}" < "${:LARAVEL_LOAD_PATH}"

How to reproduce the bug

Create a database/schema/turso-schema.sql file with a simple CREATE TABLE statement.
Run artisan migrate:fresh with Turso as the database driver.

Output from php artisan migrate:fresh

  Dropping all tables ..................................................................................................................... 10s DONE

   INFO  Preparing database.  

  Creating migration table ........................................................................................................... 136.16ms DONE

   INFO  Loading stored database schemas.  

  database/schema/turso-schema.sql ................................................................................................... 148.70ms FAIL

   Symfony\Component\Process\Exception\InvalidArgumentException 

  Command line is missing a value for parameter "LARAVEL_LOAD_DATABASE": sqlite3 "${:LARAVEL_LOAD_DATABASE}" < "${:LARAVEL_LOAD_PATH}"

  at vendor/symfony/process/Process.php:1585
    1581▕     private function replacePlaceholders(string $commandline, array $env): string
    1582▕     {
    1583▕         return preg_replace_callback('/"\$\{:([_a-zA-Z]++[_a-zA-Z0-9]*+)\}"/', function ($matches) use ($commandline, $env) {
    1584▕             if (!isset($env[$matches[1]]) || false === $env[$matches[1]]) {
  ➜ 1585▕                 throw new InvalidArgumentException(sprintf('Command line is missing a value for parameter "%s": ', $matches[1]).$commandline);
    1586▕             }
    1587▕ 
    1588▕             return $this->escapeArgument($env[$matches[1]]);
    1589▕         }, $commandline);

  1   [internal]:0
      Symfony\Component\Process\Process::Symfony\Component\Process\{closure}()
      +37 vendor frames 

  39  artisan:35
      Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

 ELIFECYCLE  Command failed with exit code 1.

Package Version

0.7.0

PHP Version

8.3

Laravel Version

11.6.0

Which operating systems does with happen with?

Linux

Notes

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.