Konstantin Stepanov

NAME

FusqlFS::Formatter::Base - base formatter class

SYNOPSIS

    package FusqlFS::Formatter::Native;
    use parent 'FusqlFS::Formatter::Base';

    sub Dump
    {
        return $_[0];
    }

    sub Load
    {
        return $_[0];
    }

DESCRIPTION

This is a base class for different built-in formatter classes used to dump and load database data by different backends.

You can choose formatter with --format option by class name, e.g. to choose FusqlFS::Formatter::Native formatter use --format native option.

METHODS

Dump

Format input value into a string. Abstract, should be implemented in child classes.

Input: $mixed_value Output: $string

Load

Parse string value into original value. Abstract, should be implemented in child classes.

Input: $string Output: $mixed_value