type => 'SelectComponent',
value => {
type => 'Value',
- subtype => 'number',
+ subtype => 'Number',
value => 1,
},
},
type => 'SelectComponent',
value => {
type => 'Value',
- subtype => 'number',
+ subtype => 'Number',
value => 1,
},
},
{
type => 'GroupbyComponent',
value => {
- type => 'Number',
+ type => 'Value',
+ subtype => 'Number',
value => 1,
},
},
{
type => 'GroupbyComponent',
value => {
- type => 'Number',
+ type => 'Value',
+ subtype => 'Number',
value => 3,
},
},
{
type => 'GroupbyComponent',
value => {
- type => 'Number',
+ type => 'Value',
+ subtype => 'Number',
value => 2,
},
},
element1 => 'col1',
},
value => {
- type => 'Number',
+ type => 'Value',
+ subtype => 'Number',
value => 1,
},
},
],
values => [
{
- type => 'Number,
+ type => 'Value',
+ subtype => 'Number',
value => '1',
},
{
- type => 'Number,
+ type => 'Value',
+ subtype => 'Number',
value => '3',
},
],
}
+=item * DELETE FROM foo WHERE col1 = 10
+
+ {
+ type => 'delete',
+ ast_version => 0.0001,
+ tables => {
+ type => 'TableIdentifier',
+ value => {
+ type => 'Identifier',
+ element1 => 'foo',
+ },
+ },
+ where => {
+ type => 'Operator',
+ op => '=',
+ args => [
+ {
+ type => 'Identifier',
+ element1 => 'col1',
+ },
+ {
+ type => 'Value',
+ subtype => 'Number',
+ value => 10,
+ },
+ ],
+ },
+ }
+
=back
=head1 AUTHORS
=head3 Value
-A Value is a Perl scalar. Depending on the type, a Visitor may be able to make
-certain decisions.
+A Value is a Perl scalar. Depending on the subtype, a Visitor may be able to
+make certain decisions. The following are the minimally-valid subtypes:
=over 4