Version: 3.6
Creating Custom Driver
If you want to use database that is not currently supported, you can implement your own driver. To do so, you will need to design 4 classes:
#
PlatformPlatform is a class that provides information about available features of given driver:
#
SchemaHelperPart of platform is a SchemaHelper
, that provides information about how to build schema.
#
ConnectionNext part is connection wrapper, that will be responsible for querying the database:
#
DriverLast part is driver, that is responsible for using the connection to persist changes to
database. If you are building SQL driver, it might be handy to extend AbstractSqlDriver
,
if not, extend DatabaseDriver
abstract class.
If you want to have absolute control, you can implement the whole driver yourself via
IDatabaseDriver
interface.