wcdb

WCDB is a cross-platform database framework developed by WeChat.

What is wcdb?

WCDB is a cross-platform database framework developed by WeChat.

Overview of wcdb

What it is

WCDB is a cross-platform mobile database framework developed by WeChat. It is based on SQLite and SQLCipher and supports five languages: C++, Java, Kotlin, Swift, and Objective-C.

Key features

  • ORM (Object Relational Mapping): Provides a flexible ORM for creating tables, indices, constraints, and CRUD operations through objects.
  • WINQ (WCDB language integrated query): A native data querying capability that eliminates the need to concatenate SQL query strings.
  • Multi-threaded concurrency: Supports concurrent read-read and read-write access via connection pooling.
  • Encryption support: Database encryption via SQLCipher.
  • Corruption recovery: Built-in repair kit for database corruption recovery.
  • Anti-injection: Built-in protection from SQL injection.
  • Full-text search: Easy-to-use full-text search interface with tokenizers for multiple languages.
  • Data Migration: Supports migrating data from one database to another with simple configuration.
  • Data Compression: Supports compressing content via Zstd within specific fields of a database table.

Use cases

WCDB is used in the WeChat application. It is suitable for mobile database development requiring efficient, complete, and easy-to-use database operations, including encryption, corruption recovery, full-text search, data migration, and data compression.

Getting started

See the repository README for detailed building and installation instructions for each language (C++, Java/Kotlin, Swift, Objc).

License and pricing

The license is not stated.

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/tencentwcdb.svg)](https://yunodb.com/tools/tencentwcdb?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/tencentwcdb?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/tencentwcdb.svg" alt="Featured on YunoDB" height="20"></a>