@electric-sql/y-electric 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Y-Electric
|
|
2
2
|
|
|
3
|
-
A [
|
|
3
|
+
A [Yjs](https://yjs.dev) [provider](https://docs.yjs.dev/ecosystem/connection-provider) that enables real-time collaborative document editing using YJS, ElectricSQL and Postgres. It supports [Awareness](https://docs.yjs.dev/getting-started/adding-awareness) and can be used with any Yjs [database](https://docs.yjs.dev/ecosystem/database-provider) providers. See a full example [here](https://github.com/electric-sql/electric/tree/main/examples/yjs).
|
|
4
4
|
|
|
5
5
|
## How It Works
|
|
6
6
|
|
|
@@ -63,7 +63,7 @@ Y-Electric sends YJS document updates as binary data. You can directly save the
|
|
|
63
63
|
|
|
64
64
|
```sql
|
|
65
65
|
-- Schema definition
|
|
66
|
-
CREATE TABLE ydoc_updates
|
|
66
|
+
CREATE TABLE ydoc_updates(
|
|
67
67
|
id uuid DEFAULT uuid_generate_v4() PRIMARY KEY,
|
|
68
68
|
room text NOT NULL,
|
|
69
69
|
op bytea NOT NULL
|