richan-fongdasen / turso-laravel Goto Github PK
View Code? Open in Web Editor NEWA Turso/LibSQL database driver for Laravel application
License: MIT License
A Turso/LibSQL database driver for Laravel application
License: MIT License
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
run the migration script also with a fresh install of your cms project
I dont know
8.3
11
No response
No response
Blob storage doesn't work:
GuzzleHttp\Exception\InvalidArgumentException: json_encode error: Malformed UTF-8 characters, possibly incorrectly encoded
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);
0.6
8.3
11.0
macOS
No response
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}"
Create a database/schema/turso-schema.sql
file with a simple CREATE TABLE statement.
Run artisan migrate:fresh
with Turso as the database driver.
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.
0.7.0
8.3
11.6.0
Linux
No response
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.