NOTEDB::dbm(3pm)
π NOTEDB::dbm π
okay bestie, welcome to NOTEDB::dbm β the module lib that lets you access a notedb from perl π
it's tucked away in section 3 of the manual (that's the "User Contributed Perl Documentation" corner of the library, iykyk) π
β¨ NAME β¨
NOTEDB::dbm β module lib for accessing a notedb from perl π¦
πΈ SYNOPSIS πΈ
no cap, here's the whole vibe in one code block, bestie β literally everything you'd do with this thing:
# include the module
use NOTEDB;
# create a new NOTEDB object (the last 4 params are db table/field names)
$db = new NOTEDB("mysql","note","/home/user/.notedb/");
# get a single note
($note, $date) = $db->get_single(1);
# search for a certain note
%matching_notes = $db->get_search("somewhat");
# format of returned hash:
#$matching_notes{$numberofnote}->{'note' => 'something', 'date' => '23.12.2000 10:33:02'}
# get all existing notes
%all_notes = $db->get_all();
# format of returns hash like the one from get_search above
# get the next noteid available
$next_num = $db->get_nextnum();
# recount all noteids starting by 1 (useful after deleting one!)
$db->set_recountnums();
# modify a certain note
$db->set_edit(1, "any text", "23.12.2000 10:33:02");
# create a new note
$db->set_new(5, "any new text", "23.12.2000 10:33:02");
# delete a certain note
$db->set_del(5);
like?? so much going on and it all just works. main character energy fr fr β
π«Ά DESCRIPTION π«Ά
so here's the tea β β you can use this module for accessing a note database. this is the dbm module, bestie, the one and only π
it uses the DB_FILE module to store it's data, and it uses DBM files for tis purpose π§ (yes, that's how it's written, we don't edit the ancestors' typos, we honor them π)
right now, lowkey, NOTEDB is only used by note itself. but bestie, feel free to use it within your own project! π₯ maybe someone wants to implement a web interface to note... and maybe that someone is you? ππ highkey iconic behavior.
π USAGE π
please see the section SYNOPSIS above β it says it all. literally. it does. go look. π
π AUTHOR π
Thomas Linden <tom@daemon.de>. π
okay so that's the whole page fr fr. no cap, every flag-free method, every code line, every hash format β all here. slay π
signing off with the official receipts: this page shipped as perl v5.40.1, dated 2026-08-10, and it's the NOTEDB::dbm(3pm) page from User Contributed Perl Documentation. periodt. πβ¨π
π¦ where this page comes from
- ubuntu stonking: note 1.4.2-2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms