Skip to content
项目

关于

@ospfranco 开发的最快 React Native SQLite 库

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
+2
15天
+4
1个月
+8

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

benchmark_ios benchmark_android

Created by @ospfranco. Please consider sponsoring!.

OP-SQLite has grown large to cover a lot of plugins, sqlite versions and APIs. Please read the full documentation before opening an issue.

Open the docs

Join the Discord:

https://discord.gg/W9XmqCQCKP

Some of the big supported features:

  • iOS, Android, macOS and web support
  • Vanilla sqlite
  • Turso is supported as a compilation target
  • Libsql is supported as a compilation target
  • SQLCipher is supported as a compilation target
  • FTS5 plugin
  • Rtree plugin
  • sqlite-vec plugin
  • Reactive queries
  • Custom tokenizers
  • Load runtime extensions
  • JSONB support
  • Native query interruption via db.interrupt()

It also contains a simple Key-Value store you can use without adding one more dependency to your app.

Custom tokenizers

  1. Add "tokenizers": ["your_tokenizer"] to the "op-sqlite" config in your app's package.json.
  2. Run npx react-native config from your app's folder. It creates c_sources/tokenizers.h.
  3. Write your implementation in c_sources/tokenizers.cpp and commit the c_sources folder.

Run the command again whenever you change "tokenizers". See the tokenizers docs for the details.

License

MIT License.

探索相关项目

加载中…