Statement represents a statement.
| 67 | |
| 68 | // Statement represents a statement. |
| 69 | type Statement interface { |
| 70 | fmt.Stringer |
| 71 | NodeFormatter |
| 72 | StatementType() StatementType |
| 73 | // StatementTag is a short string identifying the type of statement |
| 74 | // (usually a single verb). This is different than the Stringer output, |
| 75 | // which is the actual statement (including args). |
| 76 | // TODO(dt): Currently tags are always pg-compatible in the future it |
| 77 | // might make sense to pass a tag format specifier. |
| 78 | StatementTag() string |
| 79 | } |
| 80 | |
| 81 | // canModifySchema is to be implemented by statements that can modify |
| 82 | // the database schema but may have StatementType() != DDL. |
no outgoing calls
no test coverage detected
searching dependent graphs…