You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/powersync_attachments_helper/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@
10
10
>
11
11
> The `powersync_core/attachments` library is in alpha and brings improved APIs and functionality that is more in line with our other SDKs, such as the ability to write your own local storage implementation.
12
12
>
13
-
> Check out the [docs here](/packages/powersync_core/doc/attachments.md) to get started.
13
+
> Check out the [docs here](https://pub.dev/documentation/powersync_core/latest/topics/attachments-topic.html) to get started.
14
14
>
15
15
> While the `powersync_attachments_helper` package will still get bug fixes if you need them,
16
16
> new features will only be developed on `powersync_core/attachments`.
Copy file name to clipboardExpand all lines: packages/powersync_core/doc/attachments.md
+13-3Lines changed: 13 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,16 +5,26 @@ PowerSync.
5
5
Embedding this data directly in your source databases is [inefficient and not recommended](https://docs.powersync.com/usage/use-case-examples/attachments).
6
6
7
7
Instead, the PowerSync SDK for Dart and Flutter provides utilities you can use to _reference_ this binary data
8
-
in your local database, and then download it from a secondary data store such as Supabase Storage or S3.
8
+
in your regular database schema, and then download it from a secondary data store such as Supabase Storage or S3.
9
9
Because binary data is not directly stored in the source database in this model, we call these files _attachments_.
10
10
11
+
12
+
> [!NOTE]
13
+
> These attachment utilities are recommended over our legacy [PowerSync Attachments Helper](https://pub.dev/packages/powersync_attachments_helper) package. The new utilities provide cleaner APIs that are more aligned with similar helpers in our other SDKs, and include improved features such as:
14
+
> - Support for writing your own local storage implementation
15
+
> - Support for dynamic nested directories and custom per-attachment file extensions out of the box
16
+
> - Ability to add optional `metaData` to attachments
17
+
> - No longer depends on `dart:io`
18
+
>
19
+
> If you are new to handling attachments, we recommend starting with these utilities. If you currently use the legacy `powersync_attachments_helper` package, a fairly simple migration would be to adopt the new utilities with a different table name and drop the legacy package. This means existing attachments are lost, but they should be downloaded again.
20
+
11
21
## Alpha release
12
22
13
-
The attachment helpers described in this document are currently in an alpha state, intended for testing.
23
+
The attachment utilities described in this document are currently in an alpha state, intended for testing.
14
24
Expect breaking changes and instability as development continues.
15
25
The attachments API is marked as `@experimental` for this reason.
16
26
17
-
Do not rely on these libraries for production use.
27
+
Do not rely on these utilities for production use.
0 commit comments