whatisgithub

What is sqlbrite?

square/sqlbrite — explained in plain English

Analysis updated 2026-06-26

4,531JavaAudience · developerComplexity · 2/5Setup · moderate

In one sentence

A lightweight Android library (now archived) that wraps SQLite with RxJava so your app automatically refreshes UI whenever the database changes, instead of manually polling for updates.

Mindmap

mindmap
  root((SQLBrite))
    What it does
      Reactive SQLite queries
      Auto-refresh on change
      Transaction batching
    Tech Stack
      Java
      Android
      RxJava
      SQLite
    Limitations
      No ORM
      No migrations
      Archived project
    Alternatives
      SQLDelight
      Copper library
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Subscribe to a database query so your Android UI automatically updates whenever the underlying table changes.

USE CASE 2

Batch multiple database writes in a transaction and notify subscribers only once when the batch completes.

USE CASE 3

Learn how reactive programming patterns can be applied to Android SQLite database access.

What is it built with?

JavaAndroidRxJavaSQLite

How does it compare?

square/sqlbritejavagrowing/jgrowingphishman3579/java-algorithms-implementation
Stars4,5314,5314,532
LanguageJavaJavaJava
Setup difficultymoderateeasyeasy
Complexity2/51/52/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires RxJava and Android SDK, library is archived, new projects should use SQLDelight instead.

No license information was mentioned in the explanation.

So what is it?

SQL Brite was a Java library for Android that made it easier to work with SQLite databases in a reactive way. The core idea was that instead of manually querying the database every time you needed fresh data, you could subscribe to a query and automatically receive a new result whenever the underlying table changed. This removed the need to manually track when to refresh UI or other components after a write operation. The library wrapped Android's standard SQLite helper with a thin layer that connected it to RxJava, a popular framework for reactive programming. When you ran a query through SQL Brite, you got back an observable stream rather than a one-time result. Any insert, update, or delete made through the same SQL Brite database object would automatically trigger a new emission on any active query subscriptions watching the affected tables. To avoid flooding subscribers with rapid-fire updates during bulk operations, the library supported transactions. Grouping multiple writes inside a transaction meant subscribers received only one notification when the whole batch completed, rather than one per write. SQL Brite was intentionally narrow in scope. It handled only the notification and coordination layer. It was not an ORM, did not generate type-safe queries, and did not handle database migrations. The library is no longer actively maintained and is considered complete. The README directs users who want its database features to SQLDelight, which is a more full-featured successor. For watching Android content providers specifically, the README points to a separate library called Copper.

Copy-paste prompts

Prompt 1
Show me how to set up SQLBrite in an Android app and subscribe to a query so the UI auto-refreshes when the database table changes.
Prompt 2
How do I wrap multiple SQLBrite writes in a transaction so subscribers only receive one update notification instead of one per write?
Prompt 3
I'm migrating from SQLBrite to SQLDelight. What are the main conceptual differences and how does SQLDelight replace the reactive query subscription pattern?
Prompt 4
Walk me through how SQLBrite connects Android's SQLiteOpenHelper to RxJava observables under the hood.
Prompt 5
What are the limitations of SQLBrite compared to a full ORM, and when would I still choose it over Room or SQLDelight?

Frequently asked questions

What is sqlbrite?

A lightweight Android library (now archived) that wraps SQLite with RxJava so your app automatically refreshes UI whenever the database changes, instead of manually polling for updates.

What language is sqlbrite written in?

Mainly Java. The stack also includes Java, Android, RxJava.

What license does sqlbrite use?

No license information was mentioned in the explanation.

How hard is sqlbrite to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is sqlbrite for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.