.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Net::Google::SafeBrowsing2::Sqlite 3pm" .TH Net::Google::SafeBrowsing2::Sqlite 3pm "2021-01-07" "perl v5.32.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Net::Google::SafeBrowsing2::Sqlite \- Sqlite as back\-end storage for the Google Safe Browsing v2 database .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 1 \& use Net::Google::SafeBrowsing2::Sqlite; \& \& my $storage = Net::Google::SafeBrowsing2::Sqlite\->new(file => \*(Aqgoogle\-v2.db\*(Aq); \& ... \& $storage\->close(); .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" This is an implementation of Net::Google::SafeBrowsing2::Storage using Sqlite. .SH "CONSTRUCTOR" .IX Header "CONSTRUCTOR" .SS "\fBnew()\fP" .IX Subsection "new()" Create a Net::Google::SafeBrowsing2::Sqlite object .PP .Vb 1 \& my $storage = Net::Google::SafeBrowsing2::Sqlite\->new(file => \*(Aqgoogle\-v2.db\*(Aq); .Ve .PP Arguments .IP "file" 4 .IX Item "file" Required. File to store the database. .IP "keep_all" 4 .IX Item "keep_all" Optional. Set to 1 to keep old information (such as expiring full hashes) in the database. 0 (delete) by default. .SH "PUBLIC FUNCTIONS" .IX Header "PUBLIC FUNCTIONS" .RS 4 See Net::Google::SafeBrowsing2::Storage for a complete list of public functions. .RE .SS "\fBclose()\fP" .IX Subsection "close()" Cleanup old full hashes, and close the connection to the database. .PP .Vb 1 \& $storage\->close(); .Ve .SH "CHANGELOG" .IX Header "CHANGELOG" .IP "0.2" 4 .IX Item "0.2" Add \fBclose()\fR function to clean up old full hashes, and to close the connection to the database cleanly. .Sp Add table and function to store and retrieve the Message Authentication Code (\s-1MAC\s0) key. .Sp In some environments, the module was trying to re-create existing tables. Fixed (Thank you to Luis Alberto Perez). .IP "0.3" 4 .IX Item "0.3" Fix typos in the documentation. .IP "0.4" 4 .IX Item "0.4" Disable journalization. This speeds up updated by about 10x. .IP "0.5" 4 .IX Item "0.5" Use base class Net::Google::SafeBrowsing2::DBI. .IP "0.6" 4 .IX Item "0.6" Use more efficient add_chunk_a and add_chunk_s functions. .IP "0.7" 4 .IX Item "0.7" Add option keep_all to keep expired full hashes. Useful for debugging. .IP "0.8" 4 .IX Item "0.8" Index s_chunks_unique was created at the wrong place. Thanks to colinmkeith. .SH "SEE ALSO" .IX Header "SEE ALSO" See Net::Google::SafeBrowsing2 for handling Google Safe Browsing v2. .PP See Net::Google::SafeBrowsing2::Storage for the list of public functions. .PP See Net::Google::SafeBrowsing2::MySQL for a back-end using Sqlite. .PP Google Safe Browsing v2 \s-1API:\s0 .SH "AUTHOR" .IX Header "AUTHOR" Julien Sobrier, or .SH "COPYRIGHT AND LICENSE" .IX Header "COPYRIGHT AND LICENSE" Copyright (C) 2011 by Julien Sobrier .PP This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.