 |
Qore DataProvider Module Reference
1.0.4
|
33 const FactoryMap = ...;
41 const FactoryModuleList = keys (map {$1:
True}, FactoryMap.iterator());
63 static bool allow_env_config =
False;
66 static bool env_config_locked =
False;
219 static bool tryLoad(
string module_str, *
bool verbose);
static DataProviderTypeEntry getTypeRoot()
Returns the root type entry.
Data provider factory class.
Definition: AbstractDataProviderFactory.qc.dox.h:28
static loadProvidersFromEnvironment()
Loads data providers from the environment.
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:93
static AbstractDataProviderType getTypeEx(string path)
Returns the given data provider type or throws an exception if not present.
static registerFactory(AbstractDataProviderFactory factory)
Register a new data provider factory.
static bool tryLoad(string module_str, *bool verbose)
Try to load the given module.
static hash< string, string > type_module_map
data provider type module map
Definition: DataProvider.qc.dox.h:58
static setAutoConfig()
Sets the flag that allows for automatic configuration from environment variables.
static checkRequest()
Sets the env_config_locked variable if not already set.
static DataProviderTypeCache getTypeCache()
Returns the data provider cache.
static list< string > getPathList(string path)
Returns a list of strings in a path separated by "/" characters.
static hash< string, AbstractDataProviderFactory > factory_cache
data provider factory cache
Definition: DataProvider.qc.dox.h:46
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:32
static registerKnownTypes()
Registers all known data provider types.
static hash< auto > getInfoAsData(hash< auto > info0)
Converts an info hash with objects to a hash with string descriptions instead of the objects.
static loadTypesFromEnvironment()
Loads data types from the environment.
static AbstractDataProvider getFactoryObjectFromString(string name)
Returns a data provider object from the given factory with options given as string-formatted hash in ...
static registerKnownFactories()
Registers all known data provider factories.
static loadFromEnvironment(string func, string type)
Loads modules from the QORE_DATA_PROVIDERS environment variable.
static AbstractDataProvider getFactoryObject(string path, *hash< auto > options)
Returns a data provider object from the given factory, created with the given constructor options.
static *DataProviderTypeEntry tryLoadTypeFromPath(list< string > type_path)
Tries to load the given type.
static AbstractDataProviderFactory getFactoryEx(string name)
Returns the given data provider factory or throws an exception if not present.
static *string tryGetModuleName(string name, string func, string type)
Tries to load a module corresponding to the given factory.
static *AbstractDataProviderFactory getFactory(string name)
Returns the given data provider factory or NOTHING if not present.
static bool getAutoConfig()
Returns the auto config flag.
static lockAllTypes()
Locks all types.
The AbstractDataProvider class.
Definition: AbstractDataProvider.qc.dox.h:194
the DataProviderTypeEntry class
Definition: DataProviderTypeEntry.qc.dox.h:55
static *string tryGetTypeModuleName(string name)
Tries to load a module corresponding to the given factory.
Data provider type cache class.
Definition: DataProviderTypeCache.qc.dox.h:29
static *list< string > listTypes()
Returns a list of registered data provider type paths.
static *AbstractDataProviderType getType(string path)
Returns the given data provider type or NOTHING if not present.
static registerType(string path, AbstractDataProviderType type)
Register a new data provider type.
static bool checkInjection(object obj, hash< string, string > module_map)
Check if the object is from a module that has been subject to dependency injections.
static Mutex factory_cache_lock()
data provider factory cache lock
static *list< string > listFactories()
Returns a list of registered data provider factories.
static *string tryGetFactoryModuleName(string name)
Tries to load a module corresponding to the given factory.
static DataProviderTypeCache type_cache()
data provider data type cache
static hash< string, string > factory_module_map
data provider factory module map
Definition: DataProvider.qc.dox.h:49