Skip to content

Commit

Permalink
add alter table add/drop in README
Browse files Browse the repository at this point in the history
  • Loading branch information
icyveins7 committed Apr 8, 2024
1 parent d35384a commit 47750b1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,20 @@ d["mytablename"].insertOne(
)
```

## Alter Table

Altering the structure of existing table is also possible:

```python
d["mytbl"].addColumn(
["newcol1", "INTEGER"]
) # Adds a new column

d["mytbl"].dropColumn(
"unwantedCol"
) # Drops an existing column
```

## Hard Refresh of Internal Tables Structure

```python
Expand Down

0 comments on commit 47750b1

Please sign in to comment.