From 4c501a27519b9dd8c21dcd0081a3e1072fbfd94e Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Wed, 6 May 2009 09:17:06 +0000 Subject: [PATCH] DBD-SQLite: added enable_load_extension pod --- lib/DBD/SQLite.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/DBD/SQLite.pm b/lib/DBD/SQLite.pm index 045e01b..dbcc768 100644 --- a/lib/DBD/SQLite.pm +++ b/lib/DBD/SQLite.pm @@ -783,6 +783,14 @@ And then retrieval just works: # now $blobo == $blob +=head2 $dbh->sqlite_enable_load_extension( $bool ) + +Calling this method with a true value enables loading (external) sqlite3 extensions. After the call, you can load extensions like this: + + $dbh->sqlite_enable_load_extension(1); + $sth = $dbh->prepare("select load_extension('libsqlitefunctions.so')") + or die "Cannot prepare: " . $dbh->errstr(); + =head1 NOTES Although the database is stored in a single file, the directory containing the