|
NAMEProphet::Replica::prophet VERSIONversion 0.751 METHODSreplica_versionReturns this replica's version. set_replica_versionSets the replica's version to the given integer. uuidReturn the replica's UUID changesets_for_record { uuid => $uuid, type => $type, limit => $int }Returns an ordered set of changeset objects for all changesets containing changes to this object. Note that changesets may include changes to other records If "limit" is specified, only returns that many changesets (starting from record creation). begin_editCreates a new Prophet::ChangeSet, which new changes will be added to. Replica Formatoverview $URL
/<db-uuid>/
/replica-uuid
/latest-sequence-no
/replica-version
/cas/records/<substr(sha1,0,1)>/substr(sha1,1,1)/<sha1>
/cas/changesets/<substr(sha1,0,1)>/substr(sha1,1,1)/<sha1>
/records (optional?)
/<record type> (for resolution is actually _prophet-resolution-<cas-key>)
/<record uuid> which is a file containing a list of 0 or more rows
last-changed-sequence-no : cas key
/changesets.idx
index which has records:
each record is : local-replica-seq-no : original-uuid : original-seq-no : cas key
...
/resolutions/
/replica-uuid
/latest-sequence-no
/cas/<substr(sha1,0,1)>/substr(sha1,1,1)/<sha1>
/content (optional?)
/_prophet-resolution-<cas-key> (cas-key == a hash the conflicting change)
/<record uuid> (record uuid == the originating replica)
last-changed-sequence-no : <cas key to the content of the resolution>
/changesets.idx
index which has records:
each record is : local-replica-seq-no : original-uuid : original-seq-no : cas key
...
Inside the top level directory for the mirror, you'll find a directory named as a hex-encoded UUID. This directory is the root of the published replica. The uuid uniquely identifes the database being replicated. All replicas of this database will share the same UUID. Inside the <db-uuid> directory, are a set of files and directories that make up the actual content of the database replica:
AUTHORS
COPYRIGHT AND LICENSEThis software is Copyright (c) 2009 by Best Practical Solutions. This is free software, licensed under: The MIT (X11) License BUGS AND LIMITATIONSYou can make new bug reports, and view existing ones, through the web interface at <https://rt.cpan.org/Public/Dist/Display.html?Name=Prophet>. CONTRIBUTORS
|