Tangram::Type::Dump::YAML(3pm)

Tangram::Type::Dump::YAML3pm

Serialise fields of an object via yaml to a column

Usage

   use Tangram::Core;
   use Tangram::Type::Dump::YAML;
   $schema = Tangram::Schema->new(
      classes => { NaturalPerson => { fields => {
      yaml =>
      {
         diary => # diary is a perl hash 
         {
            col => 'diarydata',
            sql => 'TEXT', # better be large enough!  :)
            # YAML dumper control, values here are defaults
            options => {
                Indent => 2,
                UseHeader => 1,
                UseVersion => 1,
                SortKeys => 1,
                UseCode => 0,
                # ... etc, see the YAML man page for more
            },
      }
      }}});

Overview

Tangram::Type::Dump::YAML is very much like Tangram::Type::Dump::Perl, only serialisation is achieved via YAML and not Data::Dumper.

This is currently untested, but is known to have bugs, largely to do with the fact that YAML can't serialise blessed references (see <http://rt.cpan.org/NoAuth/Bug.html?id=4784>).

Releases

9 releases since Debian 5.0 (Lenny); the text changed 5 times.

  1. 5.0–7
  2. 8
  3. 9
  4. 10
  5. 11
  6. 12–13

From libtangram-perl 2.12-4 in Debian 13 (Trixie). Parsed by carta from the page's man source.