Net::G...Sqlite(3pm)
π Net::G...Sqlite β User Contributed Perl Documentation π
okay bestie, pull up a chair, we're talking about Net::Google::SafeBrowsing2::Sqlite, a Perl module living its best life in the User Contributed Perl Documentation collection. it's giving "storage backend" and honestly? iconic. π
β¨ NAME β¨
Net::Google::SafeBrowsing2::Sqlite β Sqlite as back-end storage for the Google Safe Browsing v2 database. she stores things. that's her whole job. periodt. π
πΈ SYNOPSIS πΈ
use Net::Google::SafeBrowsing2::Sqlite;
my $storage = Net::Google::SafeBrowsing2::Sqlite->new(file => 'google-v2.db');
...
$storage->close();
literally that's it. three lines and you're a whole storage girlie. β¨
π¦ DESCRIPTION π¦
this is an implementation of Net::Google::SafeBrowsing2::Storage using Sqlite. no cap, it just plugs right in. π«Ά
π CONSTRUCTOR π
π new()
creates a Net::Google::SafeBrowsing2::Sqlite object. main character energy, fr fr. π
my $storage = Net::Google::SafeBrowsing2::Sqlite->new(file => 'google-v2.db');
β Arguments
fileβ Required. the file where the database lives. like, you gotta tell her where to keep her stuff, bestie. πkeep_allβ Optional. set it to1to keep old information (such as expiring full hashes) hanging around in the database. defaults to0(which means delete). so if you want the old receipts kept, say so. otherwise she's cleaning house. π§Ή
π PUBLIC FUNCTIONS π
see Net::Google::SafeBrowsing2::Storage for a complete list of public functions. go read that one too, i'm not gatekeeping. π
π close()
cleans up old full hashes, and closes the connection to the database. tidy queen behavior. β¨
$storage->close();
π₯ CHANGELOG π₯
0.2β adds theclose()function to clean up old full hashes, and to close the connection to the database cleanly.
also adds a table and function to store and retrieve the Message Authentication Code (MAC) key. π
and in some environments, the module was trying to re-create existing tables. fixed β big thank you to Luis Alberto Perez. π«Ά
0.3β fixed typos in the documentation. (a glow-up for the docs, we love to see it.) π0.4β journalization is disabled. this speeds up updates by about 10x. TEN. TIMES. π0.5β now uses the base classNet::Google::SafeBrowsing2::DBI. inheritance slay. π0.6β now uses the more efficientadd_chunk_aandadd_chunk_sfunctions. efficient queen. β‘0.7β adds thekeep_alloption to keep expired full hashes. useful for debugging. π0.8β thes_chunks_uniqueindex was created at the wrong place. thanks tocolinmkeith. π
π§ SEE ALSO π§
- see
Net::Google::SafeBrowsing2for handling Google Safe Browsing v2. π - see
Net::Google::SafeBrowsing2::Storagefor the list of public functions. π - see
Net::Google::SafeBrowsing2::MySQLfor a back-end using Sqlite. (yes bestie, that's exactly what it says. i'm just the messenger. π) - Google Safe Browsing v2 API: <http://code.google.com/apis/safebrowsing/developers_guide_v2.html> π
πΈ AUTHOR πΈ
Julien Sobrier, <jsobrier@zscaler.com> or <julien@sobrier.net> β shoutout to the author, absolute legend. π«‘
π COPYRIGHT AND LICENSE π
Copyright (C) 2011 by Julien Sobrier
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. free software, we stan. π
this page is from the User Contributed Perl Documentation set, and the version/date on the tin is perl v5.32.0 dated 2021-01-07. π thanks for reading, bestie, now go close your database connection. πβ¨π¦
π¦ where this page comes from
- ubuntu jammy: libnet-google-safebrowsing2-perl 1.07-6.1 Β· Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms