Net::G...stgres(3pm)

πŸ“¦ version 1.07, in ubuntu jammy

πŸ’– 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 to 127.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 to 1 to 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 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