MCPcopy Create free account
hub / github.com/Easy-Editor/EasyEditor / init

Function init

packages/plugin-datasource/src/index.ts:47–57  ·  view source on GitHub ↗
(ctx)

Source from the content-addressed store, hash-verified

45 name: 'DataSourcePlugin',
46 deps: [],
47 init(ctx) {
48 const { config } = ctx
49
50 config.set('dataSourceEngine', {
51 createRuntime,
52 createInterpret,
53 createDataSourceEngine: (dataSource: InterpretDataSource, engine: IDataSourceRuntimeContext) => {
54 return createDataSourceEngine(dataSource, engine, options)
55 },
56 })
57 },
58 extend({ extend }) {
59 extend('Project', {
60 dataSource: {

Callers

nothing calls this directly

Calls 2

createDataSourceEngineFunction · 0.85
setMethod · 0.65

Tested by

no test coverage detected