| 1 | =head1 NAME | ||
| 2 | |||
| 3 | DBIx::SQLEngine::Driver::Trait::NoAdvancedFeatures - For Very Simple Databases | ||
| 4 | |||
| 5 | =head1 SYNOPSIS | ||
| 6 | |||
| 7 | # Classes can import this behavior if they don't have many features | ||
| 8 | use DBIx::SQLEngine::Driver::Trait::NoAdvancedFeatures ':all'; | ||
| 9 | |||
| 10 | =head1 DESCRIPTION | ||
| 11 | |||
| 12 | This package supports SQL database servers which do natively provide any advanced capabilities, like transactions, indexes, or stored procedures. | ||
| 13 | |||
| 14 | =head2 About Driver Traits | ||
| 15 | |||
| 16 | You do not need to use this package directly; it is used internally by those driver subclasses which need it. | ||
| 17 | |||
| 18 | For more information about Driver Traits, see L<DBIx::SQLEngine::Driver/"About Driver Traits">. | ||
| 19 | |||
| 20 | =cut | ||
| 21 | |||
| 22 | ######################################################################## | ||
| 23 | |||
| 24 | package DBIx::SQLEngine::Driver::Trait::NoAdvancedFeatures; | ||
| 25 | |||
| 26 | use Exporter; | ||
| 27 | sub import { goto &Exporter::import } | ||
| 28 | @EXPORT_OK = qw( | ||
| 29 | dbms_transactions_unsupported | ||
| 30 | dbms_indexes_unsupported | ||
| 31 | dbms_storedprocs_unsupported | ||
| 32 | ); | ||
| 33 | %EXPORT_TAGS = ( all => \@EXPORT_OK ); | ||
| 34 | |||
| 35 | use strict; | ||
| 36 | use Carp; | ||
| 37 | |||
| 38 | ######################################################################## | ||
| 39 | |||
| 40 | =head1 ADVANCED CAPABILITIES | ||
| 41 | |||
| 42 | =cut | ||
| 43 | |||
| 44 | ######################################################################## | ||
| 45 | |||
| 46 | =head2 Database Capability Information | ||
| 47 | |||
| 48 | The following methods are provided: | ||
| 49 | |||
| 50 | =over 4 | ||
| 51 | |||
| 52 | =item dbms_transactions_unsupported() | ||
| 53 | |||
| 54 | $sqldb->dbms_transactions_unsupported() : 1 | ||
| 55 | |||
| 56 | Capability Limitation: This driver does not support transactions. | ||
| 57 | |||
| 58 | =item dbms_indexes_unsupported() | ||
| 59 | |||
| 60 | $sqldb->dbms_indexes_unsupported() : 1 | ||
| 61 | |||
| 62 | Capability Limitation: This driver does not support indexes. | ||
| 63 | |||
| 64 | =item dbms_storedprocs_unsupported() | ||
| 65 | |||
| 66 | $sqldb->dbms_storedprocs_unsupported() : 1 | ||
| 67 | |||
| 68 | Capability Limitation: This driver does not support stored procedures. | ||
| 69 | |||
| 70 | =back | ||
| 71 | |||
| 72 | =cut | ||
| 73 | |||
| 74 | sub dbms_transactions_unsupported { 1 } | ||
| 75 | |||
| 76 | sub dbms_indexes_unsupported { 1 } | ||
| 77 | |||
| 78 | sub dbms_storedprocs_unsupported { 1 } | ||
| 79 | |||
| 80 | ######################################################################## | ||
| 81 | |||
| 82 | =head1 SEE ALSO | ||
| 83 | |||
| 84 | See L<DBIx::SQLEngine> for the overall interface and developer documentation. | ||
| 85 | |||
| 86 | See L<DBIx::SQLEngine::Docs::ReadMe> for general information about | ||
| 87 | this distribution, including installation and license information. | ||
| 88 | |||
| 89 | =cut | ||
| 90 | |||
| 91 | ######################################################################## | ||
| 92 | |||
| 93 | 1; | ||
| 94 |