daravel_sqlite 1.8.1
daravel_sqlite: ^1.8.1 copied to clipboard
SQLite driver for Daravel. Depend on it to choose SQLite explicitly; in Daravel 2.0 the driver lives only here.
daravel_sqlite #
SQLite driver for Daravel.
dart pub add daravel_sqlite # or: dart run bin/dartisan.dart db:install sqlite
// bootstrap/app.dart
import 'package:daravel_sqlite/daravel_sqlite.dart';
Application createApp() => Application.configure(basePath: '.')
.withSqlite()
// ...
.create();
DB_CONNECTION=sqlite
DB_DATABASE=database/database.sqlite # or :memory: for tests
Why a package for a driver Daravel already has #
Through Daravel 1.x, the SQLite driver is built into package:daravel.
This package re-exports it, so adding it changes nothing at runtime.
package:daravel_mysql already works this way for MySQL and MariaDB.
In Daravel 2.0 the core no longer depends on any database client, and the
driver lives only here. Projects that depend on daravel_sqlite and call
.withSqlite() keep working without changes. They also no longer
build or ship the clients of databases they do not use.
Documentation: https://github.com/daravel-dev/daravel/blob/main/docs/guide/database.md.
License and trademarks #
MIT. "Laravel" is a trademark of Laravel Holdings Inc.; "Dart" is a trademark of Google LLC; SQLite is in the public domain. Daravel is an independent project, not affiliated with or endorsed by any of them.