talira

WeChat's cross-platform mobile database framework on SQLite

open sourceBSD-3-Clausefree

WCDB is the mobile database framework WeChat uses, built on SQLite and SQLCipher with interfaces in C++, Java, Kotlin, Swift and Objective-C that share one core. It offers an ORM for tables, indexes and CRUD through native objects, and WINQ, a language-integrated query API that replaces concatenated SQL strings. It adds concurrent reads and writes through connection pooling, encryption through SQLCipher, a built-in repair kit for corrupted databases, protection from SQL injection, model upgrades bound to class definitions, full-text search with tokenizers for several languages, data migration and Zstd field compression.

Problems it solves

  • an encrypted SQLite database for my iOS and Android app with an ORM
  • recover a corrupted SQLite database in a mobile app
  • query SQLite from Swift without building SQL strings by hand

Features

  • ORM for C++, Java, Kotlin, Swift and Objective-C
  • WINQ language-integrated queries
  • concurrent reads and writes with connection pooling
  • SQLCipher encryption
  • corruption repair kit
  • full-text search with multilingual tokenizers
  • data migration and Zstd field compression

Alternatives

The same job

These do what WCDB does.

  1. Realm Open source object database that runs inside mobile apps

Compare WCDB with the top 3