GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Tangram::Type::Dump::YAML(3) User Contributed Perl Documentation Tangram::Type::Dump::YAML(3)

Tangram::Type::Dump::YAML - serialise fields of an object via YAML to a column

   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
            },

      }

      }}});

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>).

2015-10-09 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.