Commit graph

9 commits

Author SHA1 Message Date
Viktor Torstensson
9c6464f7e4
accounts: export kvdb DB
The next commit that adds the kvdb to sql code migration will need to
initialize the accounts kvdb DB.

This commit exports that struct so that it can be referenced outside of
the accounts package.
2026-05-14 11:38:32 +02:00
Viktor Torstensson
0cb4901749
accounts: use sqlcmig6 for kvdb to sql migration
This commit updates the accounts package to use the new `sqlcmig6`
package for kvdb to SQL migration.
2026-05-14 11:38:04 +02:00
Viktor Torstensson
b7ee351cb0
multi: use sqldb/v2 in accounts package
Update the accounts package to use the `sqldb/v2` package instead of the
older version.
2026-05-14 11:37:41 +02:00
cyberguru1
21ae1c74b0
accounts: implement account rename support in stores 2026-05-05 13:39:14 -05:00
Oliver Gugger
c417adf318
mod+accounts+session: update to latest lnd RC 2025-07-11 18:41:16 +02:00
Viktor Tigerström
12343cf4ba
accounts: ensure that test SQL store is closed
We add a helper function to the functions that creates the test SQL
stores, in order to ensure that the store is properly closed when the
test is cleaned up.
2025-06-09 13:01:28 +02:00
Viktor Tigerström
8986d41616
accounts: iterate over bbolt buckets in migration
Update the SQL migration to instead of using the public functions of the
BoltStore struct, we instead iterate over the buckets directly. This
ensures that the BoltStore struct Acccounts & LastIndexes functions of
the BoltStore implementation can be changed, without effecting the
SQL migration.
2025-06-09 13:01:28 +02:00
Viktor Tigerström
1e0e88b32f
accounts: add randomized accounts migration tests 2025-05-19 14:29:15 +02:00
Viktor Tigerström
dbb5d73079
accounts: add migration code from kvdb to SQL
This commit introduces the migration logic for transitioning the
accounts store from kvdb to SQL.

Note that as of this commit, the migration is not yet triggered by any
production code, i.e. only tests execute the migration logic.
2025-05-19 14:29:15 +02:00