From 54ebad9d0f2d1f91c7aec8991adb6c40edb9c430 Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Mon, 11 Jan 2016 19:44:21 +0900 Subject: [PATCH] added a note on strlike and strglob MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Petr Písař --- lib/DBD/SQLite.pm | 42 ++++++++++++++++++++++++++---------------- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/lib/DBD/SQLite.pm b/lib/DBD/SQLite.pm index 8debee7..7d683f2 100644 --- a/lib/DBD/SQLite.pm +++ b/lib/DBD/SQLite.pm @@ -2151,22 +2151,6 @@ See also L for better profiling options. is for internal use only. -=head2 DBD::SQLite::compile_options() - -Returns an array of compile options (available since SQLite 3.6.23, -bundled in DBD::SQLite 1.30_01), or an empty array if the bundled -library is old or compiled with SQLITE_OMIT_COMPILEOPTION_DIAGS. - -=head2 DBD::SQLite::sqlite_status() - -Returns a hash reference that holds a set of status information of SQLite runtime such as memory usage or page cache usage (see L for details). Each of the entry contains the current value and the highwater value. - - my $status = DBD::SQLite::sqlite_status(); - my $cur = $status->{memory_used}{current}; - my $high = $status->{memory_used}{highwater}; - -You may also pass 0 as an argument to reset the status. - =head2 $dbh->sqlite_db_status() Returns a hash reference that holds a set of status information of database connection such as cache usage. See L for details. You may also pass 0 as an argument to reset the status. @@ -2187,6 +2171,32 @@ registered before creating a new virtual table using the module and before using a preexisting virtual table for the module. Virtual tables are explained in L. +=head1 DRIVER FUNCTIONS + +=head2 DBD::SQLite::compile_options() + +Returns an array of compile options (available since SQLite 3.6.23, +bundled in DBD::SQLite 1.30_01), or an empty array if the bundled +library is old or compiled with SQLITE_OMIT_COMPILEOPTION_DIAGS. + +=head2 DBD::SQLite::sqlite_status() + +Returns a hash reference that holds a set of status information of SQLite runtime such as memory usage or page cache usage (see L for details). Each of the entry contains the current value and the highwater value. + + my $status = DBD::SQLite::sqlite_status(); + my $cur = $status->{memory_used}{current}; + my $high = $status->{memory_used}{highwater}; + +You may also pass 0 as an argument to reset the status. + +=head2 DBD::SQLite::strlike($pattern, $string, $escape_char), DBD::SQLite::strglob($pattern, $string) + +As of 1.49_05 (SQLite 3.10.0), you can use these two functions to +see if a string matches a pattern. These may be useful when you +create a virtual table or a custom function. +See L and +L for details. + =head1 DRIVER CONSTANTS A subset of SQLite C constants are made available to Perl, -- 2.5.0