Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
readme updates
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldcanady committed Jun 10, 2022
1 parent 1cf3335 commit e4d8b7e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,21 @@ client, _ := gosnow.New(username, password, instance)
```
Create table instance
```golang
CSTable, _ := client.Resource("/table/TableName")
CSTable, _ := client.Table("TableName")
```
Get a table value
```golang
respose, _ := CSTable.Get(query)
query := map[string]interface{}{"field": "value"}
respose, _ := CSTable.Get(query, )
```
Update a table value
```golang
respose, _ := CSTable.Update(query)
query := map[string]interface{}{"field": "value"}
respose, _ := CSTable.Update(query, 1, 0, true, nil)
```
Delete a table value
```golang
query := map[string]interface{}{"field": "value"}
respose, _ := CSTable.Delete(query)
```
Create a table value
Expand Down

0 comments on commit e4d8b7e

Please sign in to comment.