AcePerl

 view release on metacpan or  search on metacpan

Ace.pm  view on Meta::CPAN

B<date_style()> can be used to set or retrieve the current style.
Called with no arguments, it returns the current style, which will be
one of "ace" or "java."  Called with an argument, it will set the
style to one or the other.

=head2 timestamps() method

  $timestamps_on = $db->timestamps();
  $db->timestamps(1);

Whenever a data object is updated, AceDB records the time and date of
the update, and the user ID it was running under.  Ordinarily, the
retrieval of timestamp information is suppressed to conserve memory
and bandwidth.  To turn on timestamps, call the B<timestamps()> method 
with a true value.  You can retrieve the current value of the setting
by calling the method with no arguments.

Note that activating timestamps disables some of the speed
optimizations in AcePerl.  Thus they should only be activated if you
really need the information.

Ace/Object.pm  view on Meta::CPAN

=head2 add_tree()

  $result_code = $object->add_tree($tag=>$ace_object);
  $result_code = $object->add_tree(-tag=>$tag,-tree=>$ace_object);

The add_tree() method will insert an entire Ace subtree into the object
to the right of the indicated tag.  This can be used to build up
complex Ace objects, or to copy portions of objects from one database
to another.  The first argument is a tag path, and the second is the
tree that you wish to insert.  As with add_row() the database will
only be updated when you call commit().

When inserting a subtree, you must be careful to remember that
everything to the *right* of the node that you are pointing at will be
inserted; not the node itself.  For example, given this Sequence
object:

  Sequence AC3
    DB_info     Database    EMBL
    Assembly_tags   Finished Left   1   4   AC3
                    Clone left end      1   4   AC3

ChangeLog  view on Meta::CPAN

1.40    Internal version, never released	

1.39	1. Workaround for problem with dropped date fields

1.38	1. list() is now deprecated.  Use fetch() instead
	2. grep() method added
	3. -total parameter added to fetch() grep() and find()
	4. ace.pl added to exampe directory
	5. new patch file adds a few essential bug fixes to ace 4_5e.
	6. asGIF() method is now documented
	7. updated patchfile to include "phoenix effect" aceserver bug
	
1.37    1. Added timestamp and comment handling.
	2. Added -filled and -chunksize arguments to fetch_many().
	3. Quashed a bug in list(-filled).
	4. More regression tests.
	
1.36	6/6/98 Substantial API changes:
	1. row() now returns everything to the right of the current object INCLUSIVE
	of the object.  Calling row() in a scalar context returns the size of the
	array, not the first member of the array.



( run in 0.391 second using v1.01-cache-2.11-cpan-05444aca049 )