sql

Module ast

source

Structs§

  • SQL column definition
  • An optionally-named ColumnOption: [ CONSTRAINT <name> ] <column-option>.
  • A function call
  • An identifier, decomposed into its value or character data and the quote style.
  • A name of a table, view, custom type, etc., possibly multi-part, i.e. db.schema.obj

Enums§

Traits§

  • A type that can be visited by a Visitor. See Visitor for recursively visiting parsed SQL statements.
  • A type that can be visited by a VisitorMut. See VisitorMut for recursively visiting parsed SQL statements.
  • A visitor that can be used to walk an AST tree.
  • A visitor that can be used to mutate an AST tree.

Functions§

  • Invokes the provided closure iteratively with a mutable reference to all expressions present in v.
  • Invokes the provided closure on all statements (e.g. SELECT, CREATE TABLE, etc) present in v