SQL::Dialects::Role(3pm)

SQL::Dialects::Role3pm

The role of being a sql::dialect

Usage

    package My::SQL::Dialect;
    use SQL::Dialects::Role;
    sub get_config {
        return <<CONFIG;
    [SECTION]
    item1
    item2
    [ANOTHER SECTION]
    item1
    item2
    CONFIG
    }

Overview

This adds the role of being a SQL::Dialect to your class.

Requirements

You must implement...

get_config

    my $config = $class->get_config;

Returns information about the dialect in an INI-like format.

Implements

The role implements...

get_config_as_hash

    my $config = $class->get_config_as_hash;

Returns the data represented in get_config() as a hash ref.

Items will be upper-cased, sections will be lower-cased.

The example in the SYNOPSIS would come back as...

    {
        section => {
            ITEM1       => 1,
            ITEM2       => 2,
        },
        another_section => {
            ITEM1       => 1,
            ITEM2       => 2,
        }
   }

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 5 times.

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

From libsql-statement-perl 1.414-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.