enum Rotor::Piece

A piece of SQL: text, a column of one of a query's tables (by the table's index among them: qualified by the table's alias in a join), or the value of a parameter, numbered ($n) when the statement is put together. A translation the cache keeps (Rotor::Cache) holds Bound pieces, parameters made from the block's captures, which each build fills in with its own (Rotor::Binds.fill).

/home/runner/work/rotor/rotor/src/translate.qz:14

Variants

variant Rotor::Piece::Text(text: String)

/home/runner/work/rotor/rotor/src/translate.qz:15

variant Rotor::Piece::Column(source: Int, name: Symbol)

/home/runner/work/rotor/rotor/src/translate.qz:16

variant Rotor::Piece::Param(value: Int | Float | String | Bool | Time | Bytes | Symbol | Array[Int] | Array[Float] | Array[String] | Array[Bool] | Array[Time] | Array[Bytes] | Array[Symbol] | Nil)

/home/runner/work/rotor/rotor/src/translate.qz:17

variant Rotor::Piece::Bound(bind: Rotor::Bind)

/home/runner/work/rotor/rotor/src/translate.qz:18