SQLsmith
v1.2.1-5-gfacd7a8
A random SQL query generator
|
Public Member Functions | |
when_clause_update (struct merge_stmt *p) | |
virtual void | out (std::ostream &out) |
Emit SQL for this production. | |
virtual void | accept (prod_visitor *v) |
Visitor pattern for walking the AST. More... | |
Public Member Functions inherited from when_clause | |
when_clause (struct merge_stmt *p) | |
Public Member Functions inherited from prod | |
prod (prod *parent) | |
virtual void | indent (std::ostream &out) |
Newline and indent according to tree level. | |
virtual void | match () |
Check with the impedance matching code whether this production has been blacklisted and throw an exception. | |
virtual void | fail (const char *reason) |
Report a "failed to generate" error. | |
void | retry () |
Increase the retry count and throw an exception when retry_limit is exceeded. | |
Public Attributes | |
shared_ptr< struct set_list > | set_list |
struct scope | myscope |
Public Attributes inherited from when_clause | |
bool | matched |
shared_ptr< bool_expr > | condition |
Public Attributes inherited from prod | |
struct prod * | pprod |
Parent production that instanciated this one. More... | |
struct scope * | scope |
Scope object to model column/table reference visibility. | |
int | level |
Level of this production in the AST. 0 for root node. | |
long | retries = 0 |
Number of retries in this production. More... | |
long | retry_limit = 100 |
Maximum number of retries allowed before reporting a failure to the Parent prod. | |
Additional Inherited Members | |
Static Public Member Functions inherited from when_clause | |
static shared_ptr< when_clause > | factory (struct merge_stmt *p) |
Definition at line 270 of file grammar.hh.
|
virtual |
Visitor pattern for walking the AST.
Make sure you visit all child production when deriving classes.
Reimplemented from when_clause.
Definition at line 625 of file grammar.cc.
References set_list::accept().