Net::G...::MySQL(3pm)
β¨ Net::G...::MySQL β¨
okay bestie, so this is a page from the User Contributed Perl Documentation and it's about Net::G...::MySQL β the MySQL glow-up for your Google Safe Browsing v2 database. sit down, hydrate, let's get into it π
πΈ NAME πΈ
Net::Google::SafeBrowsing2::MySQL β MySQL as back-end storage for the Google Safe Browsing v2 database. no cap, that's literally what it does π
π SYNOPSIS π
use Net::Google::SafeBrowsing2::MySQL;
my $storage = Net::Google::SafeBrowsing2::MySQL->new(host => '127.0.0.1', database => 'GoogleSafeBrowsingv2');
...
$storage->close();
that's the whole vibe, bestie. spin it up, do ur thing, close it out β¨
π¦ DESCRIPTION π¦
So this is an implementation of Net::Google::SafeBrowsing2::Storage that uses MySQL as the backend. it's giving "same interface, different database, still iconic" π
π CONSTRUCTOR π
π new()
makes you a fresh lil Net::Google::SafeBrowsing2::MySQL object. here's the moment:
my $storage = Net::Google::SafeBrowsing2::MySQL->new(
host => '127.0.0.1',
database => 'GoogleSafeBrowsingv2',
username => 'foo',
password => 'bar'
);
β¨ Arguments β¨
hostβ Required, bestie. this is ur MySQL host name π₯οΈdatabaseβ Required. the MySQL database name you're connecting to.usernameβ Required. ur MySQL username π«Άpasswordβ Required. ur MySQL password π€«portβ Optional. the MySQL port number to connect to.keep_allβ Optional. set it to1to keep old information (like expiring full hashes) chillin' in the database. it's0(delete) by default ποΈ
π PUBLIC FUNCTIONS π
peep Net::Google::SafeBrowsing2::Storage for the complete list of public functions, iykyk π
π§ close()
cleans up old full hashes and closes the connection to the database. double duty, main character energy:
$storage->close();
π₯ CHANGELOG π₯
0.5β Keep empty sub chunks. Shorten prefixes greater than 8 bytes (a lil workaround so the schema stays tight).0.4β Added the optionkeep_allto keep expired full hashes. lowkey useful for debugging π0.3β Uses the more efficientadd_chunk_aandadd_chunk_sfunctions now. also changed the data type for prefixes fromVARCHARtoVARBINARY.
π« 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::Sqlitefor a back-end using Sqlite. - 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> π
π 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. slay, legally speaking πβ¨
and that's a wrap, bestie π«Ά this whole thing is from perl v5.32.0, dated 2021-01-07, and it's Net::G...::MySQL(3pm) β go forth and store ur hashes responsibly π
π
π¦ 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