Articles

Dexie.js is a minimalistic indexed DB wrapper that provides near-native performance and easy to use database.  Hard to believe the dexie DB package size is around 22KB and it works cross-browser and devices. It solves the error handling by promises rather than events. So it will result in less of coding which turns out to be maintainable code.

Let’s start the how-to-use dexie database by creating an order electron app. Clone the electron typescript template and install dexie to it. 

Source de l’article sur DZONE

To bind methods or constructors to functional interfaces, we are going to use the FunctionalInterfaceFactory of Burningwave Core library. FunctionalInterfaceFactory component uses to cache all generated functional interfaces for faster access. Before we start coding, we must add the following dependency to our pom.xml:

XML

 

x
 

1

<dependency>

2

    <groupId>org.burningwave</groupId>

3

    <artifactId>core</artifactId>

4

    <version>8.12.6</version>

5

</dependency>

Constructors Binding

To bind a constructors to a functional interface, we will use the following constructor:

Source de l’article sur DZONE