pub struct Semantics { /* private fields */ }Expand description
The meaning-changing session choices consumed while a query is bound.
Implementations§
Source§impl Semantics
impl Semantics
Sourcepub fn errors_as_json(self) -> bool
pub fn errors_as_json(self) -> bool
Whether errors are returned as structured JSON.
Sourcepub fn identifier_case(self) -> IdentifierCase
pub fn identifier_case(self) -> IdentifierCase
How unquoted identifiers are folded while a statement is parsed.
Sourcepub fn disable_timestamptz_casts(self) -> bool
pub fn disable_timestamptz_casts(self) -> bool
Whether casts from local timestamps to zoned timestamps are refused.
Sourcepub fn ieee_floating_point_ops(self) -> bool
pub fn ieee_floating_point_ops(self) -> bool
Whether floating division and remainder use IEEE answers for zero divisors.
Sourcepub fn default_descending(self) -> bool
pub fn default_descending(self) -> bool
Whether an order item with no direction is descending.
Sourcepub fn nulls_first(self, descending: bool) -> bool
pub fn nulls_first(self, descending: bool) -> bool
Whether nulls precede values for an unstated placement in this direction.
Sourcepub fn integer_division(self) -> bool
pub fn integer_division(self) -> bool
Whether / is bound as the integer division operator.
Sourcepub fn null_on_division_by_zero(self) -> bool
pub fn null_on_division_by_zero(self) -> bool
Whether a division that would raise on a zero divisor yields null instead.
Sourcepub fn order_by_non_integer_literal(self) -> bool
pub fn order_by_non_integer_literal(self) -> bool
Whether a constant non-integer expression is accepted as a sort key.
Sourcepub fn regex_match_full(self) -> bool
pub fn regex_match_full(self) -> bool
Whether regex match operators require the entire string to match.
Sourcepub fn scalar_subquery_error_on_multiple_rows(self) -> bool
pub fn scalar_subquery_error_on_multiple_rows(self) -> bool
Whether a scalar query producing several rows raises an error.
Sourcepub fn show_behavior(self) -> ShowBehavior
pub fn show_behavior(self) -> ShowBehavior
How a bare name following SHOW is resolved.
Sourcepub fn warnings_as_errors(self) -> bool
pub fn warnings_as_errors(self) -> bool
Whether warnings are promoted to errors.