diff --git a/lib/DBD/SQLite.pm b/lib/DBD/SQLite.pm index 2f7aabc..a06a6d8 100644 --- a/lib/DBD/SQLite.pm +++ b/lib/DBD/SQLite.pm @@ -537,12 +537,12 @@ END_SQL ); } - #====================================================================== # An internal tied hash package used for %DBD::SQLite::COLLATION, to # prevent people from unintentionally overriding globally registered collations. package DBD::SQLite::_WriteOnceHash; + require Tie::Hash; our @ISA = qw(Tie::StdHash); @@ -562,9 +562,6 @@ sub DELETE { 1; - - - __END__ =pod @@ -999,7 +996,6 @@ After this, it could be use from SQL as: INSERT INTO mytable ( now() ); - =head3 REGEXP function SQLite includes syntactic support for an infix operator 'REGEXP', but @@ -1020,7 +1016,6 @@ C API described above. Note that regexp matching will B use SQLite indices, but will iterate over all rows, so it could be quite costly in terms of performance. - =head2 $dbh->sqlite_create_collation( $name, $code_ref ) This method manually registers a new function which will be useable in an SQL @@ -1042,7 +1037,6 @@ The driver will check that this is a proper sorting function. =back - =head2 $dbh->sqlite_collation_needed( $code_ref ) This method manually registers a callback function that will @@ -1059,7 +1053,6 @@ so for most common cases it will be simpler to just add your collation sequences in the C<%DBD::SQLite::COLLATION> hash (see section L below). - =head2 $dbh->sqlite_create_aggregate( $name, $argc, $pkg ) This method will register a new aggregate function which can then be used @@ -1202,7 +1195,6 @@ C is overridden. A reference to the previous callback (if any) is returned. Registering an C disables the callback. - =head2 $dbh->sqlite_update_hook( $code_ref ) This method registers a callback function to be invoked whenever a row @@ -1239,7 +1231,6 @@ is the unique 64-bit signed integer key of the affected row within that table. =back - =head2 $dbh->sqlite_set_authorizer( $code_ref ) This method registers an authorizer callback to be invoked whenever @@ -1292,8 +1283,6 @@ top-level SQL code. =back - - =head2 $dbh->sqlite_backup_from_file( $filename ) This method accesses the SQLite Online Backup API, and will take a backup of @@ -1315,7 +1304,6 @@ sqlite3 extensions. After the call, you can load extensions like this: $sth = $dbh->prepare("select load_extension('libsqlitefunctions.so')") or die "Cannot prepare: " . $dbh->errstr(); - =head1 DRIVER CONSTANTS A subset of SQLite C constants are made available to Perl, @@ -1387,7 +1375,6 @@ associated strings. FUNCTION undef Function Name SAVEPOINT Operation Savepoint Name - =head1 COLLATION FUNCTIONS =head2 Definition @@ -1468,7 +1455,6 @@ is to set the parameter at connection time : } ); - =head2 Adding user-defined collations The native SQLite API for adding user-defined collations is @@ -1495,7 +1481,6 @@ characters : my $sql = "SELECT ... FROM ... ORDER BY ... COLLATE no_accents"); my $rows = $dbh->selectall_arrayref($sql); - The builtin C or C collations are predefined in that same hash. @@ -1515,7 +1500,6 @@ I for collations. In other words, if you want to change the behaviour of a collation within an existing C<$dbh>, you need to call the L method directly. - =head1 TO DO The following items remain to be done. @@ -1525,7 +1509,7 @@ The following items remain to be done. We currently use a horridly hacky method to issue and suppress warnings. It suffices for now, but just barely. -Migrate all of the warning code to use the recommended DBI warnings. +Migrate all of the warning code to use the recommended L warnings. =head2 Leak Detection @@ -1541,7 +1525,6 @@ Reading/writing into blobs using C / C. Support the full API of sqlite3_open_v2 (flags for opening the file). - =head1 SUPPORT Bugs should be reported via the CPAN bug tracker at @@ -1578,7 +1561,7 @@ Some parts copyright 2008 Francis J. Lacoste. Some parts copyright 2008 Wolfgang Sourdeau. -Some parts copyright 2008 - 2009 Adam Kennedy. +Some parts copyright 2008 - 2010 Adam Kennedy. Some parts derived from L copyright 2008 Audrey Tang.