createRoomDatabase

Create or get a RoomDatabase, it will be created in the Main app storage and will persist if the module is uninstalled, we suggest to put the database reference inside an object for easier access through the module, this method can only be used inside of onModuleInitialize.

Return

The reference of the created/gotten Database

Parameters

name

The name of the database, the package name of the Module is used to create an unique name

clazz

The class of the Database

See also