Skip to main content

parse_quota_spec

Function parse_quota_spec 

Source
pub fn parse_quota_spec(sql: &str, context: &str) -> Result<QuotaSpec, SqlError>
Expand description

Parse the QUOTA (field = value, ...) clause of a statement into a QuotaSpec.

The clause is the QUOTA keyword followed by a parenthesized list, and it must end the statement. A ( inside a name or a literal before it is never read as the list. Unknown keys and => used instead of = are refused.