https://github.com/simolus3/sqlite3.dart
sqlite3 bindings for Dart
https://github.com/simolus3/sqlite3.dart
Last synced: 2 months ago
JSON representation
sqlite3 bindings for Dart
- Host: GitHub
- URL: https://github.com/simolus3/sqlite3.dart
- Owner: simolus3
- License: mit
- Created: 2020-07-06T17:37:36.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2025-04-29T07:51:00.000Z (about 1 year ago)
- Last Synced: 2025-04-29T08:26:22.042Z (about 1 year ago)
- Language: Dart
- Size: 1.94 MB
- Stars: 241
- Watchers: 8
- Forks: 94
- Open Issues: 43
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sqlite3.dart
> [!TIP]
> This branch contains sources for version 3 of `package:sqlite3`, a major update
> relying on build hooks and code assets to load SQLite.
> Version 2 of `package:sqlite` will continue to be supported and updated until early 2026.
> See the [v2](https://github.com/simolus3/sqlite3.dart/tree/v2) branch for those sources, and
> [these notes](./UPGRADING_TO_V3.md) for details on how to upgrade.
This project contains Dart packages to use SQLite from Dart via `dart:ffi`.
The main package in this repository is [`sqlite3`](sqlite3), which contains all the Dart apis and their implementation.
`package:sqlite3` is a pure-Dart package without a dependency on Flutter.
It can be used both in Flutter apps or in standalone Dart applications.
`package:sqlite3_test` contains utilities that make integrating SQLite databases into Dart tests easier.
In particular, they patch `CURRENT_TIMESTAMP` and related constructs to return the (potentially faked) time
returned by `package:clock`.
`package:sqlite3_web` contains helpers for running SQLite on the web, including code to compile web workers
that help with the process.
`package:sqlite3_connection_pool` provides an asynchronous connection pool for SQLite that works well across
isolates.
## Example Usage
A file with basic usage examples for pure Dart can be found [here](sqlite3/example/main.dart).