Dexie.use()
Syntax
Properties of the parameter
stack : String
Stack type. Currently, only "dbcore" is supported.
name : String
Optional name of your middleware
create : Function
The middleware itself. It takes a DBCore instance and should return a modified DBCore instance.
Remarks
Your provided create
function takes a DBCore and should return another plain JS object confirming to the DBCore interface.
Example
In essence, all mutating operations are bulk-oriented. There's only bulkPut(), bulkAdd(), bulkDelete() and deleteRange(). Currently all of these four are reached through a single method mutate().
Interface definitions for DBCore is found here