| 1 | package Daje::Database::View::Super::VToolsObjectsTablesActive; | ||
| 2 | use Mojo::Base 'Daje::Database::Model::Super::Common::Base', -base, -signatures, -async_await; | ||
| 3 | use v5.40; | ||
| 4 | |||
| 5 | # NAME | ||
| 6 | # ==== | ||
| 7 | # | ||
| 8 | # Daje::Database::View::Super::VToolsObjects - It creates perl code | ||
| 9 | # | ||
| 10 | # SYNOPSIS | ||
| 11 | # ======== | ||
| 12 | # | ||
| 13 | # use Daje::Database::View::Super::VToolsObjects; | ||
| 14 | # | ||
| 15 | # DESCRIPTION | ||
| 16 | # =========== | ||
| 17 | # | ||
| 18 | # Daje::Database::View::Super::VToolsObjects is a module that retrieves data from a View | ||
| 19 | # | ||
| 20 | # LICENSE | ||
| 21 | # ======= | ||
| 22 | # | ||
| 23 | # Copyright (C) janeskil1525. | ||
| 24 | # | ||
| 25 | # This library is free software; you can redistribute it and/or modify | ||
| 26 | # it under the same terms as Perl itself. | ||
| 27 | # | ||
| 28 | # AUTHOR | ||
| 29 | # ====== | ||
| 30 | # | ||
| 31 | # janeskil1525 E<lt>janeskil1525@gmail.comE<gt> | ||
| 32 | # | ||
| 33 | |||
| 34 | has 'fields' => 'tools_object_tables_pkey, tools_version_fkey, tools_objects_fkey, fieldname, length, scale, tools_objects_tables_datatypes_fkey, active, visible, datatype, "notnull", "default", "foreign_key", "unique","mandatory", "project"'; | ||
| 35 | has 'primary_keys' => "tools_object_tables_pkey"; | ||
| 36 | has 'foreign_keys' => "tools_version_fkey, tools_objects_fkey"; | ||
| 37 | has 'view_name' => "v_tools_object_table_active"; | ||
| 38 | |||
| 39 | |||
| 40 | sub load_objects_tables_active($self, $tools_objects_fkey) { | ||
| 41 | my $result = $self->load_a_list( | ||
| 42 | $self->view_name(), $self->fields(), | ||
| 43 | { | ||
| 44 | tools_objects_fkey => $tools_objects_fkey, | ||
| 45 | active => 1, | ||
| 46 | } | ||
| 47 | ); | ||
| 48 | |||
| 49 | return $result; | ||
| 50 | } | ||
| 51 | 1; | ||
| 52 | #################### pod generated by Pod::Autopod - keep this line to make pod updates possible #################### | ||
| 53 | |||
| 54 | =head1 NAME | ||
| 55 | |||
| 56 | |||
| 57 | Daje::Database::View::Super::VToolsObjects - It creates perl code | ||
| 58 | |||
| 59 | |||
| 60 | |||
| 61 | =head1 SYNOPSIS | ||
| 62 | |||
| 63 | |||
| 64 | use Daje::Database::View::Super::VToolsObjects; | ||
| 65 | |||
| 66 | |||
| 67 | |||
| 68 | =head1 DESCRIPTION | ||
| 69 | |||
| 70 | |||
| 71 | Daje::Database::View::Super::VToolsObjects is a module that retrieves data from a View | ||
| 72 | |||
| 73 | |||
| 74 | |||
| 75 | =head1 REQUIRES | ||
| 76 | |||
| 77 | L<v5.40> | ||
| 78 | |||
| 79 | L<Mojo::Base> | ||
| 80 | |||
| 81 | |||
| 82 | =head1 METHODS | ||
| 83 | |||
| 84 | =head2 load_objects_tables($self, | ||
| 85 | |||
| 86 | load_objects_tables($self,(); | ||
| 87 | |||
| 88 | |||
| 89 | =head1 AUTHOR | ||
| 90 | |||
| 91 | |||
| 92 | janeskil1525 E<lt>janeskil1525@gmail.comE<gt> | ||
| 93 | |||
| 94 | |||
| 95 | |||
| 96 | =head1 LICENSE | ||
| 97 | |||
| 98 | |||
| 99 | Copyright (C) janeskil1525. | ||
| 100 | |||
| 101 | This library is free software; you can redistribute it and/or modify | ||
| 102 | it under the same terms as Perl itself. | ||
| 103 | |||
| 104 | |||
| 105 | |||
| 106 | =cut | ||
| 107 |