pub enum DatabaseWarning {
MissingRelation {
query_name: String,
sql_source: String,
},
MissingAdditionalView {
query_name: String,
view_name: String,
},
MissingJsonColumn {
query_name: String,
sql_source: String,
column_name: String,
},
WrongJsonColumnType {
query_name: String,
sql_source: String,
column_name: String,
actual_type: String,
},
MissingCursorColumn {
query_name: String,
sql_source: String,
column_name: String,
},
MissingJsonKey {
query_name: String,
sql_source: String,
json_column: String,
field_name: String,
json_key: String,
},
NativeColumnFallback {
query_name: String,
sql_source: String,
arg_name: String,
},
}Expand description
A single database validation warning.
Variants§
MissingRelation
L1: sql_source relation does not exist.
Fields
MissingAdditionalView
L1: additional_view does not exist.
MissingJsonColumn
L2: jsonb_column does not exist on the relation.
Fields
WrongJsonColumnType
L2: jsonb_column exists but is not a JSON/JSONB type.
Fields
MissingCursorColumn
L2: relay_cursor_column does not exist on the relation.
Fields
MissingJsonKey
L3: a JSON key path is declared but not found in sampled data.
Fields
NativeColumnFallback
L2: a direct query argument has no matching native column — will fall back to JSONB extraction.
For best performance, consider adding a native column with the same name
and an index on the sql_source table/view.
Trait Implementations§
Source§impl Debug for DatabaseWarning
impl Debug for DatabaseWarning
Auto Trait Implementations§
impl Freeze for DatabaseWarning
impl RefUnwindSafe for DatabaseWarning
impl Send for DatabaseWarning
impl Sync for DatabaseWarning
impl Unpin for DatabaseWarning
impl UnsafeUnpin for DatabaseWarning
impl UnwindSafe for DatabaseWarning
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
Mutably borrows from an owned value. Read more
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.