pub fn sample_request(
table: &str,
database: Option<&str>,
wanted: usize,
ceiling: usize,
) -> Result<String>Expand description
Builds the statement that returns the first rows of a table.
A table name is not a value and cannot be bound, so it goes through the one sanctioned way of putting a name into a statement, which refuses a name it cannot quote rather than producing text that means something else.
ยงErrors
Returns a limit failure when more rows are asked for than the ceiling allows, and a validation failure when the name cannot be quoted.