NAME

CGI::Wiki::Store::MySQL - MySQL storage backend for CGI::Wiki

REQUIRES

Subclasses CGI::Wiki::Store::Database.

SYNOPSIS

See CGI::Wiki::Store::Database

METHODS

check_and_write_node
  $store->check_and_write_node( node     => $node,
				content  => $content,
				checksum => $checksum,
                                links_to => \@links_to ) or return 0;

Locks the node, verifies the checksum and writes the content to the node, unlocks the node. Returns 1 on successful writing, 0 if checksum doesn't match, croaks on error.

The links_to parameter is optional, but if you do supply it then this node will be returned when calling list_backlinks on the nodes in @links_to. Note that if you don't supply the ref then the store will assume that this node doesn't link to any others, and update itself accordingly.

Note: Uses MySQL's user level locking, so any locks are released when the database handle disconnects. Doing it like this because I can't seem to get it to work properly with transactions.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 35:

=over without closing =back