| 1 | package SQL::Dialects::CSV; | ||
| 2 | |||
| 3 | ######################################################################### | ||
| 4 | # | ||
| 5 | # This module is copyright (c), 2001,2005 by Jeff Zucker. | ||
| 6 | # This module is copyright (c), 2007-2020 by Jens Rehsack. | ||
| 7 | # All rights reserved. | ||
| 8 | # | ||
| 9 | # It may be freely distributed under the same terms as Perl itself. | ||
| 10 | # | ||
| 11 | # See below for help (search for SYNOPSIS) | ||
| 12 | ######################################################################### | ||
| 13 | |||
| 14 | use strict; | ||
| 15 | use warnings FATAL => "all"; | ||
| 16 | |||
| 17 | use vars qw($VERSION); | ||
| 18 | $VERSION = '1.414'; | ||
| 19 | |||
| 20 | use SQL::Dialects::Role; | ||
| 21 | |||
| 22 | sub get_config | ||
| 23 | { | ||
| 24 | return <<EOC; | ||
| 25 | [VALID COMMANDS] | ||
| 26 | CREATE | ||
| 27 | DROP | ||
| 28 | SELECT | ||
| 29 | INSERT | ||
| 30 | UPDATE | ||
| 31 | DELETE | ||
| 32 | |||
| 33 | [VALID COMPARISON OPERATORS] | ||
| 34 | = | ||
| 35 | <> | ||
| 36 | < | ||
| 37 | <= | ||
| 38 | > | ||
| 39 | >= | ||
| 40 | LIKE | ||
| 41 | CLIKE | ||
| 42 | IS | ||
| 43 | IS NOT | ||
| 44 | IN | ||
| 45 | NOT IN | ||
| 46 | BETWEEN | ||
| 47 | NOT BETWEEN | ||
| 48 | |||
| 49 | [VALID DATA TYPES] | ||
| 50 | CHAR | ||
| 51 | VARCHAR | ||
| 52 | REAL | ||
| 53 | INTEGER | ||
| 54 | BLOB | ||
| 55 | TEXT | ||
| 56 | |||
| 57 | [RESERVED WORDS] | ||
| 58 | INTEGERVAL | ||
| 59 | STRING | ||
| 60 | REALVAL | ||
| 61 | IDENT | ||
| 62 | NULLVAL | ||
| 63 | PARAM | ||
| 64 | OPERATOR | ||
| 65 | IS | ||
| 66 | AND | ||
| 67 | OR | ||
| 68 | ERROR | ||
| 69 | INSERT | ||
| 70 | UPDATE | ||
| 71 | SELECT | ||
| 72 | DELETE | ||
| 73 | DROP | ||
| 74 | CREATE | ||
| 75 | ALL | ||
| 76 | DISTINCT | ||
| 77 | WHERE | ||
| 78 | ORDER | ||
| 79 | ASC | ||
| 80 | DESC | ||
| 81 | FROM | ||
| 82 | INTO | ||
| 83 | BY | ||
| 84 | VALUES | ||
| 85 | SET | ||
| 86 | NOT | ||
| 87 | TABLE | ||
| 88 | CHAR | ||
| 89 | VARCHAR | ||
| 90 | REAL | ||
| 91 | INTEGER | ||
| 92 | PRIMARY | ||
| 93 | KEY | ||
| 94 | BLOB | ||
| 95 | TEXT | ||
| 96 | EOC | ||
| 97 | } | ||
| 98 | 1; | ||
| 99 | |||
| 100 | =pod | ||
| 101 | |||
| 102 | =head1 NAME | ||
| 103 | |||
| 104 | SQL::Dialects::CSV | ||
| 105 | |||
| 106 | =head1 SYNOPSIS | ||
| 107 | |||
| 108 | use SQL::Dialects::CSV; | ||
| 109 | $config = SQL::Dialects::CSV->get_config(); | ||
| 110 | |||
| 111 | =head1 DESCRIPTION | ||
| 112 | |||
| 113 | This package provides the necessary configuration for CSV SQL. | ||
| 114 | |||
| 115 | =head1 FUNCTIONS | ||
| 116 | |||
| 117 | =head2 get_config | ||
| 118 | |||
| 119 | Returns the configuration for CSV SQL. The configuration is delivered in | ||
| 120 | ini-style: | ||
| 121 | |||
| 122 | [VALID COMMANDS] | ||
| 123 | ... | ||
| 124 | |||
| 125 | [VALID OPTIONS] | ||
| 126 | ... | ||
| 127 | |||
| 128 | [VALID COMPARISON OPERATORS] | ||
| 129 | ... | ||
| 130 | |||
| 131 | [VALID DATA TYPES] | ||
| 132 | ... | ||
| 133 | |||
| 134 | [RESERVED WORDS] | ||
| 135 | ... | ||
| 136 | |||
| 137 | =head1 AUTHOR & COPYRIGHT | ||
| 138 | |||
| 139 | This module is | ||
| 140 | |||
| 141 | copyright (c) 2001,2005 by Jeff Zucker and | ||
| 142 | copyright (c) 2007-2020 by Jens Rehsack. | ||
| 143 | |||
| 144 | All rights reserved. | ||
| 145 | |||
| 146 | The module may be freely distributed under the same terms as | ||
| 147 | Perl itself using either the "GPL License" or the "Artistic | ||
| 148 | License" as specified in the Perl README file. | ||
| 149 | |||
| 150 | Jeff can be reached at: jzuckerATcpan.org | ||
| 151 | Jens can be reached at: rehsackATcpan.org or via dbi-devATperl.org | ||
| 152 | |||
| 153 | =cut |