1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 22:28:47 -04:00

Merge pull request #63 from toddr/foo

Switch to XSLoader
This commit is contained in:
Kenichi Ishigaki 2020-11-06 06:14:28 +09:00 committed by GitHub
commit bd949a1c5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,10 +3,9 @@ package DBD::SQLite;
use 5.006; use 5.006;
use strict; use strict;
use DBI 1.57 (); use DBI 1.57 ();
use DynaLoader (); use XSLoader ();
our $VERSION = '1.66'; our $VERSION = '1.66';
our @ISA = 'DynaLoader';
# sqlite_version cache (set in the XS bootstrap) # sqlite_version cache (set in the XS bootstrap)
our ($sqlite_version, $sqlite_version_number); our ($sqlite_version, $sqlite_version_number);
@ -14,7 +13,7 @@ our ($sqlite_version, $sqlite_version_number);
# not sure if we still need these... # not sure if we still need these...
our ($err, $errstr); our ($err, $errstr);
__PACKAGE__->bootstrap($VERSION); XSLoader::load('DBD::SQLite', $VERSION);
# New or old API? # New or old API?
use constant NEWAPI => ($DBI::VERSION >= 1.608); use constant NEWAPI => ($DBI::VERSION >= 1.608);