* Create a DataBus instance.
(options: IDataBusInitOptions)
| 33 | * Create a DataBus instance. |
| 34 | */ |
| 35 | public static create(options: IDataBusInitOptions): DataBus { |
| 36 | const { dataStorageProvider, storeProvider } = options; |
| 37 | const databus = new DataBus(); |
| 38 | |
| 39 | const db = databus.getDatabase(); |
| 40 | db.setDataStorageProvider(dataStorageProvider); |
| 41 | db.setStoreProvider(storeProvider); |
| 42 | |
| 43 | return databus; |
| 44 | } |
| 45 | |
| 46 | /** |
| 47 | * Get the database of a DataBus instance. |
nothing calls this directly
no test coverage detected