Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
jph00 committed Jun 4, 2024
1 parent 83489b4 commit c60e68d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

<!-- do not remove -->

## 0.0.3

### New Features

- Vendor in sqlite-utils and remove dependency ([#7](https://github.com/AnswerDotAI/fastlite/issues/7))
- Add `ids_and_rows_where` and use it to work around sqlite-utils rowid bug ([#6](https://github.com/AnswerDotAI/fastlite/issues/6))
- Add `get_last` and use it to set `last_pk` correctly and return updated row ([#5](https://github.com/AnswerDotAI/fastlite/issues/5))


## 0.0.2

### New Features
Expand Down
7 changes: 7 additions & 0 deletions fastlite/kw.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@

opt_bool = Union[bool, Default, None]

def database(path, wal=True):
path = Path(path)
path.parent.mkdir(exist_ok=True)
db = Database(path)
if wal: db.enable_wal()
return db

@patch
def xtra(self:Table, **kwargs):
"Set `xtra_id`"
Expand Down

0 comments on commit c60e68d

Please sign in to comment.