Description
This Github Issue asks to introduce pagination support to the token-sdk DBs whose interfaces are defined under token/services/db/driver
.
This is needed because when showing results in a web page, we cannot keep the iterator opened for too long to avoid that locks on the db last for too long causing delaying to other operations.
We just need to fetch the information that will be needed for the specific case.
The target DBs are: AuditTransactionDB
, TokenDB
, and TransactionDB
defined under token/services/db/driver
..
- For
AuditTransactionDB
andTransactionDB
, we have the functions:QueryTransactions
,QueryMovements
,QueryValidations
, andQueryTokenRequests
. - For
TokenDB
, we haveUnspentTokensIterator
,UnspentTokensIteratorBy
,SpendableTokensIteratorBy
,UnsupportedTokensIteratorBy
,ListUnspentTokensBy
,ListUnspentTokens
,ListHistoryIssuedTokens
, andQueryTokenDetails
.
The implementations can be found under token/services/db/sql
. We have the following structure:
common
contains implementation that use standard SQL.driver
defines common interfacespostgres
contains the customization for postgressqlite
contains the customization for sqlite
Sub-issues
Metadata
Metadata
Assignees
Labels
No labels