Skip to content

Commit c60e68d

Browse files
committed
release
1 parent 83489b4 commit c60e68d

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
<!-- do not remove -->
44

5+
## 0.0.3
6+
7+
### New Features
8+
9+
- Vendor in sqlite-utils and remove dependency ([#7](https://github.com/AnswerDotAI/fastlite/issues/7))
10+
- Add `ids_and_rows_where` and use it to work around sqlite-utils rowid bug ([#6](https://github.com/AnswerDotAI/fastlite/issues/6))
11+
- Add `get_last` and use it to set `last_pk` correctly and return updated row ([#5](https://github.com/AnswerDotAI/fastlite/issues/5))
12+
13+
514
## 0.0.2
615

716
### New Features

fastlite/kw.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55

66
opt_bool = Union[bool, Default, None]
77

8+
def database(path, wal=True):
9+
path = Path(path)
10+
path.parent.mkdir(exist_ok=True)
11+
db = Database(path)
12+
if wal: db.enable_wal()
13+
return db
14+
815
@patch
916
def xtra(self:Table, **kwargs):
1017
"Set `xtra_id`"

0 commit comments

Comments
 (0)