Interface ReadTransaction
Methods
get
get( key: string ) : Promise < JSONValue | undefined >
Parameters
Returns Promise < JSONValue | undefined >
has
has( key: string ) : Promise < boolean >
Parameters
Returns Promise < boolean >
scan
scan( __namedParameters?: { indexName: undefined | string ; limit: undefined | number ; prefix: undefined | string ; start: undefined | ScanBound } ) : ScanResult
Parameters
Optional __namedParameters: { indexName: undefined | string ; limit: undefined | number ; prefix: undefined | string ; start: undefined | ScanBound }
indexName: undefined | string
limit: undefined | number
prefix: undefined | string
start: undefined | ScanBound
scanAll
scanAll( options?: ScanOptions ) : Promise < [ ] [] >
Parameters
Optional options: ScanOptions
Returns Promise < [ ] [] >
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Type alias with type parameter
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
ReadTransactions are used with
Replicache.queryand allows read operations on the database.