MCPcopy Create free account
hub / github.com/apitable/apitable / create

Method create

packages/core/src/databus/databus.ts:35–44  ·  view source on GitHub ↗

* Create a DataBus instance.

(options: IDataBusInitOptions)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 3

getDatabaseMethod · 0.95
setStoreProviderMethod · 0.80

Tested by

no test coverage detected