# WCDB

> WeChat's cross-platform mobile database framework on SQLite

Source: https://talira.ai/catalog/wcdb-w67kjrkk
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Database
- Categories: [databases / embedded](https://talira.ai/categories/databases/embedded), [libraries / databases / orm](https://talira.ai/categories/libraries/databases/orm)
- Platforms: ios, macos, android, windows, linux[^2]
- Licence: BSD-3-Clause[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Tencent](https://talira.ai/orgs/tencent.md)

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.

## Links

- GitHub: https://github.com/Tencent/wcdb
- Docs: https://github.com/Tencent/wcdb/wiki

## 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

## Trust

Overall: 0.49 out of 1.
Signals: maintenance 0.46, adoption 0.81, momentum 0.61, community 0.65, backing 0.30, extensibility 0.00.

- last commit 53 days ago
- 1 commits in the last 90 days
- latest release v2.1.16 8 months ago
- 11.7k GitHub stars
- 40 contributors
- backed by Tencent

## Alternatives

- [Realm](https://talira.ai/catalog/realm-rbjz5m12.md): Open source object database that runs inside mobile apps

## Sources

[^1]: https://github.com/Tencent/wcdb/blob/master/LICENSE (checked 27 Nov 2026)
[^2]: https://github.com/Tencent/wcdb/blob/master/README.md (checked 27 Nov 2026)
