The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

OP::Enum::DBIType - Database type enumeration

DESCRIPTION

Uses OP::Enum to provide constants which are used to specify database types. The mix-in OP::Persistence class method __dbiType() should be overridden in a subclass to return one of the constants in this package.

SYNOPSIS

  create "YourApp::YourClass" => {
    __useDbi  => true,
    __dbiType => OP::Enum::DBIType::<Type>,

  };

CONSTANTS

  • OP::Enum::DBIType::MySQL

    Specify MySQL as a DBI type (0)

  • OP::Enum::DBIType::SQLite

    Specify SQLite as a DBI type (1)

  • OP::Enum::DBIType::PostgreSQL

    Specify PostgreSQL as a DBI type (2)

SEE ALSO

OP::Enum, OP::Persistence

This file is part of OP.