github.com/voedger/voedger@v0.0.0-20240520144910-273e84102129/pkg/sys/builtin/provide.go (about) 1 /* 2 * Copyright (c) 2022-present unTill Pro, Ltd. 3 */ 4 5 package builtin 6 7 import ( 8 "runtime/debug" 9 10 "github.com/voedger/voedger/pkg/istorage" 11 "github.com/voedger/voedger/pkg/istructs" 12 "github.com/voedger/voedger/pkg/istructsmem" 13 ) 14 15 func Provide(cfg *istructsmem.AppConfigType, buildInfo *debug.BuildInfo, asp istorage.IAppStorageProvider) { 16 cfg.Resources.Add(istructsmem.NewCommandFunction(istructs.QNameCommandCUD, istructsmem.NullCommandExec)) 17 18 // Deprecated: use c.sys.CUD instead. Kept for backward compatibility only 19 // to import via ImportBO 20 cfg.Resources.Add(istructsmem.NewCommandFunction(QNameCommandInit, istructsmem.NullCommandExec)) 21 22 provideRefIntegrityValidation(cfg) 23 provideQryModules(cfg, buildInfo) 24 25 provideQryEcho(cfg) 26 provideQryGRCount(cfg) 27 proivideRenameQName(cfg, asp) 28 provideSysIsActiveValidation(cfg) 29 }