Commit Graph

125 Commits

Author SHA1 Message Date
Jacob Karlsson 8e6128f238 Rename to pzp (#4)
For https://codeberg.org/pzp/pzp-sdk/issues/1

Reviewed-on: https://codeberg.org/pzp/pzp-db/pulls/4
Co-authored-by: Jacob Karlsson <jacob.karlsson95@gmail.com>
Co-committed-by: Jacob Karlsson <jacob.karlsson95@gmail.com>
2024-04-27 21:47:50 +00:00
Jacob Karlsson f93082f38d Skip really long test in ci 2024-04-17 12:32:32 +02:00
Jacob Karlsson b4190b0ae2 Increase test timeout more 2024-04-14 23:34:19 +02:00
Jacob Karlsson 6acd57c707 Enable woodpecker CI (#3)
Fixes https://codeberg.org/pzp/pzp-db/issues/2

Reviewed-on: https://codeberg.org/pzp/pzp-db/pulls/3
Co-authored-by: Jacob Karlsson <jacob.karlsson95@gmail.com>
Co-committed-by: Jacob Karlsson <jacob.karlsson95@gmail.com>
2024-04-14 14:46:19 +00:00
Powersource 15cfc7459d
Make all APIs async, internally wait for rescanning (#29) 2024-04-07 17:04:32 +02:00
Powersource e40c7cff09
Prune the accountTangle in getSigkeysInAccount (#23) 2024-03-25 16:46:28 +01:00
Powersource d332308104
Add db.account.del (#27) 2024-03-25 16:45:08 +01:00
Powersource 3c236581fa
Make getSigkeysInAccount consider "del" (#24) 2024-03-25 16:33:41 +01:00
Andre Staltz ba6f727417
moot can be added without sigkey validation 2024-03-12 12:59:40 +02:00
Andre Staltz 6661b73fd4
add() can replace a dataless msg with a dataful 2024-02-28 15:32:36 +02:00
Andre Staltz cbeabab904
Tangle can be built from randomly ordered msgs 2024-02-28 13:53:31 +02:00
Andre Staltz c31580a961
add a few code comments 2024-02-27 18:03:35 +02:00
Andre Staltz 60afd4b64b
Re-scan log into memory after compacting 2024-02-27 16:52:01 +02:00
Andre Staltz 667b33779d
add() supports concurrency 2024-01-31 13:12:55 +02:00
Andre Staltz 68605ea387
getTangle() returns null if tangleID is unknown 2024-01-30 17:27:31 +02:00
Andre Staltz 7d5588ef4d
new API onRecordDeletedOrErased 2024-01-19 12:47:52 +02:00
Andre Staltz f8a2006eb1
improve types of dependencies 2024-01-19 12:24:38 +02:00
Andre Staltz 9e41400cdc
Log: fix concurrent overwrite() and compact() 2024-01-18 16:40:39 +02:00
Andre Staltz cc1f83c064
use config.global.keypair 2023-12-29 12:14:59 +02:00
Andre Staltz 3a2bfe25d0
msg-v4 2023-12-25 12:24:35 +02:00
Andre Staltz fd2e50438a
fix microqueue tests 2023-12-21 11:29:32 +02:00
Andre Staltz f38a62e006
use the microqueue for onRecordAdded 2023-12-21 11:17:28 +02:00
Andre Staltz 42acbc310f
add() supports inferring tangleID 2023-12-15 15:49:54 +02:00
Andre Staltz fa15271fdf
loosen tangle.slice() arguments 2023-12-15 14:38:02 +02:00
Andre Staltz f38b293c76
more tests 2023-12-15 14:36:25 +02:00
Andre Staltz 99c1520415
new API tangle.slice() 2023-12-15 14:34:34 +02:00
Andre Staltz f523df3a0e
MsgV3.isFeedMsg() API 2023-12-14 15:58:49 +02:00
Andre Staltz e86da204cb
format test file a bit 2023-12-14 14:49:51 +02:00
Andre Staltz b76130aa74
new feed.getID() API 2023-12-11 15:29:31 +02:00
Andre Staltz f9a3875ffd
rename feed.getID() to feed.findMoot() 2023-12-11 15:25:57 +02:00
Andre Staltz 5b81c6ea82
move config.path to config.db.path 2023-11-24 15:44:25 +02:00
Andre Staltz 29badc9fd8
log: dont compact on startup 2023-11-23 17:02:07 +02:00
Andre Staltz 2b1de9bce7
improve tests for del() and erase() 2023-11-23 16:09:06 +02:00
Andre Staltz cfebe1f46c
expose log methods: stats, compact 2023-11-23 15:49:54 +02:00
Andre Staltz 5e63142e50
log: fix how stats are counted 2023-11-23 15:38:05 +02:00
Andre Staltz a84dd297a5
log: implement compaction (sift-clone and rename) 2023-11-23 15:04:40 +02:00
Andre Staltz d21c7ed697
fix test for account powers validation 2023-11-23 12:55:17 +02:00
Andre Staltz 3e4fe864f7
align impl and spec regarding account key purposes 2023-11-16 14:09:55 +02:00
Andre Staltz fc47a4006b
account msgs have "account__" domain prefix 2023-11-16 12:09:00 +02:00
Andre Staltz 1ff84756bc
flatten tagged union in msg AccountData 2023-11-16 11:29:55 +02:00
Andre Staltz ae122c815e
support erase() persistence 2023-11-10 15:46:17 +02:00
Andre Staltz 9e7feb3d41
log: improve overwrite() with scheduled flushes 2023-11-10 14:50:22 +02:00
Andre Staltz 153e75da8e
log: implement naive overwrite() 2023-11-10 14:39:15 +02:00
Andre Staltz f40ea71ff9
refactor/prettify tests 2023-11-10 11:06:19 +02:00
Andre Staltz 4157b4989c
fix tests in CI 2023-11-07 11:14:41 +02:00
Andre Staltz 4302094926
log: remove some unnecessary methods 2023-11-07 11:11:19 +02:00
Andre Staltz b6d17e947f
log reading methods match log codec type 2023-11-07 10:48:20 +02:00
Andre Staltz db915d0287
replace async-append-only-log with our own log 2023-11-07 09:53:56 +02:00
Andre Staltz dea38e4c1a
fix ghosts.add() against concurrent writes 2023-10-26 12:06:06 +03:00
Andre Staltz 3fccd4d661
rename ghosts.add() opts.max to opts.span 2023-10-26 10:42:08 +03:00