github.com/voedger/voedger@v0.0.0-20240520144910-273e84102129/pkg/sys/collection/provide.go (about) 1 /* 2 * Copyright (c) 2021-present unTill Pro, Ltd. 3 */ 4 5 package collection 6 7 import ( 8 "github.com/voedger/voedger/pkg/istructsmem" 9 ) 10 11 func Provide(cfg *istructsmem.AppConfigType) { 12 cfg.Resources.Add(istructsmem.NewQueryFunctionCustomResult( 13 qNameQueryCollection, 14 collectionResultQName, 15 collectionFuncExec, 16 )) 17 18 provideQryCDoc(cfg) 19 provideStateFunc(cfg) 20 21 cfg.AddSyncProjectors(collectionProjector(cfg.AppDef)) 22 }