Skip to content

Commit f69a569

Browse files
authored
Update API.md
1 parent 036128f commit f69a569

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

API.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ The function supports three overloads:
6363

6464
**Parameters:**
6565

66-
- `table_name` (TEXT): The name of the table to initialize. Can be set to `'*'` to initialize all tables in the database.
66+
- `table_name` (TEXT): The name of the table to initialize.
6767
- `crdt_algo` (TEXT, optional): The CRDT algorithm to use. Can be "cls", "dws", "aws", "gos". Defaults to "cls".
6868
- `force` (BOOLEAN, optional): If `true` (or `1`), it skips the check that prevents the use of a single-column INTEGER primary key. Defaults to `false`. It is strongly recommended to use globally unique primary keys instead of integers.
6969

@@ -78,8 +78,6 @@ SELECT cloudsync_init('my_table');
7878
-- Initialize a single table for synchronization with a different algorithm Delete-Wins Set (DWS)
7979
SELECT cloudsync_init('my_table', 'dws');
8080

81-
-- Initialize all tables for synchronization with the Causal-Length Set (CLS) Algorithm, and skip the check on single-column INTEGER primary key
82-
SELECT cloudsync_init('*', 'cls', true);
8381
```
8482

8583
---
@@ -144,7 +142,7 @@ SELECT cloudsync_is_enabled('my_table');
144142

145143
**Parameters:**
146144

147-
- `table_name` (TEXT): The name of the table to clean up. Can be set to `'*'` to clean up all synchronized tables.
145+
- `table_name` (TEXT): The name of the table to clean up.
148146

149147
**Returns:** None.
150148

@@ -154,8 +152,6 @@ SELECT cloudsync_is_enabled('my_table');
154152
-- Clean up a single table
155153
SELECT cloudsync_cleanup('my_table');
156154

157-
-- Clean up all synchronized tables
158-
SELECT cloudsync_cleanup('*');
159155
```
160156

161157
---

0 commit comments

Comments
 (0)