MCPcopy Create free account
hub / github.com/bcc-code/directus-schema-sync / addCollectionExporter

Method addCollectionExporter

src/exportManager.ts:19–27  ·  view source on GitHub ↗
(config: ExportCollectionConfig, getItemsService: IGetItemsService)

Source from the content-addressed store, hash-verified

17 }
18
19 public addCollectionExporter(config: ExportCollectionConfig, getItemsService: IGetItemsService) {
20 for (let collectionName in config) {
21 const opts = config[collectionName]!;
22 this.exporters.push({
23 watch: opts.watch,
24 exporter: new CollectionExporter(collectionName, getItemsService, opts, this.logger),
25 });
26 }
27 }
28
29 // SECOND: Import if needed
30 public async loadAll(merge = false) {

Callers 1

createExportManagerFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected