Commit f90328f
committed
graph/db: add sql support for versioned node traversal
Add SQL queries for version-aware node traversal used by the
sqlNodeTraverser: ListChannelsForNodeV2, GetV2NodesByPubKeys,
ListChannelsWithPoliciesForCachePaginatedV2, and
ListChannelsPaginatedV2.
Update the KV store's ForEachNodeDirectedChannel to return
ErrVersionNotSupportedForKVDB for non-v1 instead of silently
returning no results.1 parent 97134ce commit f90328f
6 files changed
Lines changed: 538 additions & 10 deletions
File tree
- graph/db
- sqldb/sqlc
- queries
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3000 | 3000 | | |
3001 | 3001 | | |
3002 | 3002 | | |
3003 | | - | |
3004 | | - | |
| 3003 | + | |
3005 | 3004 | | |
3006 | 3005 | | |
3007 | 3006 | | |
3008 | | - | |
3009 | | - | |
| 3007 | + | |
3010 | 3008 | | |
3011 | 3009 | | |
3012 | 3010 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4174 | 4174 | | |
4175 | 4175 | | |
4176 | 4176 | | |
4177 | | - | |
4178 | | - | |
| 4177 | + | |
| 4178 | + | |
| 4179 | + | |
4179 | 4180 | | |
4180 | 4181 | | |
4181 | 4182 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3871 | 3871 | | |
3872 | 3872 | | |
3873 | 3873 | | |
3874 | | - | |
3875 | | - | |
3876 | | - | |
| 3874 | + | |
| 3875 | + | |
| 3876 | + | |
| 3877 | + | |
| 3878 | + | |
| 3879 | + | |
| 3880 | + | |
| 3881 | + | |
| 3882 | + | |
| 3883 | + | |
| 3884 | + | |
| 3885 | + | |
| 3886 | + | |
| 3887 | + | |
| 3888 | + | |
| 3889 | + | |
| 3890 | + | |
| 3891 | + | |
| 3892 | + | |
| 3893 | + | |
| 3894 | + | |
3877 | 3895 | | |
3878 | 3896 | | |
3879 | 3897 | | |
| |||
0 commit comments