Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## 0.2.0 (unreleased)
## 0.2.0

- Update PowerSync SQLite core extension to 0.5.4 ([release notes](https://github.com/powersync-ja/powersync-sqlite-core/releases/tag/v0.5.4)).
- Support [direct tables](https://docs.powersync.com/client-sdks/advanced/performance-optimization#direct-tables).
- Support [direct tables](https://docs.powersync.com/client-sdks/advanced/performance-optimization#managed-views-vs-managed-tables).
- __Breaking__: Split `BackendConnector` trait into `Authenticator` and `MutationUploader`.
- `Authenticator` is allowed to cache tokens now, and is informed when a token has expired.
- Add `SyncOptions::download_only` and `SyncOptions::upload_only` for unidirectional sync.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion powersync/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "powersync"
version = "0.1.1"
version = "0.2.0"

edition = "2024"
license = "Apache-2.0"
Expand Down
14 changes: 8 additions & 6 deletions powersync/src/db/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,18 +77,20 @@ pub struct Table {
pub indexes: Vec<Index>,
#[serde(flatten)]
pub options: TableOptions,
/// Marks this table as direct, meaning that it stores data directly as SQLite rows instead of
/// using an intermediate view around a JSON store.
/// Marks this table as a direct, managed table.
///
/// Direct tables are still managed by the PowerSync SDK, which is responsible for creating,
/// altering and dropping them.
/// Enabling this flag makes PowerSync store data directly as SQLite rows instead of using an
/// intermediate view around a JSON store.
///
/// The table is still managed by the PowerSync SDK, which is responsible for creating, altering
/// and dropping them.
/// You can query raw tables like JSON-based tables, and mutations are consistently tracked as
/// pending uploads.
/// For more information on direct tables, see [the documentation](https://docs.powersync.com/client-sdks/advanced/performance-optimization#direct-tables).
/// For more information on managed tables, see [the documentation](https://docs.powersync.com/client-sdks/advanced/performance-optimization#managed-views-vs-managed-tables).
///
/// Direct tables can't use a view name override.
///
/// Direct tables are currently experimental.
/// Direct tables are currently in alpha.
pub direct: bool,
}

Expand Down
Loading