Skip to content

Commit 3d31de8

Browse files
committed
More polish
1 parent 7f68092 commit 3d31de8

File tree

4 files changed

+17
-7
lines changed

4 files changed

+17
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ _Bad connectivity is everywhere, and we're tired of it. PowerSync is on a missio
2929

3030
## Demo Apps / Example Projects
3131

32-
Demo applications are located in the [`demos/`](./demos/) directory. Also see our [Demo Apps / Example Projects gallery](https://docs.powersync.com/resources/demo-apps-example-projects), which lists all projects by the backend and client-side framework they use.
32+
Demo applications are located in the [`demos/`](./demos/) directory. Also see our [Demo Apps / Example Projects](https://docs.powersync.com/resources/demo-apps-example-projects) gallery which lists all projects by the backend and client-side framework they use.
3333

3434
- [demos/nextjs-supabase-todolist](./demos/nextjs-supabase-todolist/): A Next.js to-do list example app using the PowerSync Web SDK and a Supabase backend.
3535
- [demos/yjs-nextjs-supabase-text-collab](./demos/yjs-nextjs-supabase-text-collab/README.md): A Next.js real-time text editing collaboration example app powered by [Yjs](https://github.com/yjs/yjs) CRDTs and [Tiptap](https://tiptap.dev/), using the PowerSync Web SDK and a Supabase backend.

packages/powersync-sdk-common/src/db/DBAdapter.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,14 @@ export interface DBGetUtils {
4242
}
4343

4444
export interface LockContext extends DBGetUtils {
45-
/** Execute a statement and optionally return results. */
45+
/** Execute a single write statement. */
4646
execute: (query: string, params?: any[] | undefined) => Promise<QueryResult>;
4747
}
4848

4949
export interface Transaction extends LockContext {
50+
/** Commit multiple changes to the local DB using the Transaction context. */
5051
commit: () => Promise<QueryResult>;
52+
/** Roll back multiple attempted changes using the Transaction context. */
5153
rollback: () => Promise<QueryResult>;
5254
}
5355

packages/powersync-sdk-react-native/README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
[PowerSync](https://powersync.com) is a service and set of SDKs that keeps Postgres databases in sync with on-device SQLite databases.
88

9-
This package ([packages/powersync-sdk-react-native](./packages/powersync-sdk-react-native/README.md)) is the PowerSync SDK for React Native clients. It is an extension of `packages/powersync-sdk-common`.
9+
This package (`packages/powersync-sdk-react-native`) is the PowerSync SDK for React Native clients. It is an extension of `packages/powersync-sdk-common`.
1010

1111
See a summary of features [here](https://docs.powersync.co/client-sdk-references/react-native-and-expo).
1212

@@ -90,7 +90,7 @@ Add the Babel plugin to your `babel.config.js` file
9090

9191
# Native Projects
9292

93-
This package uses native libraries. Create native Android and iOS projects (if not created already) with
93+
This package uses native libraries. Create native Android and iOS projects (if not created already) by running:
9494

9595
```bash
9696
npx expo run:android
@@ -106,9 +106,13 @@ Our [SDK reference](https://docs.powersync.com/client-sdk-references/react-nativ
106106

107107
A changelog for this SDK is available [here](https://releases.powersync.com/announcements/react-native-client-sdk).
108108

109+
# API Reference
110+
111+
The full API reference for this SDK can be found [here](https://powersync-ja.github.io/powersync-js/react-native-sdk).
112+
109113
# Examples
110114

111-
For example projects built with PowerSync and React Native, see our [Demo Apps / Example Projects](https://docs.powersync.com/resources/demo-apps-example-projects#react-native-and-expo) gallery.
115+
For example projects built with PowerSync and React Native, see our [Demo Apps / Example Projects](https://docs.powersync.com/resources/demo-apps-example-projects#react-native-and-expo) gallery. Most of these projects can also be found in the [`demos/`](../demos/) directory.
112116

113117
# Found a bug or need help?
114118

packages/powersync-sdk-web/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
[PowerSync](https://powersync.com) is a service and set of SDKs that keeps Postgres databases in sync with on-device SQLite databases.
88

9-
This package ([packages/powersync-sdk-web](./packages/powersync-sdk-web/README.md)) is the PowerSync SDK for JavaScript Web clients. It is an extension of `packages/powersync-sdk-common`.
9+
This package (`packages/powersync-sdk-web`) is the PowerSync SDK for JavaScript Web clients. It is an extension of `packages/powersync-sdk-common`.
1010

1111
See a summary of features [here](https://docs.powersync.com/client-sdk-references/js-web).
1212

@@ -40,9 +40,13 @@ Our [full SDK reference](https://docs.powersync.com/client-sdk-references/js-web
4040

4141
A changelog for this SDK is available [here](https://releases.powersync.com/announcements/powersync-js-web-client-sdk).
4242

43+
# API Reference
44+
45+
The full API reference for this SDK can be found [here](https://powersync-ja.github.io/powersync-js/web-sdk).
46+
4347
# Examples
4448

45-
For example projects built with PowerSync on Web, see our [Demo Apps / Example Projects](https://docs.powersync.com/resources/demo-apps-example-projects#js-web) gallery.
49+
For example projects built with PowerSync on Web, see our [Demo Apps / Example Projects](https://docs.powersync.com/resources/demo-apps-example-projects#js-web) gallery. Most of these projects can also be found in the [`demos/`](../demos/) directory.
4650

4751
# Found a bug or need help?
4852

0 commit comments

Comments
 (0)