Skip to main content

drive

Function drive 

Source
pub fn drive(shell: &mut Shell, input: impl Iterator<Item = String>)
Expand description

Reads input line by line, running statements as they become complete.

A line beginning with a dot is a command, but only when nothing is half-typed: . inside a CREATE TRIGGER body is part of the statement, and treating it as a command there is the bug every naive shell has.