You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,8 @@
1
+
### 1.2.4 (2025-03-08)
2
+
1. add `key_type` arg to `sqlite.KV`, to support `int` key.
3
+
1
4
### 1.2.3 (2025-03-07)
2
-
1. add `sqlite.KV`: A key-value store using sqlite3. Light-weight`sqlitedict`.
5
+
1. add `sqlite.KV`: A key-value store using sqlite3, lightweight`sqlitedict`.
3
6
4
7
### 1.2.2 (2025-03-04)
5
8
1. Change the default alphabet in `utils.base_encode` to "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", which follows the order of ASCII characters.
Copy file name to clipboardExpand all lines: morebuiltins/sqlite.py
+31-1Lines changed: 31 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@ def __init__(
22
22
pickle.dumps,
23
23
pickle.loads,
24
24
),
25
+
key_type="TEXT",
25
26
**kwargs,
26
27
):
27
28
"""A key-value store using sqlite3.
@@ -37,6 +38,7 @@ def __init__(
37
38
database (str, optional): database file path. Defaults to ":memory:".
38
39
table (str, optional): table name. Defaults to "table1".
39
40
encoder (typing.Tuple[str, typing.Optional[typing.Callable], typing.Optional[typing.Callable]], optional): encoder for the value. Defaults to ("BLOB", pickle.dumps, pickle.loads).
41
+
key_type (str, optional): key type. Defaults to "TEXT".
0 commit comments