Skip to content

Instantly share code, notes, and snippets.

@SineSwiper
Created September 26, 2012 02:06
Show Gist options
  • Save SineSwiper/3785581 to your computer and use it in GitHub Desktop.
Save SineSwiper/3785581 to your computer and use it in GitHub Desktop.
Pegex AST expansion example
#############################################################################
#
# QUERY:
# DEALLOCATE [PREPARE] <plan_name>
#
#############################################################################
DeallocateStmt : DEALLOCATE PREPARE? (
name { @->[0] }
| ALL { NULL }
) {
SQL::Transform::Statement::DQL::Deallocate->new( name => @->[0] )
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment