Skip to content

Commit 821772d

Browse files
committed
fix: item id not returned for upserts
1 parent b549c9e commit 821772d

File tree

16 files changed

+366
-293
lines changed

16 files changed

+366
-293
lines changed

Cargo.lock

Lines changed: 4 additions & 143 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@ pocket = { path = "pkg/pocket" }
99
localdb = { path = "pkg/localdb" }
1010

1111
anyhow = "1.0.96"
12-
clap = { version = "4.5.30", features = ["derive"] }
12+
clap = { version = "4.5.31", features = ["derive"] }
1313
tokio = { version = "1", features = ["full"] }
1414
open = "5.3.2"
1515
native_messaging = "0.1.1"
1616
serde_json = "1.0.139"
1717
serde = { version = "1.0", features = ["derive"] }
18-
figment = { version = "0.10", features = ["toml", "env"] }
1918
directories = "6.0.0"
2019
chrono = "0.4.39"
2120

@@ -26,7 +25,7 @@ members = [ "pkg/localdb",
2625

2726
[workspace.dependencies]
2827
thiserror = "2.0.11"
29-
serde_json = "1.0.138"
28+
serde_json = "1.0.139"
3029
serde = { version = "1.0", features = ["derive"] }
3130
url = {version = "2.5.4", features = ["serde"]}
3231
reqwest = { version = "0.12.12", features = ["json"] }

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ javascript: (function () {
7272
- [x] Tests
7373
- [ ] Release Binaries on Github packages
7474
- [ ] Add a install script
75-
- [x] Get access token from keyring or `readlater.conf`
76-
- [ ] Get access token via login
7775
- [ ] Decouple it from Pocket and make it pluggable.
7876

7977
## License

pkg/localdb/migrations/20250205102710_init.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
CREATE TABLE [items] (
2-
[id] INTEGER PRIMARY KEY,
2+
[id] INTEGER PRIMARY KEY AUTOINCREMENT,
33
[pocket_id] INTEGER UNIQUE DEFAULT NULL,
44
[title] TEXT NOT NULL DEFAULT '',
5-
[url] TEXT NOT NULL,
5+
[url] TEXT NOT NULL UNIQUE,
66
[excerpt] TEXT,
77

88
[is_article] INTEGER,
@@ -37,7 +37,7 @@ CREATE TABLE [items_tags] (
3737
);
3838

3939
CREATE TABLE [authors] (
40-
[id] INTEGER PRIMARY KEY,
40+
[id] INTEGER PRIMARY KEY AUTOINCREMENT,
4141
[name] TEXT,
4242
[url] TEXT
4343
);

0 commit comments

Comments
 (0)