| Crates.io | powersync_core |
| lib.rs | powersync_core |
| version | 0.4.10 |
| created_at | 2025-11-06 11:01:31.669499+00 |
| updated_at | 2025-12-04 12:54:17.34901+00 |
| description | The PowerSync SQLite extension |
| homepage | https://powersync.com |
| repository | https://github.com/powersync-ja/powersync-sqlite-core |
| max_upload_size | |
| id | 1919446 |
| size | 348,653 |
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.
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.