搜索插件、代码仓与 APP 分类

插件详情v0.6.0+eol

sqlite3_flutter_libs

不再使用,请升级到 sqlite3 包的 3.x 版本

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
61.9万
喜欢数
176
Pub 分数
150

安装插件

flutter pub add sqlite3_flutter_libs

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

sqlite3_flutter_libs 是一个遗留包,为 Flutter 应用程序在多个平台(包括 Android、iOS、Web、macOS、Windows 和 Linux)上提供 SQLite 数据库支持。它旨在将 SQLite3 库集成到 Flutter 应用中,以实现持久的本地数据存储。然而,该包已不再维护,建议用户升级到该包的 3.x 版本:sqlite3,以获得更好的性能、安全性和持续支持。该包作为早期 Flutter SQLite 实现的历史参考。

适合场景

  • 旧版应用程序维护
  • 使用 SQLite 的较旧 Flutter 项目
  • 从过时的 SQLite 集成迁移

主要特点

  • 跨平台 SQLite 访问
  • 对多种操作系统的支持
  • 与旧版 Flutter 版本的兼容性

适合对象

  • 仍在依赖已弃用的 SQLite 设置的项目
  • 从旧版本迁移的开发者

使用建议

  • 不建议用于新项目
  • 已弃用且未维护
  • 需要迁移到 sqlite3 包 3.x

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

sqlite3.dart

This project contains Dart packages to use SQLite from Dart via dart:ffi.

The main package in this repository is 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.

所属分类

源码仓库

使用此插件的项目