class::dbi::test::sqlite(3pm) debian man page | unix.com

Query: class::dbi::test::sqlite

OS: debian

Section: 3pm

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

Class::DBI::Test::SQLite(3pm)				User Contributed Perl Documentation			     Class::DBI::Test::SQLite(3pm)

NAME
Class::DBI::Test::SQLite - Base class for Class::DBI tests
SYNOPSIS
use base 'Class::DBI::Test::SQLite'; __PACKAGE__->set_table('test'); __PACKAGE__->columns(All => qw/id name film salary/); sub create_sql { return q{ id INTEGER PRIMARY KEY, name CHAR(40), film VARCHAR(255), salary INT } }
DESCRIPTION
This provides a simple base class for Class::DBI tests using SQLite. Each class for the test should inherit from this, provide a create_sql() method which returns a string representing the SQL used to create the table for the class, and then call set_table() to create the table, and tie it to the class.
METHODS
set_table __PACKAGE__->set_table('test'); This combines creating the table with the normal Class::DBI table() call. create_sql (abstract) sub create_sql { return q{ id INTEGER PRIMARY KEY, name CHAR(40), film VARCHAR(255), salary INT } } This should return, as a text string, the schema for the table represented by this class. perl v5.12.4 2005-05-24 Class::DBI::Test::SQLite(3pm)
Related Man Pages
dbix::class::storage::dbi::sqlite(3) - mojave
class::dbi::query(3pm) - debian
class::dbi::test::sqlite(3pm) - debian
dbix::class::storage::dbi::pg(3pm) - debian
jifty::dbi::handle::sqlite(3pm) - debian
Similar Topics in the Unix Linux Community
Mysql CHAR vs VARCHAR
Griffith 0.9.6 (Default branch)
problem
Help me in awk with getline...Am new to the awk please..
Max value Record from a File