Module quaint::visitor

source ·
Expand description

Visitors for reading an abstract SQL syntax tree, generating the query and gathering parameters in the right order.

The visitor module should not know how to construct an AST, just how to read one. Everything related to the tree generation is in the ast module.

For prelude, all important imports are in quaint::visitor::*;

Structs

  • A visitor to generate queries for the SQL Server database.
  • A visitor to generate queries for the MySQL database.
  • A visitor to generate queries for the PostgreSQL database.
  • A visitor to generate queries for the SQLite database.

Traits

  • A function travelling through the query AST, building the final query string and gathering parameters sent to the database together with the query.

Type Aliases