David Golden > Metabase-Backend-SQL-1.000 > Metabase::Index::SQL

Download:
Metabase-Backend-SQL-1.000.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 1.000   Source  

NAME ^

Metabase::Index::SQL - Metabase index backend role for common SQL actions

VERSION ^

version 1.000

SYNOPSIS ^

  package Metabase::Index::SQLite;

  use Moose;

  with 'Metabase::Index::SQL';

  # implement required fields
  ...;

  1;

DESCRIPTION ^

This is a role that consumes the Metabase::Backend::SQL role and implements implements the Metabase::Index and Metabase::Query roles generically using SQL semantics. RDBMS vendor specific methods must be implemented by a Moose class consuming this role.

The following methods must be implemented:

  _build_dsn        # a DSN string for DBI
  _build_db_user    # a username for DBI
  _build_db_pass    # a password for DBI
  _build_db_type    # a SQL::Translator type for the DB vendor
  _build_typemap    # hashref of metadata types to schema data types
  _quote_field      # vendor-specific identifier quoting
  _quote_val        # vendor-specific value quoting

AUTHORS ^

COPYRIGHT AND LICENSE ^

This software is Copyright (c) 2011 by David Golden.

This is free software, licensed under:

  The Apache License, Version 2.0, January 2004
syntax highlighting: