Every connection that K2 makes to a data source is through an Integrated Data Driver, or IDD. K2 comes with some IDDs which can connect to various kinds of data sources. This document describes how to create your own IDD to connect to some other kind of data source. Each IDD is responsible for:
Exporting entry points through which queries issued to K2 can access the data source.
Establishing a connection to the data source, in whatever way is appropriate.
Processing native-mode queries, sent to the IDD as a plain string.
Processing K2-mode queries, sent to the IDD as a K2 abstract syntax tree.
Reporting its status to K2.
To build an IDD, you must extend two abstract classes defined by K2, called K2.driver.DriverA and K2.driver.DriverConnectionA. In this document we refer to the classes you create as the "driver class" and the "connection class" (and objects of these classes as "driver object" and "connection object"), and describe how you should implement the abstract methods they inherit. The first step is to examine your data source and decide what kinds of queries it can support.
[Tech Docs Index]