Skip to main content

daravel_sqlite 1.9.0 copy "daravel_sqlite: ^1.9.0" to clipboard
daravel_sqlite: ^1.9.0 copied to clipboard

SQLite driver for Daravel. Depend on it to choose SQLite explicitly; in Daravel 2.0 the driver lives only here.

Daravel

daravel_sqlite #

English · Bahasa Indonesia

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.

0
likes
0
points
0
downloads

Documentation

Documentation

Publisher

verified publisherframework.daravel.dev

Weekly Downloads

SQLite driver for Daravel. Depend on it to choose SQLite explicitly; in Daravel 2.0 the driver lives only here.

Homepage
Repository (GitHub)
View/report issues

Topics

#sqlite #database #server #backend

License

unknown (license)

Dependencies

daravel

More

Packages that depend on daravel_sqlite