| 1 | |||
| 2 | package OOPS::sqlite; | ||
| 3 | |||
| 4 | our @ISA; | ||
| 5 | |||
| 6 | use strict; | ||
| 7 | use warnings; | ||
| 8 | use Carp qw(confess); | ||
| 9 | |||
| 10 | # | ||
| 11 | # When DBD::SQLite went from version 0.x to version 1.x it switched | ||
| 12 | # from SQLite 2.x to SQLite 3.x. SQLite 2.x support moved to | ||
| 13 | # DBD::SQLite2. | ||
| 14 | # | ||
| 15 | |||
| 16 | if ($DBD::SQLite::VERSION < 1.00) { | ||
| 17 | require OOPS::sqlite2; | ||
| 18 | import OOPS::sqlite2; | ||
| 19 | @ISA = qw(OOPS::sqlite2); | ||
| 20 | } else { | ||
| 21 | require OOPS::sqlite_v3; | ||
| 22 | import OOPS::sqlite_v3; | ||
| 23 | @ISA = qw(OOPS::sqlite_v3); | ||
| 24 | } | ||
| 25 | |||
| 26 | 1; |