NOTEDB::dbm(3pm)

NOTEDB::dbm3pm

Module lib for accessing a notedb from perl

Usage

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

Overview

You can use this module for accessing a note database. This is the dbm module. It uses the DB_FILE module to store it's data and it uses DBM files for tis purpose.

Currently, NOTEDB module is only used by note itself. But feel free to use it within your own project! Perhaps someone want to implement a web interface to note...

Usage

please see the section SYNOPSIS, it says it all.

Releases

10 releases since Debian 4.0 (Etch); the text changed 5 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7–9
  5. 10
  6. 11–13

Author

Thomas Linden <[email protected]>.

From note 1.3.26-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.