88 Commits

Author SHA1 Message Date
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
fiatjaf
1b7e7e7aff move cli to proper directory with correct name. 2023-11-28 15:35:46 -03:00
fiatjaf
b7f018e985 a readme. 2023-11-28 15:34:18 -03:00
fiatjaf
4ccace1ea9 add cli tool. 2023-11-28 15:34:12 -03:00
fiatjaf
0214061431 lmdb/badger: prevent crashing when we get a filter like {"#e":[]} 2023-11-27 11:53:28 -03:00
fiatjaf
b89a24cba0 badger: improve a comment. v0.2.11 2023-11-25 15:22:53 -03:00
fiatjaf
93a595e710 lmdb: fix argument ordering that was breaking the entire query system. 2023-11-25 15:22:08 -03:00
fiatjaf
d15d78bf10 lmdb: raw read. v0.2.10 2023-11-24 17:24:17 -03:00
fiatjaf
a0fa1278d5 lmdb: automated migrations. 2023-11-24 17:23:59 -03:00
fiatjaf
332e34f77a lmdb: store 32-byte tags in a separate index than the other tags. 2023-11-24 17:23:37 -03:00
fiatjaf
2621ff5f91 badger: make sure we don't match tag index keys that are bigger than the queried tag. v0.2.9 2023-11-13 16:33:43 -03:00
fiatjaf
a29b9f298c badger: improve messages and comments on query. 2023-11-11 15:01:43 -03:00
fiatjaf
77f8ab5656 lmdb: fix error checking reversed signal. 2023-11-10 21:54:43 -03:00
fiatjaf
a161b58175 lmdb: fix mkdir -p 2023-11-10 21:54:30 -03:00
fiatjaf
63c621f806 lmdb: create directory if it doesn't exist. v0.2.8 2023-11-10 18:09:49 -03:00