Skip to content

Commit 6c08d5a

Browse files
authored
Update README.md (JaylyDev#161)
* Update README.md * Update README.md
1 parent 3c8d2da commit 6c08d5a

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

scripts/simple-db/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,25 @@
11
# simple-db
22

33
## Description
4+
A Simple DB For Minecraft 1.19.70
45

6+
Here is a example
7+
```javascript
8+
import { Database } from "index.js";
9+
10+
let db = new Database("name")
11+
12+
db.new("id","val")// this will save the value "val" with identifier "id".
13+
14+
db.get("id") //this should return "val"
15+
16+
db.set("id","val2") //this will change the value of identifier "id" with value "val2".
17+
18+
db.getAll() //this should return String array containing all identifiers , but in this example we will only get "["id"]" as a result. The different the db different the result
19+
20+
db.del("id") //this will delete identifier "id" along with value "val2".
21+
22+
```
523

624
## Credits
725
These scripts were written by GamerFile on Bedrock Add-ons

0 commit comments

Comments
 (0)