Skip to content

Commit bd84592

Browse files
committed
bump version and update readme
1 parent d4e3382 commit bd84592

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ Check out [wrangler.toml from examples](https://github.com/good-lly/lowstorage/b
8383
8484
## API
8585

86+
**collection(colName)**
87+
88+
- **Input**: A string representing the name of the collection.
89+
- **Behavior**: Creates or accesses a collection with the given name.
90+
- **Returns**: An instance of the Collection class corresponding to the specified collection name.
91+
8692
- **insert(doc)**
8793

8894
- **Input**: A single object or an array of objects.
@@ -129,6 +135,11 @@ Check out [wrangler.toml from examples](https://github.com/good-lly/lowstorage/b
129135
- **Behavior**: Counts the number of documents that match the query. If no query is provided, it counts all documents in the collection.
130136
- **Returns**: A promise that resolves to the count of matching documents.
131137

138+
**listCollections()**
139+
140+
- **Behavior**: Lists all collections stored in the Cloudflare R2 bucket associated with the lowstorage instance. (All files ending with .json)
141+
- **Returns**: A promise that resolves to an array of collection names.
142+
132143
## Examples
133144

134145
Check out [dummy examples](https://github.com/good-lly/lowstorage/tree/master/examples)

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lowstorage",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"description": "Zero-dependency, simple pseudo-database on Cloudflare R2, inspired by lowdb.",
55
"keywords": [
66
"storage",

0 commit comments

Comments
 (0)