Commit Graph

102 Commits

Author SHA1 Message Date
Yasuhiro Matsumoto
0f9a96b95d fix Query 2024-05-23 13:42:06 +09:00
Yasuhiro Matsumoto
18d31ade43 remove todo 2024-05-23 12:55:30 +09:00
Yasuhiro Matsumoto
52808fdff4 fix go.mod 2024-05-23 12:53:15 +09:00
Yasuhiro Matsumoto
47e9e35229 fix go.mod 2024-05-23 12:52:35 +09:00
Yasuhiro Matsumoto
876e1c5ba0 add opensearch 2024-05-23 12:13:34 +09:00
mattn
b5ff2989a5 Merge pull request #15 from mattn/keep-recent-events
Some checks failed
build cli / make-release (push) Has been cancelled
build cli / build-linux (push) Has been cancelled
add KeepRecentEvents
v0.3.13
2024-03-24 19:20:05 +09:00
Yasuhiro Matsumoto
21f4750ac3 add KeepRecentEvents 2024-03-24 19:18:32 +09:00
fiatjaf
7798055b1b bolt: alert for possible lock. 2024-03-04 09:17:44 -03:00
mattn
4d59383f18 Merge pull request #13 from mattn/fix-postgres
Some checks failed
build cli / make-release (push) Has been cancelled
build cli / build-linux (push) Has been cancelled
fix pubkey in postgres
v0.3.12
2024-02-22 09:33:55 +09:00
Yasuhiro Matsumoto
c082c99cdb fix pubkey in postgres 2024-02-22 09:33:14 +09:00
fiatjaf
a86745ec5f RelayInterface => nostr.RelayStore 2024-02-09 11:26:54 -03:00
fiatjaf
d7917cefd4 boltdb on eventstore cli.
Some checks failed
build cli / make-release (push) Has been cancelled
build cli / build-linux (push) Has been cancelled
v0.3.11
2024-02-08 12:36:54 -03:00
fiatjaf
9d87d1fd8a boltdb support. 2024-02-08 12:36:34 -03:00
fiatjaf
830d51e96d badger: use a different transaction for each goroutine. 2024-02-08 11:08:28 -03:00
mattn
bd8998deb3 Merge pull request #10 from mattn/escape-percent
Some checks failed
build cli / make-release (push) Has been cancelled
build cli / build-linux (push) Has been cancelled
escape %
v0.3.10
2024-01-30 14:46:36 +09:00
Yasuhiro Matsumoto
5d6b9ef086 escape % 2024-01-30 14:42:57 +09:00
fiatjaf
6a94456336 update go-nostr again. 2024-01-29 15:36:10 -03:00
Yasuhiro Matsumoto
7d4015d0d1 fix all queryEventsSql
Some checks failed
build cli / make-release (push) Has been cancelled
build cli / build-linux (push) Has been cancelled
v0.3.9
2024-01-29 15:33:31 -03:00
fiatjaf
f5d23a3b51 lmdb/badger: stop sorting tags in-place when creating indexes. it is not necessary and was messing up things. 2024-01-18 17:55:08 -03:00
fiatjaf
35322df272 add in-memory slicestore.
Some checks failed
build cli / make-release (push) Has been cancelled
build cli / build-linux (push) Has been cancelled
v0.3.7
2024-01-14 22:24:34 -03:00
fiatjaf
dbb660b1ec upgrade go-nostr and xsync. 2024-01-10 21:18:29 -03:00
fiatjaf
d3bafc2ec8 lmdb/badger: fix duplicate identification code for tag indexing.
Some checks failed
build cli / make-release (push) Has been cancelled
build cli / build-linux (push) Has been cancelled
v0.3.6
2024-01-05 18:12:39 -03:00
Yasuhiro Matsumoto
98199d7553 remove binary file
Some checks failed
build cli / make-release (push) Has been cancelled
build cli / build-linux (push) Has been cancelled
v0.3.5
2023-12-24 09:20:32 -03:00
fiatjaf
c444065a08 cli: up all limits to 1000000 since it's a trusted environment. 2023-12-24 09:20:32 -03:00
fiatjaf
0cf1582cb7 cli: fix newlines in messages. 2023-12-24 09:20:32 -03:00
fiatjaf
bbcbe1ed1c cli: rename commands so they reflect the interface definition better. 2023-12-24 09:20:30 -03:00
fiatjaf
16a3bf0d91 cli: read cli arguments and not only stdin, migrate to urfave/cli/v3 2023-12-23 20:03:43 -03:00
fiatjaf
02598d508a build CLI on github actions.
Some checks failed
build cli / make-release (push) Has been cancelled
build cli / build-linux (push) Has been cancelled
v0.3.2
2023-12-22 22:33:26 -03:00
fiatjaf
44e9b11673 lmdb/badger: print id on value read error. 2023-12-22 20:05:25 -03:00
fiatjaf
7c2cab73d4 update go-nostr so binary encoding fails for events with stupidly large fields and whatnot. 2023-12-22 19:55:55 -03:00
fiatjaf
9f6b0b521d lmdb: fix version bumping. v0.3.1 2023-12-11 15:31:34 -03:00
fiatjaf
3e08d8c455 badger/lmdb: update go-nostr binary encoding to fix limited nubmer of tags; migration script requires manual procedure; update badger to use just 8 bytes of ids and pubkeys. v0.3.0 2023-12-11 09:32:06 -03:00
fiatjaf
23451178ce badger/lmdb: fix tag sorting when they are small. v0.2.17 2023-12-10 07:42:26 -03:00
fiatjaf
0a8f93e886 break when idx isn't found to prevent an infinite loop. v0.2.16 2023-12-09 14:53:08 -03:00
fiatjaf
59ac03f08d update RelayInterface() to match new go-nostr API. 2023-12-09 14:42:35 -03:00
fiatjaf
37e16afaba lmdb: prevent queries from getting halted and locking readers forever. v0.2.15 2023-12-07 23:52:01 -03:00
fiatjaf
55c3cfcb48 go mod tidy. v0.2.14 2023-12-07 18:07:10 -03:00
fiatjaf
ea79f525f4 lmdb: increase number of max readers to 1000. 2023-12-07 18:07:06 -03:00
fiatjaf
0390512f9a lmdb: multi-index support and update bindings to fix unpinnned pointer issue. 2023-12-07 18:07:06 -03:00
fiatjaf
c09105f54b lmdb: use a different goroutine for each read txn. 2023-12-07 11:44:20 -03:00
fiatjaf
3777e2f8f6 lmdb: do not use goroutines for each query.
thanks to @wojas at https://github.com/PowerDNS/lmdb-go/issues/28#issuecomment-1845056613
2023-12-07 11:36:25 -03:00
fiatjaf
01aeabe23b badger: fix dangling "fmt" v0.2.13 2023-12-06 07:08:46 -03:00
fiatjaf
9bd8c0fd4e lmdb: use an waitgroup so transactions don't get closed before they actually end in the sub goroutines. 2023-12-06 06:50:28 -03:00
fiatjaf
6443b73eab badger/lmdb: delete doesn't require refetching. 2023-12-06 06:49:49 -03:00
fiatjaf
f2cccb0fce lmdb: use 8-byte keys instead of 32, use indexAddr, migrations. 2023-12-06 06:48:16 -03:00
fiatjaf
e3ddc80a08 lmdb: switch to powerdns fork of lmdb-go. 2023-12-06 06:45:51 -03:00
fiatjaf
b4ee108b6b badger: use special index for 'a'-like tags. 2023-12-02 18:55:37 -03:00
fiatjaf
fe0b7c799c badger: remove a dangling print() 2023-11-29 12:27:40 -03:00
fiatjaf
b95cfc42cc lmdb/badger: change (fix?) and simplify queries (offsets and created_at stuff should be simpler and q-dependent). 2023-11-28 16:05:27 -03:00
fiatjaf
348bed02e9 top-level cli command that handles the output of nak. 2023-11-28 15:58:08 -03:00