mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-19 12:01:27 +02:00
sqldb: rename ExecutePagedQuery to ExecuteBatchQuery
We rename this helper along the config types & helper types for it because the word "page" is used more often in the context of paging through results using an offset and limit whereas this helper is specifically used to split up the slice in queries of the form "WHERE x in []slice". We do this rename so that there is mimimal confusion in contexts where we use batching along with actual paging. The config struct is also renamed to QueryConfig in preparation for it holding more config options.
This commit is contained in:
@@ -144,8 +144,8 @@ func openNativeSQLGraphDB(ht *lntest.HarnessTest,
|
||||
|
||||
store, err := graphdb.NewSQLStore(
|
||||
&graphdb.SQLStoreConfig{
|
||||
ChainHash: *ht.Miner().ActiveNet.GenesisHash,
|
||||
PaginationCfg: sqldb.DefaultPagedQueryConfig(),
|
||||
ChainHash: *ht.Miner().ActiveNet.GenesisHash,
|
||||
QueryCfg: sqldb.DefaultQueryConfig(),
|
||||
},
|
||||
executor,
|
||||
)
|
||||
|
Reference in New Issue
Block a user