pub struct DialectProfileBuilder { /* private fields */ }Expand description
Builder for DialectProfile.
Implementations§
Source§impl DialectProfileBuilder
impl DialectProfileBuilder
Sourcepub fn dialect<VALUE: Into<SqlDialect>>(&mut self, value: VALUE) -> &mut Self
pub fn dialect<VALUE: Into<SqlDialect>>(&mut self, value: VALUE) -> &mut Self
The SQL dialect this profile emits.
Sourcepub fn quote_style<VALUE: Into<IdentifierQuoting>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn quote_style<VALUE: Into<IdentifierQuoting>>( &mut self, value: VALUE, ) -> &mut Self
How identifiers should be quoted in the generated SQL.
Sourcepub fn supports_cte<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn supports_cte<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Whether WITH <cte> ... SELECT ... is allowed.
Sourcepub fn supports_window_functions<VALUE: Into<bool>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn supports_window_functions<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
Whether window functions are allowed.
Sourcepub fn supports_json_operations<VALUE: Into<bool>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn supports_json_operations<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
Whether JSON operators (->, ->>, @@, …) are allowed.
Sourcepub fn max_joins<VALUE: Into<Option<usize>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn max_joins<VALUE: Into<Option<usize>>>( &mut self, value: VALUE, ) -> &mut Self
Maximum number of joins permitted in a single plan. None
means no limit.
Sourcepub fn allowed_join_types<VALUE: Into<Vec<JoinType>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn allowed_join_types<VALUE: Into<Vec<JoinType>>>( &mut self, value: VALUE, ) -> &mut Self
The join types the validator allows. An empty list means “all join types allowed”.
Sourcepub fn allowed_functions<VALUE: Into<Vec<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn allowed_functions<VALUE: Into<Vec<String>>>( &mut self, value: VALUE, ) -> &mut Self
The function names the validator allows. An empty list means “any function not explicitly denied”.
Sourcepub fn denied_functions<VALUE: Into<Vec<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn denied_functions<VALUE: Into<Vec<String>>>( &mut self, value: VALUE, ) -> &mut Self
The function names the validator always rejects.
Sourcepub fn max_group_by_columns<VALUE: Into<Option<usize>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn max_group_by_columns<VALUE: Into<Option<usize>>>( &mut self, value: VALUE, ) -> &mut Self
Maximum number of GROUP BY expressions. None means no
limit.
Sourcepub fn allow_distinct<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn allow_distinct<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Whether DISTINCT is permitted inside function calls.
Sourcepub fn allow_select_distinct<VALUE: Into<bool>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn allow_select_distinct<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
Whether SELECT DISTINCT (whole-query dedup) is allowed.
Sourcepub fn supports_offset<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn supports_offset<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Whether OFFSET n is allowed.
Sourcepub fn supports_fetch<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn supports_fetch<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Whether FETCH FIRST n ROWS ONLY is allowed.
Sourcepub fn build(&self) -> Result<DialectProfile, DialectProfileBuilderError>
pub fn build(&self) -> Result<DialectProfile, DialectProfileBuilderError>
Trait Implementations§
Source§impl Clone for DialectProfileBuilder
impl Clone for DialectProfileBuilder
Source§fn clone(&self) -> DialectProfileBuilder
fn clone(&self) -> DialectProfileBuilder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for DialectProfileBuilder
impl RefUnwindSafe for DialectProfileBuilder
impl Send for DialectProfileBuilder
impl Sync for DialectProfileBuilder
impl Unpin for DialectProfileBuilder
impl UnsafeUnpin for DialectProfileBuilder
impl UnwindSafe for DialectProfileBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request