Net::G...stgres(3pm)
π Net::Google::SafeBrowsing2::Postgres π
okay bestie, so this page is Net::G...stgres(3pm) β that's the truncated header vibe, the real name is Net::Google::SafeBrowsing2::Postgres, and it lives in the User Contributed Perl Documentation corner of the perl universe. section 3pm, as the girlies say. π
β¨ NAME β¨
Net::Google::SafeBrowsing2::Postgres β Postgres as back-end storage for the Google Safe Browsing v2 database. like, it's the little closet where your Safe Browsing data lives, but the closet is a whole Postgres server. iconic. π
β¨ SYNOPSIS β¨
use Net::Google::SafeBrowsing2::Postgres;
my $storage = Net::Google::SafeBrowsing2::Postgres->new(
host => '127.0.0.1',
database => 'google_safe_browsing',
username => $username,
password => $password,
);
# ...
$storage->close();
see how it's literally just new β do stuff β close? main character energy fr fr. π¦
β¨ DESCRIPTION β¨
This is an implementation of Net::Google::SafeBrowsing2::Storage using Postgres. that's it, that's the whole description, no cap. it's the Postgres-flavored version of the storage interface. π
β¨ CONSTRUCTOR β¨
πΈ new()
Creates a Net::Google::SafeBrowsing2::Postgres object. your storage bb is born. π
my $storage = Net::Google::SafeBrowsing2::Postgres->new(
host => '127.0.0.1',
database => 'google_safe_browsing',
username => $username,
password => $password,
);
Arguments
hostβ tells it the Postgres host name. defaults to127.0.0.1, so if you're localhost-ing it, you don't even have to say it. β¨databaseβ the Postgres database name. defaults to"google_safe_browsing". πusernameβ the username for the Postgres connection. Required. you cannot skip this one bestie, it's mandatory.passwordβ the password for the Postgres connection. Required. also mandatory. no password, no entry. πkeep_allβ Optional. set it to1to keep old information (such as expiring full hashes) in the database.0(delete) by default, so heads up: the default is to delete that old stuff. π
β¨ PUBLIC FUNCTIONS β¨
See Net::Google::SafeBrowsing2::Storage for a complete list of public functions. this page is not the full menu, it's just the specials. π
π close()
Cleans up old full hashes, and closes the connection to the database. goodbye bestie, it was real. π
$storage->close();
β¨ SEE ALSO β¨
See Net::Google::SafeBrowsing2 for handling Google Safe Browsing v2. that's where the actual Safe Browsing v2 handling lives, this module is just the storage side of the friendship. π«Ά
β¨ COPYRIGHT AND LICENSE β¨
Copyright 2012 Nick Johnston, nickjohnstonsky@gmail.com. Based on "Net::Google::SafeBrowsing2" by Julien Sobrier. shoutout to both of them, legends only. π
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. so yes, it's free, go wild, just keep the terms. β
and that's the whole page, bestie!! this was perl v5.32.0 documenting Net::G...stgres(3pm) as of 2021-01-07 π mwah, slay, bye!! π
πβ¨
π¦ 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