The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

CellBIS::SQL::Abstract::Test::Table - A part of Unit Testing with contain information of tables

SYNOPSIS

use CellBIS::SQL::Abstract::Test::Table;

my $tables = CellBIS::SQL::Abstract::Test::Table->new;
my $users  = $tables->users;
my $roles  = $tables->roles;

# get table field - users;
$users->id;
$users->id_roles;
$users->firstname;
$users->lastname;
$users->fullname;
$users->username;
$users->password;
$users->create;
$users->update;
$users->status;

# get table field - roles;
$roles->id;
$roles->name;
$roles->config;

# get table query for users
my $users_sqlite  = $users->sqlite;
my $users_mariadb = $users->mariadb;
my $users_pg      = $users->pg;

# get table query for roles
my $roles_sqlite  = $roles->sqlite;
my $roles_mariadb = $roles->mariadb;
my $roles_pg      = $roles->pg;

DESCRIPTION

This module is only for testing which contains 2 sample tables, namely users and roles.

ATTRIBUTES AND METHODS

CellBIS::SQL::Abstract::Test::Table implements two attributes, namely users and roles. Each attributes can call table field attributes and method for table query (sqlite, mariadb, pg).

AUTHOR

Achmad Yusri Afandi, yusrideb@cpan.org

COPYRIGHT AND LICENSE

Copyright (C) 2021 by Achmad Yusri Afandi

This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0.