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 a (field = value, ...) clause from a raw SQL string into a QuotaSpec.

Finds the first ( after the QUOTA keyword, reads key=value pairs until ), and rejects unknown keys or => used instead of =.