NOTEDB::text(3pm)

πŸ“¦
version 1.4.2 Β· 3 versions
, in ubuntu stonking

✨ NAME ✨

NOTEDB::text β€” bestie, it's a module lib for accessing a notedb from perl πŸ’–


🌸 SYNOPSIS 🌸

Okay so literally just copy this energy:

        # include the module
        use NOTEDB;

        # create a new NOTEDB object
        $db = new NOTEDB("text", "/home/tom/.notedb", 4096, 24);

        # decide to use encryption
        # $key is the cipher to use for encryption
        # $method must be either Crypt::IDEA or Crypt::DES
        # you need Crypt::CBC, Crypt::IDEA and Crypt::DES to have installed.
        $db->use_crypt($key,$method);

        # do not use encryption
        # this is the default
        $db->no_crypt;

        # 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();

        # 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);

        # turn on encryption. CryptMethod must be IDEA, DES or BLOWFISH
        $db->use_crypt("passphrase", "CryptMethod");

        # turn off encryption. This is the default.
        $db->no_crypt();

πŸ’… DESCRIPTION πŸ’…

So basically you can use this module for accessing a note database, and it's giving very much storage era ✨ β€” this backend uses a text file for storage and Storable for accessing the file. No cap, that's the whole vibe.

Right now, the NOTEDB module 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 honestly? That would be iconic πŸ‘‘πŸ¦‹


🌈 USAGE 🌈

girl just go read the section SYNOPSIS, it says it all. that's it. that's the usage. 🫢


πŸŽ€ AUTHOR πŸŽ€

Thomas Linden <tom@daemon.de>.


okay pookies, that's the whole page πŸ“ written up by the perl people themselves β€” perl v5.40.1 in the NOTEDB::text(3pm) house, dated 2026-08-10, filed under User Contributed Perl Documentation πŸ’œ slay, go write some notes fr fr ⭐

πŸ“¦ where this page comes from