powersync_core

Crates.iopowersync_core
lib.rspowersync_core
version0.4.10
created_at2025-11-06 11:01:31.669499+00
updated_at2025-12-04 12:54:17.34901+00
descriptionThe PowerSync SQLite extension
homepagehttps://powersync.com
repositoryhttps://github.com/powersync-ja/powersync-sqlite-core
max_upload_size
id1919446
size348,653
Ralf Kistner (rkistner)

documentation

README

PowerSync is a sync engine for building local-first apps with instantly-responsive UI/UX and simplified state transfer. Syncs between SQLite on the client-side and Postgres, MongoDB or MySQL on the server-side.

powersync_core

This is the core SQLite extension, containing all the logic. This is used internally by PowerSync SDKs, and would typically not be used by users directly.

The role of the extension is to create user-defined functions that higher-level SDKs would use to implement schema management and a PowerSync client. Not all of this is documented, but this directory provides some hints on how a custom PowerSync SDK could be implemented.

For this reason, the crate doesn't have much of a public API. In the default build mode, it doesn't expect SQLite to be linked and exposes a single function: sqlite3_powersync_init, a loadable extension entrypoint.

For applications linking SQLite, the static feature of this crate can be enabled. With that feature, powersync_init_static() can be called to load the extension for all new connections. The application is responsible for linking SQLite in that case.

Commit count: 0

cargo fmt