mirror of
https://github.com/RGBCube/JsonWrapper
synced 2025-07-27 11:47:45 +00:00
Update README.md
This commit is contained in:
parent
0f182fa45a
commit
83c047ec16
1 changed files with 4 additions and 3 deletions
|
@ -23,7 +23,7 @@ Deletes everything in the JSON.
|
||||||
|
|
||||||
Use with caution.
|
Use with caution.
|
||||||
# Examples
|
# Examples
|
||||||
# `db.set("test", 123)`
|
## `db.set("test", 123)`
|
||||||
Code
|
Code
|
||||||
```python
|
```python
|
||||||
from db import ClutterDB
|
from db import ClutterDB
|
||||||
|
@ -38,7 +38,7 @@ print(data)
|
||||||
```
|
```
|
||||||
Output
|
Output
|
||||||
`{'test': 123}`
|
`{'test': 123}`
|
||||||
# `db.rem("test")`
|
## `db.rem("test")`
|
||||||
Code
|
Code
|
||||||
```python
|
```python
|
||||||
from db import ClutterDB
|
from db import ClutterDB
|
||||||
|
@ -55,7 +55,8 @@ db.rem("test")
|
||||||
|
|
||||||
data = db.all()
|
data = db.all()
|
||||||
|
|
||||||
print(data)```
|
print(data)
|
||||||
|
```
|
||||||
Output
|
Output
|
||||||
`{'test': 123}
|
`{'test': 123}
|
||||||
{}`
|
{}`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue