Qore DataProvider Module Reference
1.0.2
|
The DataProvider module provides APIs for hierarchical data structures from arbitrary sources to be described, queried, introspected, and updated. It also supports data providers with request-reply semantics such as REST schemas or with SOAP messaging.
The data provider module supports high-performance reading (searching) and writing as well as record creation and upserting and transaction management if supported by the underlying data provider implementation as well.
The Qore command-line program qdp
provides a user-friendly interface to data provider functionality.
This module provides the following primary classes:
The following supporting type classes are also provided:
This module uses the "QORE_DATA_PROVIDERS"
environment variable to register data provider modules. Each data provider registration module must provide one of the following two public functions.
Implement a public function with the following signature to support dynamic discovery of data providers:
Implement a public function with the following signature to support dynamic discovery of data provider types:
Data provider registration modules declared in the "QORE_DATA_PROVIDERS"
environment variable must be separated by the platform-specific PathSep character as in the following examples:
export QORE_DATA_PROVIDERS=MyConnectionProvider:OtherConnectionProvider
set QORE_DATA_PROVIDERS=MyConnectionProvider;OtherConnectionProvider
$env:QORE_DATA_PROVIDERS="MyConnectionProvider;OtherConnectionProvider"
DUPLICATE-RECORD
exception documentation for AbstractDataProvider::createRecord()