Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ db.insert("books",
)
```

##getOne(table, fields[], condition[], order[], limit[])
##getAll(table, fields[], condition[], order[], limit[])
##getOne(table, fields[], where[], order[], limit[])
##getAll(table, fields[], where[], order[], limit[])
Get a single record or multiple records from a table given a condition (or no condition). The resultant rows are returned as namedtuples. getOne() returns a single namedtuple, and getAll() returns a list of namedtuples.

```python
Expand Down Expand Up @@ -136,4 +136,4 @@ db.query("DELETE FROM books WHERE year > 2005")
```

# commit()
Insert, update, and delete operations on transactional databases such as innoDB need to be committed
Insert, update, and delete operations on transactional databases such as innoDB need to be committed